org.opends.server.loggers
Class RotationActionThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.opends.server.api.DirectoryThread
          extended by org.opends.server.loggers.RotationActionThread
All Implemented Interfaces:
java.lang.Runnable

public class RotationActionThread
extends DirectoryThread

This thread is spawned off at the time of file rotation to execute specific actions such as compression, encryption, and signing of the log files.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RotationActionThread(java.lang.String filename, java.util.ArrayList<ActionType> actions, ConfigEntry configEntry)
          Create the logger thread along with the specified file name, and the rotation actions.
 
Method Summary
 void run()
          The run method of the thread.
 
Methods inherited from class org.opends.server.api.DirectoryThread
getAssociatedTask, getCreationStackTrace, getDebugProperties, getParentThread, setAssociatedTask
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RotationActionThread

public RotationActionThread(java.lang.String filename,
                            java.util.ArrayList<ActionType> actions,
                            ConfigEntry configEntry)
Create the logger thread along with the specified file name, and the rotation actions.

Parameters:
filename - The name of the file to be rotated.
actions - The set of actions that should be performed when the file is rotated.
configEntry - The entry that contains the rotation configuration.
Method Detail

run

public void run()
The run method of the thread.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread