Interface FileBasedErrorLogPublisherCfg
- All Superinterfaces:
Configuration,ErrorLogPublisherCfg,LogPublisherCfg
File Based Error Log Publishers publish error messages to the file system.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddFileBasedErrorChangeListener(ConfigurationChangeListener<FileBasedErrorLogPublisherCfg> listener) Register to be notified when this File Based Error Log Publisher is changed.Class<? extends FileBasedErrorLogPublisherCfg>Gets the configuration class associated with this File Based Error Log Publisher.longGets the "buffer-size" property.Gets the "java-class" property.Gets the "log-file" property.Gets the "log-file-permissions" property.intGets the "queue-size" property.Gets the "retention-policy" property.Gets the "retention-policy" property as a set of DNs.Gets the "rotation-policy" property.Gets the "rotation-policy" property as a set of DNs.longGets the "time-interval" property.booleanisAppend()Gets the "append" property.booleanGets the "asynchronous" property.booleanGets the "auto-flush" property.voidremoveFileBasedErrorChangeListener(ConfigurationChangeListener<FileBasedErrorLogPublisherCfg> listener) Deregister an existing File Based Error Log Publisher configuration change listener.Methods inherited from interface org.forgerock.opendj.config.Configuration
dn, nameMethods inherited from interface org.forgerock.opendj.server.config.server.ErrorLogPublisherCfg
addErrorChangeListener, getDefaultSeverity, getOverrideSeverity, isJsonOutput, removeErrorChangeListenerMethods inherited from interface org.forgerock.opendj.server.config.server.LogPublisherCfg
addChangeListener, isEnabled, removeChangeListener
-
Method Details
-
configurationClass
Class<? extends FileBasedErrorLogPublisherCfg> configurationClass()Gets the configuration class associated with this File Based Error Log Publisher.- Specified by:
configurationClassin interfaceConfiguration- Specified by:
configurationClassin interfaceErrorLogPublisherCfg- Specified by:
configurationClassin interfaceLogPublisherCfg- Returns:
- Returns the configuration class associated with this File Based Error Log Publisher.
-
addFileBasedErrorChangeListener
void addFileBasedErrorChangeListener(ConfigurationChangeListener<FileBasedErrorLogPublisherCfg> listener) Register to be notified when this File Based Error Log Publisher is changed.- Parameters:
listener- The File Based Error Log Publisher configuration change listener.
-
removeFileBasedErrorChangeListener
void removeFileBasedErrorChangeListener(ConfigurationChangeListener<FileBasedErrorLogPublisherCfg> listener) Deregister an existing File Based Error Log Publisher configuration change listener.- Parameters:
listener- The File Based Error Log Publisher configuration change listener.
-
isAppend
boolean isAppend()Gets the "append" property.Specifies whether to append to existing log files.
Default value:
true- Returns:
- Returns the value of the "append" property.
-
isAsynchronous
boolean isAsynchronous()Gets the "asynchronous" property.Indicates whether the File Based Error Log Publisher will publish records asynchronously.
Default value:
true- Returns:
- Returns the value of the "asynchronous" property.
-
isAutoFlush
boolean isAutoFlush()Gets the "auto-flush" property.Specifies whether to flush the writer after every log record.
If the asynchronous writes option is used, the writer will be flushed after all the log records in the queue are written.
Default value:
true- Returns:
- Returns the value of the "auto-flush" property.
-
getBufferSize
long getBufferSize()Gets the "buffer-size" property.Specifies the log file buffer size.
Default value:
64kb- Returns:
- Returns the value of the "buffer-size" property.
-
getJavaClass
String getJavaClass()Gets the "java-class" property.The fully-qualified name of the Java class that provides the File Based Error Log Publisher implementation.
Default value:
org.opends.server.loggers.TextErrorLogPublisher- Specified by:
getJavaClassin interfaceErrorLogPublisherCfg- Specified by:
getJavaClassin interfaceLogPublisherCfg- Returns:
- Returns the value of the "java-class" property.
-
getLogFile
String getLogFile()Gets the "log-file" property.The file name to use for the log files generated by the File Based Error Log Publisher .
The path to the file is relative to the server root.
- Returns:
- Returns the value of the "log-file" property.
-
getLogFilePermissions
String getLogFilePermissions()Gets the "log-file-permissions" property.The UNIX permissions of the log files created by this File Based Error Log Publisher .
Default value:
640- Returns:
- Returns the value of the "log-file-permissions" property.
-
getQueueSize
int getQueueSize()Gets the "queue-size" property.The maximum number of log records that can be stored in the asynchronous queue.
Default value:
5000- Returns:
- Returns the value of the "queue-size" property.
-
getRetentionPolicy
Gets the "retention-policy" property.The retention policy to use for the File Based Error Log Publisher .
When multiple policies are used, log files will be cleaned when any of the policy's conditions are met.
- Returns:
- Returns an unmodifiable set containing the values of the "retention-policy" property.
-
getRetentionPolicyDns
Gets the "retention-policy" property as a set of DNs.The retention policy to use for the File Based Error Log Publisher .
When multiple policies are used, log files will be cleaned when any of the policy's conditions are met.
- Returns:
- Returns the DN values of the "retention-policy" property.
-
getRotationPolicy
Gets the "rotation-policy" property.The rotation policy to use for the File Based Error Log Publisher .
When multiple policies are used, rotation will occur if any policy's conditions are met.
- Returns:
- Returns an unmodifiable set containing the values of the "rotation-policy" property.
-
getRotationPolicyDns
Gets the "rotation-policy" property as a set of DNs.The rotation policy to use for the File Based Error Log Publisher .
When multiple policies are used, rotation will occur if any policy's conditions are met.
- Returns:
- Returns the DN values of the "rotation-policy" property.
-
getTimeInterval
long getTimeInterval()Gets the "time-interval" property.Specifies the interval at which to check whether the log files need to be rotated.
Default value:
5s- Returns:
- Returns the value of the "time-interval" property.
-