|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.jbi.management.BaseLifeCycle
org.apache.servicemix.jbi.nmr.flow.AbstractFlow
org.apache.servicemix.jbi.nmr.flow.jca.JCAFlow
public class JCAFlow
Use for message routing among a network of containers. All routing/registration happens automatically.
| Nested Class Summary | |
|---|---|
static class |
JCAFlow.RecoverableTransactionManagerWrapper
|
| Field Summary |
|---|
| Fields inherited from class org.apache.servicemix.jbi.nmr.flow.AbstractFlow |
|---|
broker, executorFactory, log |
| Fields inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle |
|---|
currentState, INITIALIZED, listener |
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
| Constructor Summary | |
|---|---|
JCAFlow()
|
|
JCAFlow(String jmsURL)
|
|
| Method Summary | |
|---|---|
boolean |
canHandle(javax.jbi.messaging.MessageExchange me)
Check if the flow can support the requested QoS for this exchange |
void |
doRouting(MessageExchangeImpl me)
Distribute an ExchangePacket |
protected void |
doSend(MessageExchangeImpl me)
Distribute an ExchangePacket |
String |
getBroadcastDestinationName()
Returns the Broadcast Destination Name for this flow |
org.apache.activemq.ActiveMQConnectionFactory |
getConnectionFactory()
Returns the ConnectionFactory for this flow |
ConnectionManager |
getConnectionManager()
|
String |
getDescription()
The type of Flow |
String |
getJmsURL()
Returns the JMS URL for this flow |
TransactionManager |
getTransactionManager()
|
void |
init(Broker broker)
Initialize the Region |
int |
numberInNetwork()
useful for testing |
protected void |
onAdvisoryMessage(Object obj)
|
void |
onComponentStarted(ComponentEvent event)
|
void |
onComponentStopped(ComponentEvent event)
|
void |
onInternalEndpointRegistered(EndpointEvent event,
boolean broadcast)
|
void |
onInternalEndpointUnregistered(EndpointEvent event,
boolean broadcast)
|
void |
onMessage(Message message)
MessageListener implementation |
void |
onRemoteEndpointRegistered(EndpointEvent event)
|
void |
onRemoteEndpointUnregistered(EndpointEvent event)
|
void |
setBroadcastDestinationName(String broadcastDestinationName)
Sets the Broadcast Destination Name for this flow |
void |
setConnectionFactory(org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
Sets the ConnectionFactory for this flow |
void |
setConnectionManager(ConnectionManager connectionManager)
|
void |
setJmsURL(String jmsURL)
Sets the JMS URL for this flow |
void |
shutDown()
shutDown the flow |
void |
start()
start the flow |
void |
stop()
stop the flow |
String |
toString()
|
| Methods inherited from class org.apache.servicemix.jbi.nmr.flow.AbstractFlow |
|---|
getAttributeInfos, getBroker, getExecutorFactory, getName, getType, isClustered, isPersistent, isSynchronous, isTransacted, resume, send, setName, suspend |
| Methods inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle |
|---|
firePropertyChanged, getCurrentState, getObjectToManage, getOperationInfos, getSubType, init, isInitialized, isShutDown, isStarted, isStopped, isUnknown, setCurrentState, setPropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
getCurrentState |
| Constructor Detail |
|---|
public JCAFlow()
public JCAFlow(String jmsURL)
| Method Detail |
|---|
public String getDescription()
getDescription in interface MBeanInfoProvidergetDescription in interface Flowpublic String getJmsURL()
public void setJmsURL(String jmsURL)
jmsURL - The jmsURL to set.public org.apache.activemq.ActiveMQConnectionFactory getConnectionFactory()
public void setConnectionFactory(org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
connectionFactory - The connectionFactory to set.public String getBroadcastDestinationName()
public void setBroadcastDestinationName(String broadcastDestinationName)
broadcastDestinationName - The broadcastDestinationName to set.public TransactionManager getTransactionManager()
public void init(Broker broker)
throws javax.jbi.JBIException
init in interface Flowinit in class AbstractFlowbroker -
javax.jbi.JBIException
public void start()
throws javax.jbi.JBIException
start in interface javax.jbi.management.LifeCycleMBeanstart in class AbstractFlowjavax.jbi.JBIException
public void stop()
throws javax.jbi.JBIException
stop in interface javax.jbi.management.LifeCycleMBeanstop in class AbstractFlowjavax.jbi.JBIException
public void shutDown()
throws javax.jbi.JBIException
AbstractFlow
shutDown in interface javax.jbi.management.LifeCycleMBeanshutDown in class AbstractFlowjavax.jbi.JBIException - if the item fails to shut down.public int numberInNetwork()
public boolean canHandle(javax.jbi.messaging.MessageExchange me)
canHandle in interface Flowme - the exchange to check
public void onInternalEndpointRegistered(EndpointEvent event,
boolean broadcast)
public void onInternalEndpointUnregistered(EndpointEvent event,
boolean broadcast)
public void onComponentStarted(ComponentEvent event)
public void onComponentStopped(ComponentEvent event)
public void onRemoteEndpointRegistered(EndpointEvent event)
public void onRemoteEndpointUnregistered(EndpointEvent event)
protected void doSend(MessageExchangeImpl me)
throws javax.jbi.messaging.MessagingException
doSend in class AbstractFlowme -
javax.jbi.messaging.MessagingException
public void doRouting(MessageExchangeImpl me)
throws javax.jbi.messaging.MessagingException
doRouting in class AbstractFlowme -
javax.jbi.messaging.MessagingExceptionpublic void onMessage(Message message)
onMessage in interface MessageListenermessage - protected void onAdvisoryMessage(Object obj)
public ConnectionManager getConnectionManager()
throws Exception
Exceptionpublic void setConnectionManager(ConnectionManager connectionManager)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||