|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.caucho.vfs.RotateStream
Automatically-rotating streams. Normally, clients will call getStream instead of using the StreamImpl interface.
Method Summary | |
boolean |
canWrite()
True if the stream can write |
static RotateStream |
create(Path path)
Returns the rotate stream corresponding to this path |
WriteStream |
getStream()
Gets the current write stream |
void |
handleCron(Cron cron)
Handles a callback from an alarm. |
void |
setMaxRolloverCount(int count)
Sets the maximum number of rolled logs. |
void |
setRolloverPeriod(long period)
Sets the log rollover period, rounded up to the nearest hour. |
void |
setRolloverSize(int size)
Sets the log rollover size, rounded up to the megabyte. |
void |
setTimestamp(java.lang.String timestamp)
Sets the timestamp format. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static RotateStream create(Path path)
public void setMaxRolloverCount(int count)
public void setRolloverPeriod(long period)
period
- the new rollover period in milliseconds.public void setRolloverSize(int size)
size
- maximum size of the log file, rolled up to the nearest meg.public void setTimestamp(java.lang.String timestamp)
public boolean canWrite()
public WriteStream getStream()
public void handleCron(Cron cron)
CronListener
handleCron
in interface CronListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |