P - The type of the LogPublisher corresponding to this loggerC - The type of the LogPublisherCfg corresponding to this loggerpublic abstract class AbstractLogger<P extends LogPublisher<C>,C extends org.forgerock.opendj.server.config.server.LogPublisherCfg> extends Object implements org.forgerock.opendj.config.server.ConfigurationAddListener<C>, org.forgerock.opendj.config.server.ConfigurationDeleteListener<C>, org.forgerock.opendj.config.server.ConfigurationChangeListener<C>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractLogger.LoggerStorage<P extends LogPublisher<C>,C extends org.forgerock.opendj.server.config.server.LogPublisherCfg>
The storage designed to store log publishers.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addLogPublisher(P publisher)
Add a log publisher to the logger.
|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationAdd(C config) |
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(C config) |
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationDelete(C config) |
protected abstract org.forgerock.opendj.config.ClassPropertyDefinition |
getJavaClassPropertyDefinition()
Returns the java
ClassPropertyDefinition for the current logger. |
protected abstract Collection<P> |
getLogPublishers()
Returns the log publishers.
|
void |
initializeLogger(List<C> configs,
ServerContext serverContext)
Initializes all the log publishers.
|
boolean |
isConfigurationAddAcceptable(C config,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons) |
boolean |
isConfigurationChangeAcceptable(C config,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons) |
boolean |
isConfigurationDeleteAcceptable(C config,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons) |
abstract void |
removeAllLogPublishers()
Removes all existing log publishers from the logger.
|
abstract boolean |
removeLogPublisher(P publisher)
Remove a log publisher from the logger.
|
protected abstract Collection<P> getLogPublishers()
LogPublisherspublic abstract void addLogPublisher(P publisher)
publisher - The log publisher to add.public abstract boolean removeLogPublisher(P publisher)
publisher - The log publisher to remove.public abstract void removeAllLogPublishers()
protected abstract org.forgerock.opendj.config.ClassPropertyDefinition getJavaClassPropertyDefinition()
ClassPropertyDefinition for the current logger.ClassPropertyDefinition for the current logger.public void initializeLogger(List<C> configs, ServerContext serverContext) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
configs - The log publisher configurations.serverContext - The server context.org.forgerock.opendj.config.server.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.public boolean isConfigurationAddAcceptable(C config, List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
isConfigurationAddAcceptable in interface org.forgerock.opendj.config.server.ConfigurationAddListener<C extends org.forgerock.opendj.server.config.server.LogPublisherCfg>public boolean isConfigurationChangeAcceptable(C config, List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<C extends org.forgerock.opendj.server.config.server.LogPublisherCfg>public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationAdd(C config)
applyConfigurationAdd in interface org.forgerock.opendj.config.server.ConfigurationAddListener<C extends org.forgerock.opendj.server.config.server.LogPublisherCfg>public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(C config)
applyConfigurationChange in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<C extends org.forgerock.opendj.server.config.server.LogPublisherCfg>public boolean isConfigurationDeleteAcceptable(C config, List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
isConfigurationDeleteAcceptable in interface org.forgerock.opendj.config.server.ConfigurationDeleteListener<C extends org.forgerock.opendj.server.config.server.LogPublisherCfg>public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationDelete(C config)
applyConfigurationDelete in interface org.forgerock.opendj.config.server.ConfigurationDeleteListener<C extends org.forgerock.opendj.server.config.server.LogPublisherCfg>Copyright © 2010-2020 Wren Security. All Rights Reserved.