|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.util.logging.LogRecordHandler
edu.stanford.nlp.util.logging.RepeatedRecordHandler
public class RepeatedRecordHandler
Filters repeated messages and replaces them with the number of times they were logged.
Nested Class Summary | |
---|---|
static class |
RepeatedRecordHandler.ApproximateRepeatSemantics
Judges two records to be equal if they come from the same place, and begin with the same string, modulo numbers |
static class |
RepeatedRecordHandler.ExactRepeatSemantics
Judges two records to be equal if they are from the same place, and have the same message |
static interface |
RepeatedRecordHandler.RepeatSemantics
Determines the semantics of what constitutes a repeated record |
Field Summary | |
---|---|
static RepeatedRecordHandler.ApproximateRepeatSemantics |
APPROXIMATE
|
static RepeatedRecordHandler.ExactRepeatSemantics |
EXACT
|
Fields inherited from class edu.stanford.nlp.util.logging.LogRecordHandler |
---|
EMPTY |
Constructor Summary | |
---|---|
RepeatedRecordHandler(RepeatedRecordHandler.RepeatSemantics repeatSemantics)
Create a new repeated log message handler, using the given semantics for what constitutes a repeated record. |
Method Summary | |
---|---|
List<Redwood.Record> |
handle(Redwood.Record record)
Handle a log Record, either as a filter or by producing a side effect. |
List<Redwood.Record> |
signalEndTrack(int newDepth,
long timeEnded)
Signal the end of a track, i.e. |
List<Redwood.Record> |
signalShutdown()
|
List<Redwood.Record> |
signalStartTrack(Redwood.Record signal)
Signal the start of a track, i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static RepeatedRecordHandler.ApproximateRepeatSemantics APPROXIMATE
public static RepeatedRecordHandler.ExactRepeatSemantics EXACT
Constructor Detail |
---|
public RepeatedRecordHandler(RepeatedRecordHandler.RepeatSemantics repeatSemantics)
repeatSemantics
- The semantics for what constitutes a repeated recordMethod Detail |
---|
public List<Redwood.Record> handle(Redwood.Record record)
handle
in class LogRecordHandler
record
- The log record to handle
public List<Redwood.Record> signalStartTrack(Redwood.Record signal)
signalStartTrack
in class LogRecordHandler
signal
- A record corresponding to the information in the track header.
The depth in this object is the old log depth.
public List<Redwood.Record> signalEndTrack(int newDepth, long timeEnded)
signalEndTrack
in class LogRecordHandler
newDepth
- The new depth; that is, the current depth - 1.
public List<Redwood.Record> signalShutdown()
signalShutdown
in class LogRecordHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |