public abstract class OnPrintStreamStatusListenerBase extends ContextAwareBase implements StatusListener, LifeCycle
context
Constructor and Description |
---|
OnPrintStreamStatusListenerBase() |
Modifier and Type | Method and Description |
---|---|
void |
addStatusEvent(Status status) |
String |
getPrefix() |
protected abstract PrintStream |
getPrintStream()
The PrintStream used by derived classes
|
long |
getRetrospective() |
boolean |
isStarted() |
void |
setPrefix(String prefix) |
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, setContext
protected abstract PrintStream getPrintStream()
public void addStatusEvent(Status status)
addStatusEvent
in interface StatusListener
public void start()
public String getPrefix()
public void setPrefix(String prefix)
public void setRetrospective(long retrospective)
public long getRetrospective()
Copyright © 2005–2023 QOS.ch. All rights reserved.