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.
| Modifier and Type | Field and Description |
|---|---|
| private RotateStrategy[] | |
| private int | m_usedRotation
The rotation strategy used. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: boolean return true if log rotation is neccessary, else falsethe last message written to the log system data, final File ??? file)Implements org. |
| public void |
| m_strategies | back to summary |
|---|---|
| private RotateStrategy[] m_strategies | |
| m_usedRotation | back to summary |
|---|---|
| private int m_usedRotation The rotation strategy used. This marker is required for the reset() method. | |
| OrRotateStrategy | back to summary |
|---|---|
| public OrRotateStrategy(final RotateStrategy[] strategies) Constructor
| |
| isRotationNeeded | back to summary |
|---|---|
| public boolean isRotationNeeded(final String data, final File file) Implements org. check if now a log rotation is neccessary.
This object is initialised with several rotation strategy objects.
The | |
| reset | back to summary |
|---|---|
| public void reset() Implements org. reset. | |