|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.servicemix.jbi.management.BaseLifeCycle
org.servicemix.jbi.nmr.flow.AbstractFlow
org.servicemix.jbi.nmr.flow.seda.SedaFlow
A simple Straight through flow
| Nested Class Summary | |
protected static class |
SedaFlow.SedaFlowThreadFactory
|
| Field Summary | |
protected int |
capacity
|
protected Map |
queueMap
|
protected EDU.oswego.cs.dl.util.concurrent.SynchronizedBoolean |
started
|
protected EDU.oswego.cs.dl.util.concurrent.PooledExecutor |
threadPool
|
| Fields inherited from class org.servicemix.jbi.nmr.flow.AbstractFlow |
broker |
| Fields inherited from class org.servicemix.jbi.management.BaseLifeCycle |
currentState, listener |
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
RUNNING, SHUTDOWN, STOPPED, UNKNOWN |
| Constructor Summary | |
SedaFlow()
|
|
| Method Summary | |
MBeanAttributeInfo[] |
getAttributeInfos()
Get an array of MBeanAttributeInfo |
int |
getCapacity()
|
String |
getDescription()
The type of Flow |
int |
getQueueNumber()
Get Queue number |
void |
init(Broker broker)
Initialize the Region |
void |
onEvent(ComponentPacketEvent event)
Process state changes in Components |
void |
send(ExchangePacket packet)
Distribute an ExchangePacket |
void |
setCapacity(int capacity)
|
void |
shutDown()
shutDown the flow |
void |
start()
start the flow |
void |
stop()
stop the flow |
| Methods inherited from class org.servicemix.jbi.nmr.flow.AbstractFlow |
doRouting |
| Methods inherited from class org.servicemix.jbi.management.BaseLifeCycle |
firePropertyChanged, getCurrentState, getName, getObjectToManage, getOperationInfos, setCurrentState, setPropertyChangeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected EDU.oswego.cs.dl.util.concurrent.PooledExecutor threadPool
protected Map queueMap
protected int capacity
protected EDU.oswego.cs.dl.util.concurrent.SynchronizedBoolean started
| Constructor Detail |
public SedaFlow()
| Method Detail |
public String getDescription()
getDescription in interface Flow
public void init(Broker broker)
throws JBIException
init in interface Flowinit in class AbstractFlowbroker -
JBIException
public void start()
throws JBIException
start in interface Flowstart in class AbstractFlowJBIException
public void stop()
throws JBIException
stop in interface Flowstop in class AbstractFlowJBIException
public void shutDown()
throws JBIException
shutDown in interface FlowshutDown in class AbstractFlowJBIException
public void send(ExchangePacket packet)
throws JBIException
send in interface Flowpacket -
JBIExceptionpublic void onEvent(ComponentPacketEvent event)
onEvent in interface ComponentPacketEventListenerevent - public int getCapacity()
public void setCapacity(int capacity)
capacity - The capacity to set.public int getQueueNumber()
public MBeanAttributeInfo[] getAttributeInfos()
throws JMException
getAttributeInfos in interface MBeanInfoProvidergetAttributeInfos in class AbstractFlowJMException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||