RotateStrategyByDate (LogKit API)
Keywords: org.apache.log.output.io.rotate.RotateStrategyByDate,RotateStrategyByDate class

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.log.output.io.rotate
Class RotateStrategyByDate

    java.lang.Object
      |
      +--org.apache.log.output.io.rotate.RotateStrategyByDate

All Implemented Interfaces:
  RotateStrategy

public class RotateStrategyByDate
extends Object
implements RotateStrategy

Rotation stragety based on SimpleDateFormat.

Version:
  $Revision: 1.10 $ $Date: 2003/02/09 23:33:24 $
Author:
  Avalon Development Team, Eung-ju Park

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`

Constructor Detail

### RotateStrategyByDate

    public RotateStrategyByDate()

  Creation of a new rotation strategy based on a date policy.

### RotateStrategyByDate

    public RotateStrategyByDate(String pattern)

  Creation of a new rotation strategy based on a date policy using a supplied pattern.

Parameters:
  `pattern` - the message formatting pattern

Method Detail

### reset

    public void reset()

  Reset the strategy.

  Specified by:
    `reset` in interface `RotateStrategy`

### isRotationNeeded

    public boolean isRotationNeeded(String data,
                                    File file)

  Test is a rotation is required. Documentation pending ??

  Specified by:
    `isRotationNeeded` in interface `RotateStrategy`
  Parameters:
    `data` - not used
    `file` - not used
  Returns:
    TRUE if a rotation is required else FALSE

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001 Apache Jakarta Project. All Rights Reserved.