|
Simple Log 2.0.1
[grlea] |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for objects that wish to be able to decide when log files should be rolled over.
Method Summary | |
void |
configure(java.util.Map properties)
Reads from the given map any properties that affect the behaviour of this strategy. |
boolean |
rolloverNow(java.util.Date fileCreated,
long fileLength)
Decides whether or not the log file should be rolled over immediately. |
Method Detail |
public void configure(java.util.Map properties) throws java.io.IOException
properties
- an unmodifiable map of properties, i.e. String keys with String values
java.io.IOException
- if an error occurs while configuring the strategy.public boolean rolloverNow(java.util.Date fileCreated, long fileLength)
fileCreated
- the date and time at which the current log file was createdfileLength
- the current length of the log file
true
if the log file should be rolled over now, false
if it
should not.
|
Copyright (c) 2004-2006, Graham Lea. All rights reserved. |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |