|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.log.output.io.rotate.OrRotateStrategy
public class OrRotateStrategy
Hierarchical rotation strategy.
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 checked, and so on.
| Field Summary | |
|---|---|
private RotateStrategy[] |
m_strategies
|
private 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private RotateStrategy[] m_strategies
private int m_usedRotation
| Constructor Detail |
|---|
public OrRotateStrategy(RotateStrategy[] strategies)
strategies - the set of rotation strategies| Method Detail |
|---|
public void reset()
reset in interface RotateStrategy
public boolean isRotationNeeded(String data,
File file)
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.
isRotationNeeded in interface RotateStrategydata - the last message written to the log systemfile - ???
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||