org.ow2.petals.jbi.messaging.control
Class JMXExchangeCheckerClientImpl

java.lang.Object
  extended by org.ow2.petals.jbi.messaging.control.JMXExchangeCheckerClientImpl
All Implemented Interfaces:
ExchangeCheckerClient

public class JMXExchangeCheckerClientImpl
extends java.lang.Object
implements ExchangeCheckerClient

The JMX implementation of the echange checker client. TODO: The exchange checker must be implemented via the transporter.

Author:
chamerling - eBM WebSourcing

Field Summary
protected  JMXService jmxService
           
 
Constructor Summary
JMXExchangeCheckerClientImpl()
           
 
Method Summary
 boolean isExchangeWithConsumerOkayForComponent(ServiceEndpoint internalEndpoint, javax.jbi.messaging.MessageExchange exchange)
          Query a component to check if it is ready to accept the exchange as a consumer
 boolean isExchangeWithProviderOkayForComponent(ServiceEndpoint internalEndpoint, javax.jbi.messaging.MessageExchange exchange)
          Query a component to check if it is ready to accept the exchange as a provider
protected  void start()
           
protected  void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jmxService

protected JMXService jmxService
Constructor Detail

JMXExchangeCheckerClientImpl

public JMXExchangeCheckerClientImpl()
Method Detail

start

protected void start()

stop

protected void stop()

isExchangeWithConsumerOkayForComponent

public boolean isExchangeWithConsumerOkayForComponent(ServiceEndpoint internalEndpoint,
                                                      javax.jbi.messaging.MessageExchange exchange)
Query a component to check if it is ready to accept the exchange as a consumer

Specified by:
isExchangeWithConsumerOkayForComponent in interface ExchangeCheckerClient
Parameters:
internalEndpoint - the endpoint to be used by the consumer; must be non null
exchange - the proposed message exchange to be perfomed; must be non null
Returns:
true if the provider component can perform the given exchange with the described consumer

isExchangeWithProviderOkayForComponent

public boolean isExchangeWithProviderOkayForComponent(ServiceEndpoint internalEndpoint,
                                                      javax.jbi.messaging.MessageExchange exchange)
Query a component to check if it is ready to accept the exchange as a provider

Specified by:
isExchangeWithProviderOkayForComponent in interface ExchangeCheckerClient
Parameters:
internalEndpoint - the endpoint to be used by the provider; must be non null
exchange - the message exchange that is to be performed
Returns:
true if this consumer component can interact with the described provider to perform the given exchange


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.