|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.api.ErrorLogPublisher<FileBasedErrorLogPublisherCfg>
org.opends.server.loggers.TextErrorLogPublisher
public class TextErrorLogPublisher
This class provides an implementation of an error log publisher.
Field Summary |
---|
Fields inherited from class org.opends.server.api.ErrorLogPublisher |
---|
defaultSeverities, definedSeverities |
Constructor Summary | |
---|---|
TextErrorLogPublisher()
|
Method Summary | |
---|---|
ConfigChangeResult |
applyConfigurationChange(FileBasedErrorLogPublisherCfg config)
Applies the configuration changes to this change listener. |
void |
close()
Close this publisher. |
DN |
getDN()
Gets the DN of the configuration entry for this error log publisher. |
static TextErrorLogPublisher |
getStartupTextErrorPublisher(TextWriter writer)
Returns an instance of the text error log publisher that will print all messages to the provided writer. |
void |
initializeErrorLogPublisher(FileBasedErrorLogPublisherCfg config)
Initializes this access publisher provider based on the information in the provided debug publisher configuration. |
boolean |
isConfigurationAcceptable(ErrorLogPublisherCfg configuration,
java.util.List<Message> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this error log publisher. |
boolean |
isConfigurationChangeAcceptable(FileBasedErrorLogPublisherCfg config,
java.util.List<Message> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable to this change listener. |
void |
logError(Message message)
Writes a message to the error log using the provided information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextErrorLogPublisher()
Method Detail |
---|
public static TextErrorLogPublisher getStartupTextErrorPublisher(TextWriter writer)
writer
- The text writer where the message will be written to.
public void initializeErrorLogPublisher(FileBasedErrorLogPublisherCfg config) throws ConfigException, InitializationException
initializeErrorLogPublisher
in class ErrorLogPublisher<FileBasedErrorLogPublisherCfg>
config
- The error publisher configuration that contains
the information to use to initialize this error
publisher.
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 isConfigurationAcceptable(ErrorLogPublisherCfg configuration, java.util.List<Message> unacceptableReasons)
isConfigurationAcceptable
in class ErrorLogPublisher<FileBasedErrorLogPublisherCfg>
configuration
- The error 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 error log publisher, or false
if not.public boolean isConfigurationChangeAcceptable(FileBasedErrorLogPublisherCfg config, java.util.List<Message> unacceptableReasons)
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<FileBasedErrorLogPublisherCfg>
config
- The new configuration containing the changes.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.
true
if the proposed change is
acceptable, or false
if it is not.public ConfigChangeResult applyConfigurationChange(FileBasedErrorLogPublisherCfg config)
applyConfigurationChange
in interface ConfigurationChangeListener<FileBasedErrorLogPublisherCfg>
config
- The new configuration containing the changes.
public void close()
close
in class ErrorLogPublisher<FileBasedErrorLogPublisherCfg>
public void logError(Message message)
logError
in class ErrorLogPublisher<FileBasedErrorLogPublisherCfg>
message
- The message to be logged.public DN getDN()
getDN
in class ErrorLogPublisher<FileBasedErrorLogPublisherCfg>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |