T
- The type of log publisher configuration handled by this log publisher implementation.@PublicAPI(stability=VOLATILE, mayInstantiate=false, mayExtend=true, mayInvoke=false) public interface LogPublisher<T extends LogPublisherCfg> extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this publisher.
|
Dn |
getDN()
Gets the DN of the configuration entry for this log publisher.
|
void |
initializeLogPublisher(T config,
ServerContext serverContext)
Initializes this publisher provider based on the information in the provided debug publisher configuration.
|
boolean |
isConfigurationAcceptable(T configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this log publisher.
|
void initializeLogPublisher(T config, ServerContext serverContext) throws ConfigException, InitializationException
config
- The publisher configuration that contains the information to use to initialize this publisher.serverContext
- The server context.ConfigException
- If an unrecoverable problem arises in the process of performing the initialization as a result of the
server configuration.InitializationException
- If a problem occurs during initialization that is not related to the server configuration.boolean isConfigurationAcceptable(T configuration, List<LocalizableMessage> unacceptableReasons)
configuration
- The log publisher configuration for which to make the determination.unacceptableReasons
- A list that may be used to hold the reasons that the provided configuration is not acceptable.true
if the provided configuration is acceptable for this log publisher, or false
if not.void close()
close
in interface AutoCloseable
close
in interface Closeable
Dn getDN()
Copyright 2010-2022 ForgeRock AS.