com.go.trove.log
Class HourlyLogStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--com.go.trove.log.IntervalLogStream
              |
              +--com.go.trove.log.HourlyLogStream
Direct Known Subclasses:
HourlyFileLogStream

public class HourlyLogStream
extends IntervalLogStream

An implementation of the IntervalLogStream with an interval of one hour.

Version:
12 , 9/07/00
Author:
Brian S O'Neill

Inner classes inherited from class com.go.trove.log.IntervalLogStream
IntervalLogStream.Factory
 
Constructor Summary
HourlyLogStream(IntervalLogStream.Factory factory)
           
 
Method Summary
protected  void moveToIntervalStart(java.util.Calendar cal)
          Moves calendar to beginning of hour.
protected  void moveToNextIntervalStart(java.util.Calendar cal)
          Moves calendar to beginning of next hour.
 
Methods inherited from class com.go.trove.log.IntervalLogStream
close, finalize, flush, startAutoRollover, stopAutoRollover, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HourlyLogStream

public HourlyLogStream(IntervalLogStream.Factory factory)
Method Detail

moveToIntervalStart

protected void moveToIntervalStart(java.util.Calendar cal)
Moves calendar to beginning of hour.
Overrides:
moveToIntervalStart in class IntervalLogStream

moveToNextIntervalStart

protected void moveToNextIntervalStart(java.util.Calendar cal)
Moves calendar to beginning of next hour.
Overrides:
moveToNextIntervalStart in class IntervalLogStream