public abstract class AbstractEventProcessor extends Object implements EventProcessor, org.springframework.beans.factory.BeanNameAware
event processor implementations
Read 'good practice' notes for documenting behaviour.| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
DEFAULT_CHART |
protected static long |
DEFAULT_WARN_DELAY |
protected org.apache.commons.logging.Log |
logger
Resource for derived classes to use for logging
|
| Constructor and Description |
|---|
AbstractEventProcessor()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
long |
getWarnDelay()
Provide a hint for the processing framework on how much time should elapse before
the warnings need to be issued over the delay
|
boolean |
isChart()
Hint whether the result should be included in charts
|
void |
register()
Register this instance for the event names that are handled.
|
void |
setBeanName(String beanName) |
void |
setChart(boolean chart) |
void |
setEventName(String eventName)
Set the single event name that this processor can handle
|
void |
setEventNames(List<String> eventNames)
Set the names of the events that this processor can handle
|
void |
setRegistry(EventProcessorRegistry registry)
Inject the registry that this instance will
register with. |
void |
setWarnDelay(long warnDelay) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessEventprotected static final long DEFAULT_WARN_DELAY
protected static final boolean DEFAULT_CHART
protected org.apache.commons.logging.Log logger
public void setBeanName(String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setEventName(String eventName)
public void setEventNames(List<String> eventNames)
public void setRegistry(EventProcessorRegistry registry)
register with.public long getWarnDelay()
EventProcessorgetWarnDelay in interface EventProcessorDEFAULT_WARN_DELAY)public void setWarnDelay(long warnDelay)
warnDelay - the time allowed for processing before a warning is loggedgetWarnDelay()public boolean isChart()
EventProcessorisChart in interface EventProcessorpublic void setChart(boolean chart)
chart - true to tag results for chartingsetChart(boolean)public void register()
Copyright © 2012. All Rights Reserved.