|
||||||||||
| 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.seda.SedaFlow
public class SedaFlow
The SedaFlow introduces a simple event staging between the internal processes in the NMR Broker. A Seda flow (the default) is suited for general deployment, as the additional staging is well suited buffering exchanges between heavily routed to components (where state may be being used) for example.
| Field Summary | |
|---|---|
protected ComponentListener |
listener
|
protected Map<ComponentNameSpace,SedaQueue> |
queueMap
|
protected AtomicBoolean |
started
|
| 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 |
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
| Constructor Summary | |
|---|---|
SedaFlow()
|
|
| Method Summary | |
|---|---|
boolean |
canHandle(javax.jbi.messaging.MessageExchange me)
Check if the flow can support the requested QoS for this exchange |
protected SedaQueue |
createQueue(ComponentNameSpace cns)
|
protected void |
doRouting(MessageExchangeImpl me)
Distribute an ExchangePacket |
protected void |
doSend(MessageExchangeImpl me)
Distribute an ExchangePacket |
protected void |
enqueuePacket(MessageExchangeImpl me)
Put the packet in the queue for later processing. |
MBeanAttributeInfo[] |
getAttributeInfos()
Get an array of MBeanAttributeInfo |
String |
getDescription()
The type of Flow |
int |
getQueueNumber()
Get Queue number |
void |
init(Broker broker)
Initialize the Region |
void |
onComponentShutdown(ComponentNameSpace cns)
Process state changes in Components |
protected void |
registerQueue(ComponentNameSpace cns,
SedaQueue queue)
|
void |
release(SedaQueue queue)
release a queue |
protected void |
resumeTx(MessageExchangeImpl me)
|
void |
shutDown()
shutDown the flow |
void |
start()
start the flow |
void |
stop()
stop the flow |
protected void |
suspendTx(MessageExchangeImpl me)
|
protected void |
unregisterQueue(SedaQueue queue)
|
| Methods inherited from class org.apache.servicemix.jbi.nmr.flow.AbstractFlow |
|---|
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, toString, wait, wait, wait |
| Methods inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
getCurrentState |
| Field Detail |
|---|
protected Map<ComponentNameSpace,SedaQueue> queueMap
protected AtomicBoolean started
protected ComponentListener listener
| Constructor Detail |
|---|
public SedaFlow()
| Method Detail |
|---|
public String getDescription()
public void init(Broker broker)
throws javax.jbi.JBIException
init in interface Flowinit in class AbstractFlowbroker -
javax.jbi.JBIExceptionpublic boolean canHandle(javax.jbi.messaging.MessageExchange me)
me - the exchange to check
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
shutDown in interface javax.jbi.management.LifeCycleMBeanshutDown in class AbstractFlowjavax.jbi.JBIException
protected void doSend(MessageExchangeImpl me)
throws javax.jbi.JBIException
doSend in class AbstractFlowpacket -
javax.jbi.JBIException
protected void doRouting(MessageExchangeImpl me)
throws javax.jbi.messaging.MessagingException
AbstractFlow
doRouting in class AbstractFlowjavax.jbi.messaging.MessagingException
protected void enqueuePacket(MessageExchangeImpl me)
throws javax.jbi.JBIException
packet -
javax.jbi.JBIException
protected SedaQueue createQueue(ComponentNameSpace cns)
throws javax.jbi.JBIException
javax.jbi.JBIExceptionpublic void onComponentShutdown(ComponentNameSpace cns)
event - public void release(SedaQueue queue)
queue - public int getQueueNumber()
protected void registerQueue(ComponentNameSpace cns,
SedaQueue queue)
protected void unregisterQueue(SedaQueue queue)
public MBeanAttributeInfo[] getAttributeInfos()
throws JMException
getAttributeInfos in interface MBeanInfoProvidergetAttributeInfos in class AbstractFlowJMException
protected void suspendTx(MessageExchangeImpl me)
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingException
protected void resumeTx(MessageExchangeImpl me)
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||