首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 标注的输出驱动的MBean

标注的输出驱动的MBean

  • 资源大小:6.59 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: annotation JMX MBean

资 源 简 介

Annotation-driven MBean exporting Introduction Juxtapose consists of annotations to configure the export of attributes and methods, and a Registrar class, responsible for registering your objects with an MBean server. Usage Annotate attributes for export: @Export(description = "myIntegerAttribute")public int getIntegerAttribute(){ // ...} Annotate methods for export: @Exportpublic void updateCounter(final int value){ // ...} Annotate your object to define a description and JMX ObjectName: @ExportBean(path = "my.bean.path:type=MyObject", description = "My Object")public final class MyObject{ // ...} All annotation arguments are optional, sensible defaults will be used if they are not present. To register/deregister your object with the local MBean server, use the Registrar
VIP VIP
0.284471s