abstract class OnPrintStreamStatusListenerBase extends ContextAwareBase implements StatusListener, LifeCycle
| Modifier and Type | Field and Description |
|---|---|
(package private) static long |
DEFAULT_RETROSPECTIVE |
(package private) boolean |
isStarted |
(package private) long |
retrospectiveThresold |
context| Constructor and Description |
|---|
OnPrintStreamStatusListenerBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStatusEvent(Status status) |
protected abstract java.io.PrintStream |
getPrintStream()
The PrintStream used by derived classes
|
long |
getRetrospective() |
private boolean |
isElapsedTimeLongerThanThreshold(long now,
long timestamp) |
boolean |
isStarted() |
private void |
print(Status status) |
private void |
retrospectivePrint()
Print status messages retrospectively
|
void |
setRetrospective(long retrospective) |
void |
start()
Invoking the start method can cause the instance to print status messages created less than
value of retrospectiveThresold.
|
void |
stop() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextboolean isStarted
static final long DEFAULT_RETROSPECTIVE
long retrospectiveThresold
protected abstract java.io.PrintStream getPrintStream()
private void print(Status status)
public void addStatusEvent(Status status)
addStatusEvent in interface StatusListenerprivate void retrospectivePrint()
private boolean isElapsedTimeLongerThanThreshold(long now,
long timestamp)
public void start()
public void setRetrospective(long retrospective)
public long getRetrospective()