public abstract class MetadataMetricsInterceptorImpl extends MetricsInterceptorImpl<MetadataStatistic>
MetricsInterceptorImpl.StatisticsDelta<E extends InterceptorStatistic>
WorkflowInterceptorImpl.WorkflowInterceptorException
DEFAULT_TIMESLICE_HISTORY_COUNT
log
Modifier | Constructor and Description |
---|---|
protected |
MetadataMetricsInterceptorImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
clearStatistics() |
void |
close()
Closes the component.
|
StatisticManager |
getStatisticManager() |
protected java.util.List<InterceptorStatistic> |
getStats() |
void |
init()
Initialises the component.
|
void |
setStatisticManager(StatisticManager statisticManager) |
void |
start()
Starts the component.
|
protected StatisticManager |
statisticManager() |
void |
stop()
Stop the component
|
protected void |
update(MetricsInterceptorImpl.StatisticsDelta<MetadataStatistic> d) |
protected void |
updateCurrent(MetadataStatistic currentTimeSlice) |
getTimesliceDuration, getTimesliceHistoryCount, setTimesliceDuration, setTimesliceHistoryCount, 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
public void init() throws CoreException
ComponentLifecycle
Component initialisation includes config verification, creation of connections etc.
init
in interface ComponentLifecycle
init
in class MetricsInterceptorImpl<MetadataStatistic>
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.
start
in interface ComponentLifecycle
start
in class MetricsInterceptorImpl<MetadataStatistic>
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
stop
in interface ComponentLifecycle
stop
in class MetricsInterceptorImpl<MetadataStatistic>
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
close
in interface ComponentLifecycle
close
in class MetricsInterceptorImpl<MetadataStatistic>
protected void clearStatistics()
protected void update(MetricsInterceptorImpl.StatisticsDelta<MetadataStatistic> d)
protected void updateCurrent(MetadataStatistic currentTimeSlice)
protected java.util.List<InterceptorStatistic> getStats()
protected StatisticManager statisticManager()
public StatisticManager getStatisticManager()
public void setStatisticManager(StatisticManager statisticManager)