org.opends.server.admin.std.server
Interface FileCountLogRetentionPolicyCfg

All Superinterfaces:
Configuration, LogRetentionPolicyCfg

public interface FileCountLogRetentionPolicyCfg
extends LogRetentionPolicyCfg

A server-side interface for querying File Count Log Retention Policy settings.

Retention policy based on the number of rotated log files on disk.


Method Summary
 void addFileCountChangeListener(ConfigurationChangeListener<FileCountLogRetentionPolicyCfg> listener)
          Register to be notified when this File Count Log Retention Policy is changed.
 java.lang.Class<? extends FileCountLogRetentionPolicyCfg> configurationClass()
          Gets the configuration class associated with this File Count Log Retention Policy.
 java.lang.String getJavaClass()
          Gets the "java-class" property.
 int getNumberOfFiles()
          Gets the "number-of-files" property.
 void removeFileCountChangeListener(ConfigurationChangeListener<FileCountLogRetentionPolicyCfg> listener)
          Deregister an existing File Count Log Retention Policy configuration change listener.
 
Methods inherited from interface org.opends.server.admin.std.server.LogRetentionPolicyCfg
addChangeListener, removeChangeListener
 
Methods inherited from interface org.opends.server.admin.Configuration
dn
 

Method Detail

configurationClass

java.lang.Class<? extends FileCountLogRetentionPolicyCfg> configurationClass()
Gets the configuration class associated with this File Count Log Retention Policy.

Specified by:
configurationClass in interface Configuration
Specified by:
configurationClass in interface LogRetentionPolicyCfg
Returns:
Returns the configuration class associated with this File Count Log Retention Policy.

addFileCountChangeListener

void addFileCountChangeListener(ConfigurationChangeListener<FileCountLogRetentionPolicyCfg> listener)
Register to be notified when this File Count Log Retention Policy is changed.

Parameters:
listener - The File Count Log Retention Policy configuration change listener.

removeFileCountChangeListener

void removeFileCountChangeListener(ConfigurationChangeListener<FileCountLogRetentionPolicyCfg> listener)
Deregister an existing File Count Log Retention Policy configuration change listener.

Parameters:
listener - The File Count Log Retention Policy configuration change listener.

getJavaClass

java.lang.String getJavaClass()
Gets the "java-class" property.

Specifies the fully-qualified name of the Java class that provides the File Count Log Retention Policy implementation.

Specified by:
getJavaClass in interface LogRetentionPolicyCfg
Returns:
Returns the value of the "java-class" property.

getNumberOfFiles

int getNumberOfFiles()
Gets the "number-of-files" property.

Specifies the number of archived log files to retain before the oldest ones are cleaned.

Returns:
Returns the value of the "number-of-files" property.