|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.ow2.petals.binding.soap.monitoring.Monitoring
public class Monitoring
The monitoring MBean of the BC SOAP
| Constructor Summary | |
|---|---|
Monitoring(Timer responseTimeProbesTimer,
long samplePeriod)
Creates the monitoring MBean |
|
| Method Summary | |
|---|---|
Map<String[],Long> |
getHttpRequestsCount()
Returns the number of requests since the last start. |
Map<String,Long> |
getHttpRequestsCount(String webService)
The number of requests for each execution status of the specified web-service webService whatever the web-service client. |
Map<String,Long> |
getHttpRequestsCount(String webService,
String webServiceClient)
The number of requests for each execution status of the specified web-service webService and specified web-service-client
webServiceClient. |
Map<String[],Long[]> |
getHttpRequestsResponseTimeAbs()
Returns the response time values since the last start. |
Map<String,Long> |
getHttpRequestsResponseTimeAbs(String webService)
Returns the response time values since the last start of the succeeded execution of the specified web-service webService whatever
the web-service client. |
Map<String[],Long[]> |
getHttpRequestsResponseTimeRel()
Returns the response time values on a time sample. |
Map<String,Long> |
getHttpRequestsResponseTimeRel(String webService)
Returns the response time values son a time sample of the succeeded execution of the specified web-service webService whatever
the web-service client. |
int |
getHttpServerThreadPoolAllocatedThreadsCurrent()
|
int |
getHttpServerThreadPoolAllocatedThreadsMax()
|
int |
getHttpServerThreadPoolIdleThreadsCurrent()
|
int |
getHttpServerThreadPoolIdleThreadsMax()
|
int |
getHttpServerThreadPoolMaxSize()
|
int |
getHttpServerThreadPoolMinSize()
|
int |
getHttpServerThreadPoolQueuedRequestsCurrent()
|
int |
getHttpServerThreadPoolQueuedRequestsMax()
|
long |
getInformationURLsCounter()
|
MBeanNotificationInfo[] |
getNotificationInfo()
|
org.ow2.petals.probes.KeyedCounterProbeWithExecutionStatus<IncomingServiceKey> |
getProbeHttpRequestsInvocationsCount()
|
org.ow2.petals.probes.KeyedResponseTimeProbe<IncomingServiceKey> |
getProbeHttpRequestsInvocationsResponseTime()
|
org.ow2.petals.probes.GaugeProbe<Integer,Integer> |
getProbeHttpServerThreadPoolAllocatedThreads()
|
org.ow2.petals.probes.GaugeProbe<Integer,Integer> |
getProbeHttpServerThreadPoolIdleThreads()
|
org.ow2.petals.probes.GaugeProbe<Integer,Integer> |
getProbeHttpServerThreadPoolQueuedRequests()
|
org.ow2.petals.probes.CounterProbe |
getProbeInformationServlet()
|
org.ow2.petals.probes.CounterProbe |
getProbeUnknownServlet()
|
org.ow2.petals.probes.KeyedResponseTimeProbe<ServiceClientKey> |
getProbeWsClientInvocationsResponseTime()
|
org.ow2.petals.probes.KeyedGaugeProbe<ServiceClientKey,Integer,Integer> |
getProbeWsClientPoolClientsInUse()
|
org.ow2.petals.probes.KeyedCounterProbe<ServiceClientKey> |
getProbeWsClientPoolExhaustions()
|
org.ow2.petals.probes.KeyedCounterProbeWithExecutionStatus<ServiceClientKey> |
getProbeWsRequestsInvocationsCount()
|
long |
getUnknownURLsCounter()
|
Map<String[],Long[]> |
getWsClientInvocationsResponseTimeAbs()
Returns the response time values since the last start. |
Map<String[],Long[]> |
getWsClientInvocationsResponseTimeRel()
Returns the response time values on a time sample. |
Map<String,Long> |
getWsClientPool(String webService)
|
Map<String[],Integer> |
getWsClientPoolClientsInUseCurrent()
|
Map<String[],Integer> |
getWsClientPoolClientsInUseMax()
|
Map<String[],Long> |
getWsClientPoolExhaustions()
|
Map<String,Long> |
getWsRequestsCount(String webServiceURL)
The number of requests for each execution status of the specified external web-service webServiceURL whatever the invoked
operation and message pattern. |
void |
init(org.mortbay.thread.BoundedThreadPool httpThreadPool,
Map<ServiceClientKey,org.apache.commons.pool.impl.GenericObjectPool<PetalsServiceClient>> wsClientPools)
Initialize all probes of the monitoring MBean |
void |
notifyHTTPServerThreadPoolExhausted()
|
void |
notifyServiceClientPoolExhausted(org.ow2.petals.probes.ProbeKey key)
|
void |
shutdown()
Shutdown all probes of the monitoring MBean |
void |
start()
Start all probes of the monitoring MBean |
void |
stop()
Stop all probes of the monitoring MBean |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
|---|
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Monitoring(Timer responseTimeProbesTimer,
long samplePeriod)
responseTimeProbesTimer - The timer used as sampler by response time probes. The
caller is responsible to cancel the timer to free resources
attached.samplePeriod - The duration of a sample, in milliseconds.| Method Detail |
|---|
public void init(org.mortbay.thread.BoundedThreadPool httpThreadPool,
Map<ServiceClientKey,org.apache.commons.pool.impl.GenericObjectPool<PetalsServiceClient>> wsClientPools)
throws org.ow2.petals.probes.exceptions.ProbeInitializedException,
org.ow2.petals.probes.exceptions.ProbeStartedException,
org.ow2.petals.probes.exceptions.ProbeInitializationException
httpThreadPool - The thread pool of the HTTP serverwsClientPools - The pools of service clients used to call external web
services.
org.ow2.petals.probes.exceptions.ProbeInitializedException
org.ow2.petals.probes.exceptions.ProbeStartedException
org.ow2.petals.probes.exceptions.ProbeInitializationException
public void start()
throws org.ow2.petals.probes.exceptions.ProbeException
org.ow2.petals.probes.exceptions.ProbeException
public void stop()
throws org.ow2.petals.probes.exceptions.ProbeException
org.ow2.petals.probes.exceptions.ProbeException
public void shutdown()
throws org.ow2.petals.probes.exceptions.ProbeException
org.ow2.petals.probes.exceptions.ProbeExceptionpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcastergetNotificationInfo in class NotificationBroadcasterSupportpublic final void notifyHTTPServerThreadPoolExhausted()
public final void notifyServiceClientPoolExhausted(org.ow2.petals.probes.ProbeKey key)
public final org.ow2.petals.probes.GaugeProbe<Integer,Integer> getProbeHttpServerThreadPoolAllocatedThreads()
public final org.ow2.petals.probes.GaugeProbe<Integer,Integer> getProbeHttpServerThreadPoolIdleThreads()
public final org.ow2.petals.probes.GaugeProbe<Integer,Integer> getProbeHttpServerThreadPoolQueuedRequests()
public final org.ow2.petals.probes.CounterProbe getProbeUnknownServlet()
public final org.ow2.petals.probes.CounterProbe getProbeInformationServlet()
public final org.ow2.petals.probes.KeyedCounterProbeWithExecutionStatus<IncomingServiceKey> getProbeHttpRequestsInvocationsCount()
public final org.ow2.petals.probes.KeyedResponseTimeProbe<IncomingServiceKey> getProbeHttpRequestsInvocationsResponseTime()
public final org.ow2.petals.probes.KeyedResponseTimeProbe<ServiceClientKey> getProbeWsClientInvocationsResponseTime()
public final org.ow2.petals.probes.KeyedGaugeProbe<ServiceClientKey,Integer,Integer> getProbeWsClientPoolClientsInUse()
public final org.ow2.petals.probes.KeyedCounterProbe<ServiceClientKey> getProbeWsClientPoolExhaustions()
public final org.ow2.petals.probes.KeyedCounterProbeWithExecutionStatus<ServiceClientKey> getProbeWsRequestsInvocationsCount()
public int getHttpServerThreadPoolMaxSize()
getHttpServerThreadPoolMaxSize in interface MonitoringMBeanpublic int getHttpServerThreadPoolMinSize()
getHttpServerThreadPoolMinSize in interface MonitoringMBean
public int getHttpServerThreadPoolAllocatedThreadsMax()
throws org.ow2.petals.probes.exceptions.ProbeNotInitializedException
getHttpServerThreadPoolAllocatedThreadsMax in interface MonitoringMBeanorg.ow2.petals.probes.exceptions.ProbeNotInitializedException
public int getHttpServerThreadPoolAllocatedThreadsCurrent()
throws org.ow2.petals.probes.exceptions.ProbeNotStartedException
getHttpServerThreadPoolAllocatedThreadsCurrent in interface MonitoringMBeanorg.ow2.petals.probes.exceptions.ProbeNotStartedException
public int getHttpServerThreadPoolIdleThreadsMax()
throws org.ow2.petals.probes.exceptions.ProbeNotInitializedException
getHttpServerThreadPoolIdleThreadsMax in interface MonitoringMBeanorg.ow2.petals.probes.exceptions.ProbeNotInitializedException
public int getHttpServerThreadPoolIdleThreadsCurrent()
throws org.ow2.petals.probes.exceptions.ProbeNotStartedException
getHttpServerThreadPoolIdleThreadsCurrent in interface MonitoringMBeanorg.ow2.petals.probes.exceptions.ProbeNotStartedException
public int getHttpServerThreadPoolQueuedRequestsMax()
throws org.ow2.petals.probes.exceptions.ProbeNotInitializedException
getHttpServerThreadPoolQueuedRequestsMax in interface MonitoringMBeanorg.ow2.petals.probes.exceptions.ProbeNotInitializedException
public int getHttpServerThreadPoolQueuedRequestsCurrent()
throws org.ow2.petals.probes.exceptions.ProbeNotStartedException
getHttpServerThreadPoolQueuedRequestsCurrent in interface MonitoringMBeanorg.ow2.petals.probes.exceptions.ProbeNotStartedException
public long getUnknownURLsCounter()
throws org.ow2.petals.probes.exceptions.ProbeNotInitializedException
getUnknownURLsCounter in interface MonitoringMBeanorg.ow2.petals.probes.exceptions.ProbeNotInitializedException
public long getInformationURLsCounter()
throws org.ow2.petals.probes.exceptions.ProbeNotInitializedException
getInformationURLsCounter in interface MonitoringMBeanorg.ow2.petals.probes.exceptions.ProbeNotInitializedException
public Map<String[],Integer> getWsClientPoolClientsInUseMax()
throws org.ow2.petals.probes.exceptions.ProbeNotInitializedException
getWsClientPoolClientsInUseMax in interface MonitoringMBeanorg.ow2.petals.probes.exceptions.ProbeNotInitializedException
public Map<String[],Integer> getWsClientPoolClientsInUseCurrent()
throws org.ow2.petals.probes.exceptions.ProbeNotStartedException
getWsClientPoolClientsInUseCurrent in interface MonitoringMBeanorg.ow2.petals.probes.exceptions.ProbeNotStartedException
public Map<String[],Long> getWsClientPoolExhaustions()
throws org.ow2.petals.probes.exceptions.ProbeNotInitializedException
getWsClientPoolExhaustions in interface MonitoringMBeanorg.ow2.petals.probes.exceptions.ProbeNotInitializedException
public Map<String[],Long> getHttpRequestsCount()
throws org.ow2.petals.probes.exceptions.ProbeNotInitializedException
MonitoringMBeanString array where:
ExecutionStatus
).
getHttpRequestsCount in interface MonitoringMBeanorg.ow2.petals.probes.exceptions.ProbeNotInitializedException
public Map<String,Long> getHttpRequestsCount(String webService)
throws org.ow2.petals.probes.exceptions.ProbeNotInitializedException
MonitoringMBeanwebService whatever the web-service client.
getHttpRequestsCount in interface MonitoringMBeanwebService - The web-service for which the number of requests for each
execution status must be returned. Not null.
webService. All execution status are
contained in the map, even if set to 0. If
webService is null, an empty map is returned.
org.ow2.petals.probes.exceptions.ProbeNotInitializedException
public Map<String,Long> getHttpRequestsCount(String webService,
String webServiceClient)
throws org.ow2.petals.probes.exceptions.ProbeNotInitializedException
MonitoringMBeanwebService and specified web-service-client
webServiceClient.
getHttpRequestsCount in interface MonitoringMBeanwebService - The web-service for which the number of requests for each
execution status must be returned. Not null.webServiceClient - The IP address of the web-service client for which the number
of requests for each execution status must be returned. Not
null.
webService and web-service client
webServiceClient. All execution status are contained
in the map, even if set to 0. If webService or
webServiceClient is null, an empty map is returned.
org.ow2.petals.probes.exceptions.ProbeNotInitializedException
public Map<String[],Long[]> getHttpRequestsResponseTimeAbs()
throws org.ow2.petals.probes.exceptions.ProbeNotInitializedException
MonitoringMBeanString array where:
ExecutionStatus
) of the requests.
getHttpRequestsResponseTimeAbs in interface MonitoringMBeanorg.ow2.petals.probes.exceptions.ProbeNotInitializedException
public Map<String,Long> getHttpRequestsResponseTimeAbs(String webService)
throws org.ow2.petals.probes.exceptions.ProbeNotInitializedException
MonitoringMBeanwebService whatever
the web-service client. Each value of the map entry is an array of
response times where:
getHttpRequestsResponseTimeAbs in interface MonitoringMBeanwebService - The web-service for which the absolute response time values
for each execution status must be returned. Not null.
webService. All execution
status are contained in the map, even if set to 0. If
webService is null, an empty map is returned.
org.ow2.petals.probes.exceptions.ProbeNotInitializedException
public Map<String[],Long[]> getHttpRequestsResponseTimeRel()
throws org.ow2.petals.probes.exceptions.ProbeNotStartedException
MonitoringMBean
getHttpRequestsResponseTimeRel in interface MonitoringMBeanorg.ow2.petals.probes.exceptions.ProbeNotStartedException
public Map<String,Long> getHttpRequestsResponseTimeRel(String webService)
throws org.ow2.petals.probes.exceptions.ProbeNotStartedException
MonitoringMBeanwebService whatever
the web-service client. Each value of the map entry is an array of
response times where:
getHttpRequestsResponseTimeRel in interface MonitoringMBeanwebService - The web-service for which the absolute response time values
for each execution status must be returned. Not null.
webService. All execution
status are contained in the map, even if set to 0. If
webService is null, an empty map is returned.
org.ow2.petals.probes.exceptions.ProbeNotStartedException
public Map<String,Long> getWsClientPool(String webService)
throws org.ow2.petals.probes.exceptions.ProbeNotStartedException,
org.ow2.petals.probes.exceptions.ProbeNotInitializedException
getWsClientPool in interface MonitoringMBeanorg.ow2.petals.probes.exceptions.ProbeNotStartedException
org.ow2.petals.probes.exceptions.ProbeNotInitializedException
public Map<String,Long> getWsRequestsCount(String webServiceURL)
throws org.ow2.petals.probes.exceptions.ProbeNotInitializedException
MonitoringMBeanwebServiceURL whatever the invoked
operation and message pattern.
getWsRequestsCount in interface MonitoringMBeanwebServiceURL - The external web-service for which the number of requests for
each execution status must be returned. Not null.
webServiceURL. All execution
status are contained in the map, even if set to 0. If
webServiceURL is null, an empty map is returned.
org.ow2.petals.probes.exceptions.ProbeNotInitializedException
public Map<String[],Long[]> getWsClientInvocationsResponseTimeAbs()
throws org.ow2.petals.probes.exceptions.ProbeNotInitializedException
MonitoringMBeanString array where:
ExecutionStatus
) of the requests.
getWsClientInvocationsResponseTimeAbs in interface MonitoringMBeanorg.ow2.petals.probes.exceptions.ProbeNotInitializedException
public Map<String[],Long[]> getWsClientInvocationsResponseTimeRel()
throws org.ow2.petals.probes.exceptions.ProbeNotStartedException
MonitoringMBean
getWsClientInvocationsResponseTimeRel in interface MonitoringMBeanorg.ow2.petals.probes.exceptions.ProbeNotStartedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||