| java.lang.Object org.jivesoftware.util.log.output.io.rotate.OrRotateStrategy
OrRotateStrategy | public class OrRotateStrategy implements RotateStrategy(Code) | | Hierarchical Rotation stragety.
This object is initialised with several rotation strategy objects.
The isRotationNeeded method checks the first rotation
strategy object. If a rotation is needed, this result is returned.
If not the next rotation strategy object is asked and so on.
author: Carsten Ziegeler |
Method Summary | |
public boolean | isRotationNeeded(String data, File file) check if now a log rotation is neccessary.
This object is initialised with several rotation strategy objects.
The isRotationNeeded method checks the first rotation
strategy object. | public void | reset() reset. |
isRotationNeeded | public boolean isRotationNeeded(String data, File file)(Code) | | check if now a log rotation is neccessary.
This object is initialised with several rotation strategy objects.
The isRotationNeeded method checks the first rotation
strategy object. If a rotation is needed, this result is returned.
If not the next rotation strategy object is asked and so on.
Parameters: data - the last message written to the log system boolean return true if log rotation is neccessary, else false |
reset | public void reset()(Code) | | reset.
|
|
|