Package com.adaptris.core.interceptor
Class MetadataMetricsInterceptorImpl
- java.lang.Object
-
- com.adaptris.core.interceptor.WorkflowInterceptorImpl
-
- com.adaptris.core.interceptor.MetricsInterceptorImpl<MetadataStatistic>
-
- com.adaptris.core.interceptor.MetadataMetricsInterceptorImpl
-
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,StateManagedComponent
,WorkflowInterceptor
- Direct Known Subclasses:
MetadataCountInterceptor
,MetadataTotalsInterceptor
public abstract class MetadataMetricsInterceptorImpl extends MetricsInterceptorImpl<MetadataStatistic>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.adaptris.core.interceptor.MetricsInterceptorImpl
MetricsInterceptorImpl.StatisticsDelta<E extends InterceptorStatistic>
-
Nested classes/interfaces inherited from class com.adaptris.core.interceptor.WorkflowInterceptorImpl
WorkflowInterceptorImpl.WorkflowInterceptorException
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.interceptor.MetricsInterceptorImpl
DEFAULT_TIMESLICE_HISTORY_COUNT
-
Fields inherited from class com.adaptris.core.interceptor.WorkflowInterceptorImpl
log
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MetadataMetricsInterceptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 componentprotected void
update(MetricsInterceptorImpl.StatisticsDelta<MetadataStatistic> d)
protected void
updateCurrent(MetadataStatistic currentTimeSlice)
-
Methods inherited from class com.adaptris.core.interceptor.MetricsInterceptorImpl
getTimesliceDuration, getTimesliceHistoryCount, setTimesliceDuration, setTimesliceHistoryCount, timesliceHistoryCount
-
Methods inherited from class com.adaptris.core.interceptor.WorkflowInterceptorImpl
changeState, getUniqueId, parentChannel, parentWorkflow, prepare, registerParentChannel, registerParentWorkflow, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setUniqueId, wasSuccessful
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adaptris.core.WorkflowInterceptor
processingStart, workflowEnd, workflowStart
-
-
-
-
Method Detail
-
init
public void init() throws CoreException
Description copied from interface:ComponentLifecycle
Initialises the component.Component initialisation includes config verification, creation of connections etc.
- Specified by:
init
in interfaceComponentLifecycle
- Overrides:
init
in classMetricsInterceptorImpl<MetadataStatistic>
- Throws:
CoreException
- wrapping any underlyingException
s
-
start
public void start() throws CoreException
Description copied from interface:ComponentLifecycle
Starts the component.Once a component is started it should be ready to process messages. In the case of
AdaptrisMessageConsumer
, calling start will begin message delivery.- Specified by:
start
in interfaceComponentLifecycle
- Overrides:
start
in classMetricsInterceptorImpl<MetadataStatistic>
- Throws:
CoreException
- wrapping any underlyingException
s
-
stop
public void stop()
Description copied from interface:ComponentLifecycle
Stop the componentA stopped component is not expected to be ready to process messages. In the case of
AdaptrisMessageConsumer
, calling stop will pause message delivery. Throwing aRuntimeException
may cause unintended consequences- Specified by:
stop
in interfaceComponentLifecycle
- Overrides:
stop
in classMetricsInterceptorImpl<MetadataStatistic>
-
close
public void close()
Description copied from interface:ComponentLifecycle
Closes the component.A closed component should release any connections it uses, etc. and clean up completely. Throwing a
RuntimeException
may cause unintended consequences- Specified by:
close
in interfaceComponentLifecycle
- Overrides:
close
in classMetricsInterceptorImpl<MetadataStatistic>
-
clearStatistics
protected void clearStatistics()
-
update
protected void update(MetricsInterceptorImpl.StatisticsDelta<MetadataStatistic> d)
-
updateCurrent
protected void updateCurrent(MetadataStatistic currentTimeSlice)
-
getStats
protected java.util.List<InterceptorStatistic> getStats()
-
statisticManager
protected StatisticManager statisticManager()
-
getStatisticManager
public StatisticManager getStatisticManager()
-
setStatisticManager
public void setStatisticManager(StatisticManager statisticManager)
-
-