org.apache.log.output.io.rotate
public class OrRotateStrategy extends Object implements RotateStrategy
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 checked, and so on.
Field Summary | |
---|---|
RotateStrategy[] | m_strategies |
int | m_usedRotation The rotation strategy used. |
Constructor Summary | |
---|---|
OrRotateStrategy(RotateStrategy[] strategies)
Constructor |
Method Summary | |
---|---|
boolean | isRotationNeeded(String data, File file)
check if now a log rotation is neccessary.
|
void | reset()
reset. |
Parameters: strategies the set of rotation strategies
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 file ???
Returns: boolean return true if log rotation is neccessary, else false