public abstract class MetricsInterceptorImpl<T> extends WorkflowInterceptorImpl
Modifier and Type | Class and Description |
---|---|
static interface |
MetricsInterceptorImpl.StatisticsDelta<E extends InterceptorStatistic> |
WorkflowInterceptorImpl.WorkflowInterceptorException
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_TIMESLICE_HISTORY_COUNT |
log
Constructor and Description |
---|
MetricsInterceptorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the component.
|
TimeInterval |
getTimesliceDuration() |
java.lang.Integer |
getTimesliceHistoryCount() |
void |
init()
Initialises the component.
|
void |
setTimesliceDuration(TimeInterval timesliceDuration)
Set the duration of each timeslice for metrics gathering.
|
void |
setTimesliceHistoryCount(java.lang.Integer s)
Set the number of timeslices to keep.
|
void |
start()
Starts the component.
|
void |
stop()
Stop the component
|
protected int |
timesliceHistoryCount() |
changeState, getUniqueId, parentChannel, parentWorkflow, prepare, registerParentChannel, registerParentWorkflow, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setUniqueId, wasSuccessful
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processingStart, workflowEnd, workflowStart
protected static final int DEFAULT_TIMESLICE_HISTORY_COUNT
public void init() throws CoreException
ComponentLifecycle
Component initialisation includes config verification, creation of connections etc.
CoreException
- wrapping any underlying Exception
spublic void start() throws CoreException
ComponentLifecycle
Once a component is started it should be ready to process messages. In the case of AdaptrisMessageConsumer
, calling start
will begin message delivery.
CoreException
- wrapping any underlying Exception
spublic void stop()
ComponentLifecycle
A stopped component is not expected to be ready to process messages. In the case of AdaptrisMessageConsumer
, calling stop
will pause message delivery. Throwing a RuntimeException
may cause unintended consequences
public void close()
ComponentLifecycle
A closed component should release any connections it uses, etc. and clean up completely. Throwing a RuntimeException
may
cause unintended consequences
protected int timesliceHistoryCount()
public java.lang.Integer getTimesliceHistoryCount()
public void setTimesliceHistoryCount(java.lang.Integer s)
s
- the number of timeslices to keep (default 100)public TimeInterval getTimesliceDuration()
public void setTimesliceDuration(TimeInterval timesliceDuration)
timesliceDuration
- the timeslice duration, default is 10 seconds if not explicitly specified.