当前位置: 首页>>代码示例>>Java>>正文


Java MBeanProxyFactoryBean类代码示例

本文整理汇总了Java中org.springframework.jmx.access.MBeanProxyFactoryBean的典型用法代码示例。如果您正苦于以下问题:Java MBeanProxyFactoryBean类的具体用法?Java MBeanProxyFactoryBean怎么用?Java MBeanProxyFactoryBean使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


MBeanProxyFactoryBean类属于org.springframework.jmx.access包,在下文中一共展示了MBeanProxyFactoryBean类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildProxy

import org.springframework.jmx.access.MBeanProxyFactoryBean; //导入依赖的package包/类
private ServiceDaemon buildProxy(ObjectName mBeanName) {
	MBeanProxyFactoryBean mBeanProxyFactoryBean = new MBeanProxyFactoryBean();

	try {
		mBeanProxyFactoryBean.setObjectName(mBeanName.getCanonicalName());
	} catch (MalformedObjectNameException e) {
		throw new JmxObjectNameException("Object name '"
				+ mBeanName.getCanonicalName() + "' was malformed!", e);
	}

	mBeanProxyFactoryBean.setProxyInterface(ServiceDaemon.class);

	mBeanProxyFactoryBean.afterPropertiesSet();
	return (ServiceDaemon) mBeanProxyFactoryBean.getObject();
}
 
开发者ID:vishwaabhinav,项目名称:OpenNMS,代码行数:16,代码来源:JmxDaemonStatusDao.java

示例2: productQueueView

import org.springframework.jmx.access.MBeanProxyFactoryBean; //导入依赖的package包/类
@Bean
public QueueViewMBean productQueueView() {
	MBeanProxyFactoryBean bean = new MBeanProxyFactoryBean();
	try {
		bean.setProxyInterface(org.apache.activemq.broker.jmx.QueueViewMBean.class);
		bean.setObjectName("org.apache.activemq:BrokerName=embedded,Type=Queue,Destination=sbia.queue.product");
		bean.afterPropertiesSet();
	} catch (MalformedObjectNameException e) {
		log.error("ActiveMQ의 ObjectName이 잘못되었습니다.", e);
		throw new RuntimeException(e);
	}
	return (QueueViewMBean) bean.getObject();
}
 
开发者ID:debop,项目名称:spring-batch-experiments,代码行数:14,代码来源:TransactionBehaviorConfiguration.java

示例3: shippedOrderQueueView

import org.springframework.jmx.access.MBeanProxyFactoryBean; //导入依赖的package包/类
@Bean
public QueueViewMBean shippedOrderQueueView() {
	MBeanProxyFactoryBean bean = new MBeanProxyFactoryBean();
	try {
		bean.setProxyInterface(org.apache.activemq.broker.jmx.QueueViewMBean.class);
		bean.setObjectName(new ObjectName("org.apache.activemq:BrokerName=embedded,Type=Queue,Destination=spring.batch.queue.shipped.order"));
		bean.afterPropertiesSet();
	} catch (MalformedObjectNameException e) {
		log.error("에러", e);
	}
	bean.prepare();
	return (QueueViewMBean) bean.getObject();
}
 
开发者ID:debop,项目名称:spring-batch-experiments,代码行数:14,代码来源:IdempotencyConfiguration.java

示例4: orderQueueView

import org.springframework.jmx.access.MBeanProxyFactoryBean; //导入依赖的package包/类
@Bean
public QueueViewMBean orderQueueView() {
	MBeanProxyFactoryBean bean = new MBeanProxyFactoryBean();
	try {
		bean.setProxyInterface(org.apache.activemq.broker.jmx.QueueViewMBean.class);
		bean.setObjectName(new ObjectName("org.apache.activemq:BrokerName=embedded,Type=Queue,Destination=spring.batch.queue.order"));
		bean.afterPropertiesSet();
	} catch (MalformedObjectNameException e) {
		log.error("에러", e);
	}
	bean.prepare();
	return (QueueViewMBean) bean.getObject();
}
 
开发者ID:debop,项目名称:spring-batch-experiments,代码行数:14,代码来源:DetectDuplicateConfiguration.java


注:本文中的org.springframework.jmx.access.MBeanProxyFactoryBean类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。