|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
cmsc433.p1.LogGatherProgress
public class LogGatherProgress
Marks progress by waiting for a designated event e to be generated by each of a number of logs.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
LogGatherProgress(java.util.List<Log> logs,
java.lang.String event)
Marks progress by printing a designated event once each time that event has been emitted by the given logs. |
|
| Method Summary | |
|---|---|
void |
notify(java.lang.Object target,
LogRecord event)
This function is called whenever an event occurs that is associated with one of the objects with which this Listener is registered. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LogGatherProgress(java.util.List<Log> logs,
java.lang.String event)
logs - The list of logs that this LogGatherProgress object should watch.event - The event that marks progress.| Method Detail |
|---|
public void notify(java.lang.Object target,
LogRecord event)
Listener
notify in interface Listener<LogRecord>target - The object that generated the event. For our logging framework,
this is the Log object to which the LogRecord was added.event - The event that occurred. For our logging framework, this will
be a LogRecord.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||