/**
* build jmx controller for client.
*/
private void buildClientJmxController(){
try{
final ClientJmxController clientJmxController = new ClientJmxController("de.b4sh.byter.client","Controller",this);
final JMXBeanWrapper wrapper = new JMXBeanWrapper(clientJmxController);
this.mbs.registerMBean(wrapper, clientJmxController.getObjectName());
} catch (IntrospectionException | NotCompliantMBeanException | MBeanRegistrationException | InstanceAlreadyExistsException e) {
log.log(Level.WARNING,"Error during initialisation or registration of ClientDiscMBean."
+ " see Stracktrace for more Information",e);
}
}
Client.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:Byter
作者:
评论列表
文章目录