|
||||||||||
| 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.management.BaseSystemService
org.apache.servicemix.jbi.nmr.DefaultBroker
public class DefaultBroker
The Broker handles Nomalised Message Routing within ServiceMix
| Field Summary |
|---|
| Fields inherited from class org.apache.servicemix.jbi.management.BaseSystemService |
|---|
container |
| 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 | |
|---|---|
DefaultBroker()
Constructor |
|
| Method Summary | |
|---|---|
protected EndpointFilter |
createEndpointFilter(ComponentContextImpl context,
MessageExchangeImpl exchange)
Factory method to create an endpoint filter for the given component context and message exchange |
JBIContainer |
getContainer()
|
String |
getContainerName()
Get the name of the Container |
FlowChooser |
getDefaultFlowChooser()
|
EndpointChooser |
getDefaultInterfaceChooser()
|
EndpointChooser |
getDefaultServiceChooser()
|
String |
getDescription()
Get the description |
String |
getFlowNames()
|
Flow[] |
getFlows()
|
protected EndpointChooser |
getInterfaceChooser(MessageExchangeImpl exchange)
Returns the endpoint chooser for endpoints found by service which will use the chooser on the exchange's activation spec if available otherwise will use the default |
ManagementContext |
getManagementContext()
Get the ManagementContext |
protected javax.jbi.servicedesc.ServiceEndpoint[] |
getMatchingEndpoints(javax.jbi.servicedesc.ServiceEndpoint[] endpoints,
MessageExchangeImpl exchange)
Filter the given endpoints by asking to the provider and consumer if they are both ok to process the exchange. |
MBeanOperationInfo[] |
getOperationInfos()
Get an array of MBeanOperationInfo |
Registry |
getRegistry()
Get the Registry |
protected EndpointChooser |
getServiceChooser(MessageExchangeImpl exchange)
Returns the endpoint chooser for endpoints found by service which will use the chooser on the exchange's activation spec if available otherwise will use the default |
protected Class<BrokerMBean> |
getServiceMBean()
|
String |
getSubscriptionFlowName()
|
SubscriptionManager |
getSubscriptionManager()
|
void |
init(JBIContainer container)
initialize the broker |
protected void |
resolveAddress(MessageExchangeImpl exchange)
|
void |
resume()
resume message exchange processing |
void |
sendExchangePacket(javax.jbi.messaging.MessageExchange me)
Route an ExchangePacket to a destination |
void |
setDefaultFlowChooser(FlowChooser defaultFlowChooser)
|
void |
setDefaultInterfaceChooser(EndpointChooser defaultInterfaceChooser)
Set the default EndpointChooser |
void |
setDefaultServiceChooser(EndpointChooser defaultServiceChooser)
Set default EndpointChooser |
void |
setFlowNames(String flowNames)
|
void |
setFlows(Flow[] flows)
Set the flow |
void |
setSubscriptionFlowName(String subscriptionFlowName)
Set the subscription flow name |
void |
setSubscriptionManager(SubscriptionManager subscriptionManager)
Sets the subscription manager |
void |
shutDown()
shutdown all Components |
void |
start()
start brokering |
void |
stop()
stop brokering |
void |
suspend()
suspend the flow to prevent any message exchanges |
| Methods inherited from class org.apache.servicemix.jbi.management.BaseSystemService |
|---|
getName, getType |
| Methods inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle |
|---|
firePropertyChanged, getAttributeInfos, getCurrentState, getObjectToManage, 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 |
| Constructor Detail |
|---|
public DefaultBroker()
| Method Detail |
|---|
public String getDescription()
getDescription in interface MBeanInfoProviderpublic SubscriptionManager getSubscriptionManager()
public void setSubscriptionManager(SubscriptionManager subscriptionManager)
public void init(JBIContainer container)
throws javax.jbi.JBIException
init in interface Brokerinit in class BaseSystemServicecontainer -
javax.jbi.JBIExceptionprotected Class<BrokerMBean> getServiceMBean()
getServiceMBean in class BaseSystemServicepublic String getContainerName()
public ManagementContext getManagementContext()
public Registry getRegistry()
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 BaseSystemServicejavax.jbi.JBIExceptionpublic String getFlowNames()
public void setFlowNames(String flowNames)
flowName - The flow to set.public String getSubscriptionFlowName()
public void setSubscriptionFlowName(String subscriptionFlowName)
subscriptionFlowName - public void setFlows(Flow[] flows)
flow - public Flow[] getFlows()
public void suspend()
suspend in interface Brokerpublic void resume()
resume in interface Broker
public void sendExchangePacket(javax.jbi.messaging.MessageExchange me)
throws javax.jbi.JBIException
sendExchangePacket in interface Brokerexchange -
javax.jbi.JBIException
protected void resolveAddress(MessageExchangeImpl exchange)
throws javax.jbi.JBIException
javax.jbi.JBIException
protected javax.jbi.servicedesc.ServiceEndpoint[] getMatchingEndpoints(javax.jbi.servicedesc.ServiceEndpoint[] endpoints,
MessageExchangeImpl exchange)
endpoints - an array of internal endpoints to checkexchange - the exchange that will be serviced
public EndpointChooser getDefaultInterfaceChooser()
public void setDefaultInterfaceChooser(EndpointChooser defaultInterfaceChooser)
defaultInterfaceChooser - public EndpointChooser getDefaultServiceChooser()
public void setDefaultServiceChooser(EndpointChooser defaultServiceChooser)
defaultServiceChooser - public FlowChooser getDefaultFlowChooser()
public void setDefaultFlowChooser(FlowChooser defaultFlowChooser)
defaultFlowChooser - the defaultFlowChooser to setprotected EndpointChooser getServiceChooser(MessageExchangeImpl exchange)
exchange -
protected EndpointChooser getInterfaceChooser(MessageExchangeImpl exchange)
exchange -
protected EndpointFilter createEndpointFilter(ComponentContextImpl context,
MessageExchangeImpl exchange)
context - exchange -
public MBeanOperationInfo[] getOperationInfos()
throws JMException
getOperationInfos in interface MBeanInfoProvidergetOperationInfos in class BaseLifeCycleJMExceptionpublic JBIContainer getContainer()
getContainer in interface BrokergetContainer in class BaseSystemService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||