|
||||||||||
| 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 String |
m_current
|
private Date |
m_date
|
private SimpleDateFormat |
m_format
|
| Constructor Summary | |
|---|---|
RotateStrategyByDate()
Creation of a new rotation strategy based on a date policy. |
|
RotateStrategyByDate(String pattern)
Creation of a new rotation strategy based on a date policy using a supplied pattern. |
|
| Method Summary | |
|---|---|
boolean |
isRotationNeeded(String data,
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 SimpleDateFormat m_format
private Date m_date
private String m_current
| Constructor Detail |
|---|
public RotateStrategyByDate()
public RotateStrategyByDate(String pattern)
pattern - the message formatting pattern| Method Detail |
|---|
public void reset()
reset in interface RotateStrategy
public boolean isRotationNeeded(String data,
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 | |||||||||