|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.log.output.io.rotate.RotateStrategyByDate
public class RotateStrategyByDate
Rotation stragety based on SimpleDateFormat.
| Field Summary | |
|---|---|
private java.lang.String |
m_current
|
private java.util.Date |
m_date
|
private java.text.SimpleDateFormat |
m_format
|
| Constructor Summary | |
|---|---|
RotateStrategyByDate()
Creation of a new rotation strategy based on a date policy. |
|
RotateStrategyByDate(java.lang.String pattern)
Creation of a new rotation strategy based on a date policy using a supplied pattern. |
|
| Method Summary | |
|---|---|
boolean |
isRotationNeeded(java.lang.String data,
java.io.File file)
Test is a rotation is required. |
void |
reset()
Reset the strategy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.text.SimpleDateFormat m_format
private java.util.Date m_date
private java.lang.String m_current
| Constructor Detail |
|---|
public RotateStrategyByDate()
public RotateStrategyByDate(java.lang.String pattern)
pattern - the message formatting pattern| Method Detail |
|---|
public void reset()
reset in interface RotateStrategy
public boolean isRotationNeeded(java.lang.String data,
java.io.File file)
isRotationNeeded in interface RotateStrategydata - not usedfile - not used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||