|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.jbi.messaging.routing.monitoring.RouterMonitorServiceImpl
public class RouterMonitorServiceImpl
The NMR monitor service.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ow2.petals.jmx.api.IPetalsMonitoringService |
|---|
org.ow2.petals.jmx.api.IPetalsMonitoringService.Event, org.ow2.petals.jmx.api.IPetalsMonitoringService.EventType, org.ow2.petals.jmx.api.IPetalsMonitoringService.Exchange, org.ow2.petals.jmx.api.IPetalsMonitoringService.MEP, org.ow2.petals.jmx.api.IPetalsMonitoringService.NormalizedMessage, org.ow2.petals.jmx.api.IPetalsMonitoringService.NormalizedMessageType, org.ow2.petals.jmx.api.IPetalsMonitoringService.Role, org.ow2.petals.jmx.api.IPetalsMonitoringService.RouterMonitor, org.ow2.petals.jmx.api.IPetalsMonitoringService.Status |
| Constructor Summary | |
|---|---|
RouterMonitorServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
clearMonitorStorage()
Clear the monitor storage.The persisted data related to the monitored exchanges are deleted. |
void |
electEndpoints(java.util.Map<ServiceEndpoint,TransportSendContext> electedEndpoints,
ComponentContext sourceComponentContext,
org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
Elect a list of candidate endpoints to be destination of the exchange. |
void |
exchangeReceived(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
|
void |
exchangeSent(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
|
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 exchange property 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>> |
getMonitoredExchanges()
Get the list of Router Monitor filter. |
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. |
protected void |
start()
Start the Fractal component |
protected void |
stop()
Stop the Fractal component |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RouterMonitorServiceImpl()
| Method Detail |
|---|
public void clearMonitorStorage()
RouterMonitorMBean
clearMonitorStorage in interface RouterMonitorMBean
public void electEndpoints(java.util.Map<ServiceEndpoint,TransportSendContext> electedEndpoints,
ComponentContext sourceComponentContext,
org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
throws RoutingException
SenderModule
electEndpoints in interface SenderModuleexchangeDecorator - the exchange decorator to send
RoutingExceptionpublic void exchangeReceived(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
exchangeReceived in interface RouterMonitorServicepublic void exchangeSent(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
exchangeSent in interface RouterMonitorService
public java.util.Map<java.lang.String,java.lang.String> getExchange(java.lang.String exchangeId)
throws javax.jbi.messaging.MessagingException
RouterMonitorMBean
getExchange in interface RouterMonitorMBeanjavax.jbi.messaging.MessagingException - Failed to retrieve the exchange
public java.util.Map<java.lang.String,java.lang.Long> getExchangeHistory(java.lang.String exchangeId)
throws javax.jbi.messaging.MessagingException
RouterMonitorMBean
getExchangeHistory in interface RouterMonitorMBeanexchangeId - the send/received history
javax.jbi.messaging.MessagingException - Failed to retrieve the exchange history
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 javax.jbi.messaging.MessagingException
RouterMonitorMBean
getExchangeIds in interface RouterMonitorMBeaninterfaceName - 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
javax.jbi.messaging.MessagingException - Failed to retrieve the list of exchange Ids
public java.util.List<java.lang.String> getExchangeIds(java.lang.String propertyKey,
java.lang.String propertyValue)
throws javax.jbi.messaging.MessagingException
RouterMonitorMBean
getExchangeIds in interface RouterMonitorMBeanpropertyKey - The name of the propertypropertyValue - The value of the property as a String
javax.jbi.messaging.MessagingException - Failed to retrieve the list of exchange Ids
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 javax.jbi.messaging.MessagingException
RouterMonitorMBean
getExchanges in interface RouterMonitorMBeaninterfaceName - 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
javax.jbi.messaging.MessagingException - Failed to retrieve the list of exchange Idspublic java.util.List<java.util.Map<java.lang.String,java.lang.String>> getMonitoredExchanges()
RouterMonitorMBean
getMonitoredExchanges in interface RouterMonitorMBeanpublic long getMonitorStorageDuration()
RouterMonitorMBean
getMonitorStorageDuration in interface RouterMonitorMBean
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 javax.jbi.messaging.MessagingException
RouterMonitorMBean
monitorExchanges in interface RouterMonitorMBeaninterfaceName - 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.
javax.jbi.messaging.MessagingException - A Router Monitor filter already exists on these criteriapublic void setMonitorStorageDuration(long duration)
RouterMonitorMBean
setMonitorStorageDuration in interface RouterMonitorMBeanduration - The duration in millisecond
public void unmonitorExchanges(javax.xml.namespace.QName interfaceName,
javax.xml.namespace.QName serviceName,
java.lang.String endpointName,
javax.xml.namespace.QName operationName)
throws javax.jbi.messaging.MessagingException
RouterMonitorMBean
unmonitorExchanges in interface RouterMonitorMBeaninterfaceName - The interface 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
javax.jbi.messaging.MessagingException - No Router Monitor filter activated on the given criteriaprotected void start()
RoutingExceptionprotected void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||