Package org.openspaces.admin.internal.pu
Class DefaultProcessingUnitInstanceServiceStatistics
java.lang.Object
org.openspaces.admin.internal.pu.DefaultProcessingUnitInstanceServiceStatistics
- All Implemented Interfaces:
Iterable<ServiceMonitors>,ProcessingUnitInstanceStatistics
public class DefaultProcessingUnitInstanceServiceStatistics
extends Object
implements ProcessingUnitInstanceStatistics
- Author:
- kimchy
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultProcessingUnitInstanceServiceStatistics(long timestamp, Map<String, ServiceMonitors> serviceMonitorsById, ProcessingUnitInstanceStatistics previous, int historySize, long timeDelta) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMonitors(ServiceMonitors[] monitors) longReturns a timestamp that is in sync with where the admin API is running.Returns all the different async polling event containers monitors keyed by the service id.Returns all the different event containers monitors keyed by the service id.Returns a map of theServiceMonitorsper processing unit service id (bean id or bean name).Returns all the different notify event containers monitors keyed by the service id.Returns all the different polling event containers monitors keyed by the service id.Returns the previous statistics.Returns the remoting service (if configured) monitors infomration.getTimelineFromTimestamp(long fromTimestamp) Returns the timeline (from newest to oldest) history statistics, including this one.longThe timestamp the stats were taken at.Returns statistics of JEE requests.iterator()voidsetPrevious(ProcessingUnitInstanceStatistics previous) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DefaultProcessingUnitInstanceServiceStatistics
public DefaultProcessingUnitInstanceServiceStatistics(long timestamp, Map<String, ServiceMonitors> serviceMonitorsById, ProcessingUnitInstanceStatistics previous, int historySize, long timeDelta)
-
-
Method Details
-
getTimestamp
public long getTimestamp()Description copied from interface:ProcessingUnitInstanceStatisticsThe timestamp the stats were taken at.- Specified by:
getTimestampin interfaceProcessingUnitInstanceStatistics
-
getAdminTimestamp
public long getAdminTimestamp()Description copied from interface:ProcessingUnitInstanceStatisticsReturns a timestamp that is in sync with where the admin API is running. Can return -1 if the clocks have are not sync yet.- Specified by:
getAdminTimestampin interfaceProcessingUnitInstanceStatistics
-
iterator
- Specified by:
iteratorin interfaceIterable<ServiceMonitors>
-
getMonitors
Description copied from interface:ProcessingUnitInstanceStatisticsReturns a map of theServiceMonitorsper processing unit service id (bean id or bean name).- Specified by:
getMonitorsin interfaceProcessingUnitInstanceStatistics
-
getEventContainers
Description copied from interface:ProcessingUnitInstanceStatisticsReturns all the different event containers monitors keyed by the service id.- Specified by:
getEventContainersin interfaceProcessingUnitInstanceStatistics
-
getPollingEventContainers
Description copied from interface:ProcessingUnitInstanceStatisticsReturns all the different polling event containers monitors keyed by the service id.- Specified by:
getPollingEventContainersin interfaceProcessingUnitInstanceStatistics
-
getNotifyEventContainers
Description copied from interface:ProcessingUnitInstanceStatisticsReturns all the different notify event containers monitors keyed by the service id.- Specified by:
getNotifyEventContainersin interfaceProcessingUnitInstanceStatistics
-
getAsyncPollingEventContainers
Description copied from interface:ProcessingUnitInstanceStatisticsReturns all the different async polling event containers monitors keyed by the service id.- Specified by:
getAsyncPollingEventContainersin interfaceProcessingUnitInstanceStatistics
-
getRemoting
Description copied from interface:ProcessingUnitInstanceStatisticsReturns the remoting service (if configured) monitors infomration.- Specified by:
getRemotingin interfaceProcessingUnitInstanceStatistics
-
getWebRequests
Description copied from interface:ProcessingUnitInstanceStatisticsReturns statistics of JEE requests.- Specified by:
getWebRequestsin interfaceProcessingUnitInstanceStatistics
-
getPrevious
Description copied from interface:ProcessingUnitInstanceStatisticsReturns the previous statistics.- Specified by:
getPreviousin interfaceProcessingUnitInstanceStatistics
-
setPrevious
-
addMonitors
-
getTimelineFromTimestamp
Description copied from interface:ProcessingUnitInstanceStatisticsReturns the timeline (from newest to oldest) history statistics, including this one.- Specified by:
getTimelineFromTimestampin interfaceProcessingUnitInstanceStatistics- Parameters:
fromTimestamp- brings statistics starting from this timestamp ( not included )
-