|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.control.ControlBus
public class ControlBus
JMX-based Control Bus implementation. Exports all channel and endpoint beans from a given BeanFactory as MBeans.
Field Summary | |
---|---|
static String |
DEFAULT_DOMAIN
|
static String |
TARGET_BEAN_NAME
|
Constructor Summary | |
---|---|
ControlBus(MBeanServer server)
Create a ControlBus that will register channels and endpoints as MBeans with the given MBeanServer using
the default domain name. |
|
ControlBus(MBeanServer server,
String domain)
Create a ControlBus that will register channels and endpoints as MBeans with the given MBeanServer using
the specified domain name. |
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected ObjectName |
generateObjectName(String beanName,
Class<?> beanType)
|
SubscribableChannel |
getOperationChannel()
Returns the channel to which operation-invoking Messages may be sent. |
void |
setBeanFactory(BeanFactory beanFactory)
|
void |
setObjectNameStaticProperties(Map<String,String> objectNameStaticProperties)
Static properties that will be added to all object names. |
void |
setOperationChannel(SubscribableChannel operationChannel)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_DOMAIN
public static final String TARGET_BEAN_NAME
Constructor Detail |
---|
public ControlBus(MBeanServer server)
ControlBus
that will register channels and endpoints as MBeans with the given MBeanServer using
the default domain name.
DEFAULT_DOMAIN
public ControlBus(MBeanServer server, String domain)
ControlBus
that will register channels and endpoints as MBeans with the given MBeanServer using
the specified domain name.
Method Detail |
---|
public void setObjectNameStaticProperties(Map<String,String> objectNameStaticProperties)
objectNameStaticProperties
- the objectNameStaticProperties to setpublic void setOperationChannel(SubscribableChannel operationChannel)
public SubscribableChannel getOperationChannel()
TARGET_BEAN_NAME
and JmxHeaders.OPERATION_NAME
header values, and the target
bean name must match one that has been exported by this Control Bus. If the operation returns a result, the
MessageHeaders.REPLY_CHANNEL
header is also required.
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
protected ObjectName generateObjectName(String beanName, Class<?> beanType) throws MalformedObjectNameException
MalformedObjectNameException
|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |