Class MessageMonitor
- java.lang.Object
-
- com.levigo.jadice.server.ws.monitor.MessageMonitor
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.jmx.export.notification.NotificationPublisherAware
@ManagedResource(description="Job Invocation Service Monitor") public class MessageMonitor extends Object implements org.springframework.jmx.export.notification.NotificationPublisherAware
-
-
Constructor Summary
Constructors Constructor Description MessageMonitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearExecutionTimes()
long
getAvgExecutionTime()
long
getCompletedRequests()
long
getRecentAvgExecutionTime()
long
getRecentMaxExecutionTime()
long
getRecentMinExecutionTime()
long
getRunningRequests()
void
setNotificationPublisher(org.springframework.jmx.export.notification.NotificationPublisher notitifacionPublisher)
void
startObserving(org.apache.cxf.message.Message msg)
void
stopObserving(org.apache.cxf.message.Message msg)
-
-
-
Method Detail
-
startObserving
public void startObserving(org.apache.cxf.message.Message msg)
-
stopObserving
public void stopObserving(org.apache.cxf.message.Message msg)
-
getRunningRequests
@ManagedAttribute(description="Running Requests") public long getRunningRequests()
-
getCompletedRequests
@ManagedAttribute(description="Completed Requests") public long getCompletedRequests()
-
getRecentAvgExecutionTime
@ManagedAttribute(description="Avg. time taken for executing the last 10 requests [milliseconds]") public long getRecentAvgExecutionTime()
-
getRecentMinExecutionTime
@ManagedAttribute(description="Min. time taken for executing the last 10 requests [milliseconds]") public long getRecentMinExecutionTime()
-
getRecentMaxExecutionTime
@ManagedAttribute(description="Max. time taken for executing the last 10 requests [milliseconds]") public long getRecentMaxExecutionTime()
-
getAvgExecutionTime
@ManagedAttribute(description="Avg. time for execution a request [milliseconds]") public long getAvgExecutionTime()
-
clearExecutionTimes
@ManagedOperation(description="Clear all statistical data") public void clearExecutionTimes()
-
setNotificationPublisher
public void setNotificationPublisher(org.springframework.jmx.export.notification.NotificationPublisher notitifacionPublisher)
- Specified by:
setNotificationPublisher
in interfaceorg.springframework.jmx.export.notification.NotificationPublisherAware
-
-