|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.jmx.AbstractServiceClient
org.ow2.petals.jmx.RouterMonitorServiceClient
public class RouterMonitorServiceClient
| Field Summary |
|---|
| Fields inherited from class org.ow2.petals.jmx.AbstractServiceClient |
|---|
JMX_FIELD_NAME, JMX_FIELD_TYPE, JMX_SERVICE_TYPE, mbeanName, mBeanServerConnection, petalsDomain |
| Constructor Summary | |
|---|---|
RouterMonitorServiceClient(java.lang.String petalsDomain,
javax.management.MBeanServerConnection mBeanServerConnection)
Creates a new instance of RouterMonitorServiceClient |
|
| Method Summary | |
|---|---|
void |
clearMonitorStorage()
Clear the monitor storage.The persisted data related to the monitored exchanges are deleted. |
java.util.Map<java.lang.String,java.lang.String> |
getExchange(java.lang.String exchangeId)
Get the exchange with the given exchange Id. |
java.util.Map<java.lang.String,java.lang.Long> |
getExchangeHistory(java.lang.String exchangeId)
Get the history of the given exchange. |
java.util.List<java.lang.String> |
getExchangeIds(javax.xml.namespace.QName interfaceName,
javax.xml.namespace.QName serviceName,
java.lang.String endpointName,
javax.xml.namespace.QName operationName,
long startDate,
long endDate)
Get the list of exchange Ids that has been sent or received at least once, matching the given criteria and the exchange persistence duration |
java.util.List<java.lang.String> |
getExchangeIds(java.lang.String propertyKey,
java.lang.String propertyValue)
Get the list of exchange Ids that has been sent or received at least once, matching the given criteria and the exchange persistence duration |
int |
getExchanges(javax.xml.namespace.QName interfaceName,
javax.xml.namespace.QName serviceName,
java.lang.String endpointName,
javax.xml.namespace.QName operationName,
long startDate,
long endDate)
Get the number of exchange that has been sent or received at least once and matching the duration |
java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
getMonitoredExchange()
Get the list of Router Monitor filter. |
java.lang.Long |
getMonitorStorageDuration()
Get the duration of the monitoring storage. |
void |
monitorExchanges(javax.xml.namespace.QName interfaceName,
javax.xml.namespace.QName serviceName,
java.lang.String endpointName,
javax.xml.namespace.QName operationName,
boolean storeExchanges)
Activate the monitoring of the exchanges matching the given criteria. |
void |
setMonitorStorageDuration(long duration)
Set the duration of the monitoring storage. |
void |
unmonitorExchanges(javax.xml.namespace.QName interfaceName,
javax.xml.namespace.QName serviceName,
java.lang.String endpointName,
javax.xml.namespace.QName operationName)
Deactivate the monitoring of the exchanges matching the given criteria. |
| Methods inherited from class org.ow2.petals.jmx.AbstractServiceClient |
|---|
getAttribute, getAttribute, performAction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RouterMonitorServiceClient(java.lang.String petalsDomain,
javax.management.MBeanServerConnection mBeanServerConnection)
throws RouterMonitorServiceDoesNotExistException,
RouterMonitorServiceErrorException
RouterMonitorServiceClient
petalsDomain - mBeanServerConnection -
RouterMonitorServiceDoesNotExistException
RouterMonitorServiceErrorException| Method Detail |
|---|
public void clearMonitorStorage()
throws RouterMonitorServiceErrorException
RouterMonitorServiceErrorException
public java.util.Map<java.lang.String,java.lang.String> getExchange(java.lang.String exchangeId)
throws RouterMonitorServiceErrorException
exchangeId -
RouterMonitorServiceErrorException
public java.util.Map<java.lang.String,java.lang.Long> getExchangeHistory(java.lang.String exchangeId)
throws RouterMonitorServiceErrorException
exchangeId - the send/received history
RouterMonitorServiceErrorException
public java.util.List<java.lang.String> getExchangeIds(javax.xml.namespace.QName interfaceName,
javax.xml.namespace.QName serviceName,
java.lang.String endpointName,
javax.xml.namespace.QName operationName,
long startDate,
long endDate)
throws RouterMonitorServiceErrorException
interfaceName - The interface name that exchange targets. Can be nullserviceName - The service name that exchange targets. Can be nullendpointName - The endpoint name that exchange targets. Can be nulloperationName - The operation name that exchange targets. Can be nullstartDate - The start dateendDate - The end date
RouterMonitorServiceErrorException
public java.util.List<java.lang.String> getExchangeIds(java.lang.String propertyKey,
java.lang.String propertyValue)
throws RouterMonitorServiceErrorException
propertyKey - The name of the propertypropertyValue - The value of the property as a String
RouterMonitorServiceErrorException
public int getExchanges(javax.xml.namespace.QName interfaceName,
javax.xml.namespace.QName serviceName,
java.lang.String endpointName,
javax.xml.namespace.QName operationName,
long startDate,
long endDate)
throws RouterMonitorServiceErrorException
interfaceName - The interface name that exchange targets. Can be nullserviceName - The service name that exchange targets. Can be nullendpointName - The endpoint name that exchange targets. Can be nulloperationName - The operation name that exchange targets. Can be nullstartDate - The start dateendDate - The end date
RouterMonitorServiceErrorException
public java.util.List<java.util.Map<java.lang.String,java.lang.String>> getMonitoredExchange()
throws RouterMonitorServiceErrorException
RouterMonitorServiceErrorException
public java.lang.Long getMonitorStorageDuration()
throws RouterMonitorServiceErrorException
RouterMonitorServiceErrorException
public void monitorExchanges(javax.xml.namespace.QName interfaceName,
javax.xml.namespace.QName serviceName,
java.lang.String endpointName,
javax.xml.namespace.QName operationName,
boolean storeExchanges)
throws RouterMonitorServiceErrorException
interfaceName - The interface name that exchange targets. Can be nullserviceName - The service name that exchange targets. Can be nullendpointName - The endpoint name that exchange targets. Can be nulloperationName - The operation name that exchange targets. Can be nullstoreExchanges - if true, the exchanges are stored in the Persistence
Service.
RouterMonitorServiceErrorException
public void setMonitorStorageDuration(long duration)
throws RouterMonitorServiceErrorException
duration - The duration in millisecond
RouterMonitorServiceErrorException
public void unmonitorExchanges(javax.xml.namespace.QName interfaceName,
javax.xml.namespace.QName serviceName,
java.lang.String endpointName,
javax.xml.namespace.QName operationName)
throws RouterMonitorServiceErrorException
interfaceName - The interface name that exchange targets. Can be nullServiceName - The service name that exchange targets. Can be nullendpointName - The endpoint name that exchange targets. Can be nulloperationName - The operation name that exchange targets. Can be null
RouterMonitorServiceErrorException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||