Package com.adaptris.core.interceptor
Class MessageMetricsStatistics
- java.lang.Object
-
- com.adaptris.core.runtime.ChildRuntimeInfoComponentImpl
-
- com.adaptris.core.interceptor.MessageMetricsStatistics
-
- All Implemented Interfaces:
MessageMetricsStatisticsMBean
,MetricsMBean
,BaseComponentMBean
,ChildRuntimeInfoComponent
,ChildRuntimeInfoComponentMBean
,RuntimeInfoComponent
public class MessageMetricsStatistics extends ChildRuntimeInfoComponentImpl implements MessageMetricsStatisticsMBean
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.runtime.ChildRuntimeInfoComponentImpl
log
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MessageMetricsStatistics(WorkflowManager owner, MessageMetricsInterceptorImpl interceptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearStatistics()
Clear any statistics held in this MBean.int
getNumberOfTimeSlices()
Get the current number of timeslices stored.ParentRuntimeInfoComponent
getParentRuntimeInfoComponent()
java.util.List<MessageStatistic>
getStatistics()
Get all the statistics hosted by this management bean.java.util.List<MessageStatistic>
getStatistics(int fromIndex, int toIndex)
Returns a view of the portion of this list between the specifiedfromIndex
, inclusive, andtoIndex
, exclusive.int
getTimeSliceDurationSeconds()
Get the duration of each timeslice.java.lang.String
getTotalStringStats()
Get a simple string representation of stats.protected java.lang.String
getType()
protected java.lang.String
uniqueId()
-
Methods inherited from class com.adaptris.core.runtime.ChildRuntimeInfoComponentImpl
createObjectName, getParentId, getParentObjectName, registerMBean, unregisterMBean
-
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.runtime.BaseComponentMBean
createObjectName, registerMBean, unregisterMBean
-
Methods inherited from interface com.adaptris.core.runtime.ChildRuntimeInfoComponentMBean
getParentId, getParentObjectName
-
-
-
-
Constructor Detail
-
MessageMetricsStatistics
protected MessageMetricsStatistics(WorkflowManager owner, MessageMetricsInterceptorImpl interceptor)
-
-
Method Detail
-
getType
protected java.lang.String getType()
- Specified by:
getType
in classChildRuntimeInfoComponentImpl
-
uniqueId
protected java.lang.String uniqueId()
- Specified by:
uniqueId
in classChildRuntimeInfoComponentImpl
-
getNumberOfTimeSlices
public int getNumberOfTimeSlices()
Description copied from interface:MetricsMBean
Get the current number of timeslices stored.- Specified by:
getNumberOfTimeSlices
in interfaceMetricsMBean
- Returns:
- the number of timeslices.
-
getTimeSliceDurationSeconds
public int getTimeSliceDurationSeconds()
Description copied from interface:MetricsMBean
Get the duration of each timeslice.- Specified by:
getTimeSliceDurationSeconds
in interfaceMetricsMBean
- Returns:
- the duration of each timeslice
-
getTotalStringStats
public java.lang.String getTotalStringStats()
Description copied from interface:MessageMetricsStatisticsMBean
Get a simple string representation of stats.- Specified by:
getTotalStringStats
in interfaceMessageMetricsStatisticsMBean
- Returns:
- a simple string
-
getParentRuntimeInfoComponent
public ParentRuntimeInfoComponent getParentRuntimeInfoComponent()
- Specified by:
getParentRuntimeInfoComponent
in interfaceChildRuntimeInfoComponent
-
getStatistics
public java.util.List<MessageStatistic> getStatistics() throws CoreException
Description copied from interface:MessageMetricsStatisticsMBean
Get all the statistics hosted by this management bean.- Specified by:
getStatistics
in interfaceMessageMetricsStatisticsMBean
- Returns:
- a copy of all the statistics.
- Throws:
CoreException
-
getStatistics
public java.util.List<MessageStatistic> getStatistics(int fromIndex, int toIndex) throws CoreException
Description copied from interface:MessageMetricsStatisticsMBean
Returns a view of the portion of this list between the specifiedfromIndex
, inclusive, andtoIndex
, exclusive.Although similar to
List.subList(int, int)
; it is designed to return you a copy of the list in question; any changes to the returned list will not be reflected in the underlying list.- Specified by:
getStatistics
in interfaceMessageMetricsStatisticsMBean
- Returns:
- a new list containing the statistics.
- Throws:
CoreException
-
clearStatistics
public void clearStatistics() throws CoreException
Description copied from interface:MetricsMBean
Clear any statistics held in this MBean.- Specified by:
clearStatistics
in interfaceMetricsMBean
- Throws:
CoreException
-
-