|
||||||||||
| 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
public abstract class AbstractFlow
A simple Straight through flow
| Field Summary | |
|---|---|
protected Broker |
broker
|
protected org.apache.servicemix.executors.ExecutorFactory |
executorFactory
|
protected Log |
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 | |
|---|---|
AbstractFlow()
|
|
| Method Summary | |
|---|---|
protected void |
doRouting(MessageExchangeImpl me)
Distribute an ExchangePacket |
protected abstract void |
doSend(MessageExchangeImpl me)
Do the Flow specific routing |
MBeanAttributeInfo[] |
getAttributeInfos()
Get an array of MBeanAttributeInfo |
Broker |
getBroker()
Get the broker associated with this flow |
org.apache.servicemix.executors.ExecutorFactory |
getExecutorFactory()
|
String |
getName()
Get the name of the item |
String |
getType()
Get the type of the item |
void |
init(Broker br)
Initialize the Region |
protected boolean |
isClustered(javax.jbi.messaging.MessageExchange me)
|
protected boolean |
isPersistent(javax.jbi.messaging.MessageExchange me)
Check if the given packet should be persisted or not. |
protected boolean |
isSynchronous(javax.jbi.messaging.MessageExchange me)
|
protected boolean |
isTransacted(javax.jbi.messaging.MessageExchange me)
|
void |
resume()
resume message exchange processing |
void |
send(javax.jbi.messaging.MessageExchange me)
Distribute an ExchangePacket |
void |
setName(String name)
|
void |
shutDown()
shutDown the flow |
void |
start()
start the flow |
void |
stop()
stop the flow |
void |
suspend()
suspend the flow to prevent any message exchanges |
| 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, toString, wait, wait, wait |
| Methods inherited from interface org.apache.servicemix.jbi.nmr.flow.Flow |
|---|
canHandle, getDescription |
| Methods inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
getCurrentState |
| Methods inherited from interface org.apache.servicemix.jbi.management.MBeanInfoProvider |
|---|
getDescription |
| Field Detail |
|---|
protected final Log log
protected Broker broker
protected org.apache.servicemix.executors.ExecutorFactory executorFactory
| Constructor Detail |
|---|
public AbstractFlow()
| Method Detail |
|---|
public void init(Broker br)
throws javax.jbi.JBIException
init in interface Flowbr -
javax.jbi.JBIException
public void start()
throws javax.jbi.JBIException
start in interface javax.jbi.management.LifeCycleMBeanstart in class BaseLifeCyclejavax.jbi.JBIException
public void stop()
throws javax.jbi.JBIException
stop in interface javax.jbi.management.LifeCycleMBeanstop in class BaseLifeCyclejavax.jbi.JBIException
public void shutDown()
throws javax.jbi.JBIException
shutDown in interface javax.jbi.management.LifeCycleMBeanshutDown in class BaseLifeCyclejavax.jbi.JBIException
public void send(javax.jbi.messaging.MessageExchange me)
throws javax.jbi.JBIException
send in interface Flowpacket -
javax.jbi.JBIExceptionpublic void suspend()
suspend in interface Flowpublic void resume()
resume in interface Flow
protected abstract void doSend(MessageExchangeImpl me)
throws javax.jbi.JBIException
packet -
javax.jbi.JBIException
protected void doRouting(MessageExchangeImpl me)
throws javax.jbi.messaging.MessagingException
packet -
javax.jbi.messaging.MessagingException
public MBeanAttributeInfo[] getAttributeInfos()
throws JMException
getAttributeInfos in interface MBeanInfoProvidergetAttributeInfos in class BaseLifeCycleJMExceptionprotected boolean isPersistent(javax.jbi.messaging.MessageExchange me)
packet -
protected boolean isTransacted(javax.jbi.messaging.MessageExchange me)
protected boolean isSynchronous(javax.jbi.messaging.MessageExchange me)
protected boolean isClustered(javax.jbi.messaging.MessageExchange me)
public Broker getBroker()
Flow
getBroker in interface Flowpublic String getType()
getType in interface MBeanInfoProvidergetType in class BaseLifeCyclepublic String getName()
getName in interface MBeanInfoProvidergetName in interface FlowgetName in class BaseLifeCyclepublic void setName(String name)
public org.apache.servicemix.executors.ExecutorFactory getExecutorFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||