test_class.file: sjk-core/src/test/java/org/gridkit/jvmtool/MBeanHelperTest.java
test_class.identifier: MBeanHelperTest
test_case.body: @Test
      public void test_get_mem_heap() throws Exception {
          MBeanHelper helper = new MBeanHelper(ManagementFactory.getPlatformMBeanServer());
          System.out.println(helper.get(memoryMXBean(), Collections.singletonList("HeapMemoryUsage")));
      }
test_case.class_method_signature: MBeanHelperTest.test_get_mem_heap()
test_case.full_signature: @Test public void test_get_mem_heap()
test_case.identifier: test_get_mem_heap
test_case.invocations: getPlatformMBeanServer println get memoryMXBean singletonList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_get_mem_heap()
focal_class.declarator: FORMAT_TABLE_COLUMN_WIDTH_THRESHOLD = "table.column.maxWidth"
focal_class.modifier: public static
focal_class.original_string: public static String FORMAT_TABLE_COLUMN_WIDTH_THRESHOLD = "table.column.maxWidth";
focal_class.type: String
focal_class.var_name: FORMAT_TABLE_COLUMN_WIDTH_THRESHOLD
focal_class.declarator: FORMAT_COMPOSITE_FIELD_WIDTH_THRESHODL = "composite.field.maxWidth"
focal_class.modifier: public static
focal_class.original_string: public static String FORMAT_COMPOSITE_FIELD_WIDTH_THRESHODL = "composite.field.maxWidth";
focal_class.type: String
focal_class.var_name: FORMAT_COMPOSITE_FIELD_WIDTH_THRESHODL
focal_class.declarator: mserver
focal_class.modifier: private
focal_class.original_string: private MBeanServerConnection mserver;
focal_class.type: MBeanServerConnection
focal_class.var_name: mserver
focal_class.declarator: widthThresholdTable = 40
focal_class.modifier: private
focal_class.original_string: private int widthThresholdTable = 40;
focal_class.type: int
focal_class.var_name: widthThresholdTable
focal_class.declarator: widthThresholdComposite = 1000
focal_class.modifier: private
focal_class.original_string: private int widthThresholdComposite = 1000;
focal_class.type: int
focal_class.var_name: widthThresholdComposite
focal_class.declarator: ARRAY_MAP = new HashMap<String, Object>()
focal_class.modifier: static
focal_class.original_string: static Map<String, Object> ARRAY_MAP = new HashMap<String, Object>();
focal_class.type: Map<String, Object>
focal_class.var_name: ARRAY_MAP
focal_class.declarator: TYPE_MAP = new HashMap<String, String>()
focal_class.modifier: static
focal_class.original_string: static Map<String, String> TYPE_MAP = new HashMap<String, String>();
focal_class.type: Map<String, String>
focal_class.var_name: TYPE_MAP
focal_class.file: sjk-core/src/main/java/org/gridkit/jvmtool/MBeanHelper.java
focal_class.identifier: MBeanHelper
focal_class.class_method_signature: MBeanHelper.MBeanHelper(MBeanServerConnection connection)
focal_class.full_signature: public  MBeanHelper(MBeanServerConnection connection)
focal_class.identifier: MBeanHelper
focal_class.modifiers: public
focal_class.parameters: (MBeanServerConnection connection)
focal_class.signature:  MBeanHelper(MBeanServerConnection connection)
focal_class.class_method_signature: MBeanHelper.setFormatingOption(String name, Object value)
focal_class.full_signature: public void setFormatingOption(String name, Object value)
focal_class.identifier: setFormatingOption
focal_class.modifiers: public
focal_class.parameters: (String name, Object value)
focal_class.return: void
focal_class.signature: void setFormatingOption(String name, Object value)
focal_class.class_method_signature: MBeanHelper.getAttributeInfos(ObjectName bean, Collection<String> attrs, boolean read, boolean write)
focal_class.full_signature: private Map<String, MBeanAttributeInfo> getAttributeInfos(ObjectName bean, Collection<String> attrs, boolean read, boolean write)
focal_class.identifier: getAttributeInfos
focal_class.modifiers: private
focal_class.parameters: (ObjectName bean, Collection<String> attrs, boolean read, boolean write)
focal_class.return: Map<String, MBeanAttributeInfo>
focal_class.signature: Map<String, MBeanAttributeInfo> getAttributeInfos(ObjectName bean, Collection<String> attrs, boolean read, boolean write)
focal_class.class_method_signature: MBeanHelper.getAttributes(ObjectName bean, Collection<String> attrs)
focal_class.full_signature: private Map<String, Object> getAttributes(ObjectName bean, Collection<String> attrs)
focal_class.identifier: getAttributes
focal_class.modifiers: private
focal_class.parameters: (ObjectName bean, Collection<String> attrs)
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> getAttributes(ObjectName bean, Collection<String> attrs)
focal_class.class_method_signature: MBeanHelper.get(ObjectName bean, Collection<String> attrs)
focal_class.full_signature: public Map<String, String> get(ObjectName bean, Collection<String> attrs)
focal_class.identifier: get
focal_class.modifiers: public
focal_class.parameters: (ObjectName bean, Collection<String> attrs)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> get(ObjectName bean, Collection<String> attrs)
focal_class.class_method_signature: MBeanHelper.getAsTable(ObjectName bean, Collection<String> attrs, MTable table)
focal_class.full_signature: public void getAsTable(ObjectName bean, Collection<String> attrs, MTable table)
focal_class.identifier: getAsTable
focal_class.modifiers: public
focal_class.parameters: (ObjectName bean, Collection<String> attrs, MTable table)
focal_class.return: void
focal_class.signature: void getAsTable(ObjectName bean, Collection<String> attrs, MTable table)
focal_class.class_method_signature: MBeanHelper.set(ObjectName bean, String attr, String value)
focal_class.full_signature: public void set(ObjectName bean, String attr, String value)
focal_class.identifier: set
focal_class.modifiers: public
focal_class.parameters: (ObjectName bean, String attr, String value)
focal_class.return: void
focal_class.signature: void set(ObjectName bean, String attr, String value)
focal_class.class_method_signature: MBeanHelper.invoke(ObjectName bean, String operation, String... params)
focal_class.full_signature: public String invoke(ObjectName bean, String operation, String... params)
focal_class.identifier: invoke
focal_class.modifiers: public
focal_class.parameters: (ObjectName bean, String operation, String... params)
focal_class.return: String
focal_class.signature: String invoke(ObjectName bean, String operation, String... params)
focal_class.class_method_signature: MBeanHelper.format(Object v, String type)
focal_class.full_signature: private String format(Object v, String type)
focal_class.identifier: format
focal_class.modifiers: private
focal_class.parameters: (Object v, String type)
focal_class.return: String
focal_class.signature: String format(Object v, String type)
focal_class.class_method_signature: MBeanHelper.formatTable(List<String[]> content, int maxCell, boolean table)
focal_class.full_signature: private String formatTable(List<String[]> content, int maxCell, boolean table)
focal_class.identifier: formatTable
focal_class.modifiers: private
focal_class.parameters: (List<String[]> content, int maxCell, boolean table)
focal_class.return: String
focal_class.signature: String formatTable(List<String[]> content, int maxCell, boolean table)
focal_class.class_method_signature: MBeanHelper.formatLine(Object v, String type)
focal_class.full_signature: private String formatLine(Object v, String type)
focal_class.identifier: formatLine
focal_class.modifiers: private
focal_class.parameters: (Object v, String type)
focal_class.return: String
focal_class.signature: String formatLine(Object v, String type)
focal_class.class_method_signature: MBeanHelper.formatRow(CompositeData row, List<String> header)
focal_class.full_signature: private String[] formatRow(CompositeData row, List<String> header)
focal_class.identifier: formatRow
focal_class.modifiers: private
focal_class.parameters: (CompositeData row, List<String> header)
focal_class.return: String[]
focal_class.signature: String[] formatRow(CompositeData row, List<String> header)
focal_class.class_method_signature: MBeanHelper.convert(String value, String type)
focal_class.full_signature: private Object convert(String value, String type)
focal_class.identifier: convert
focal_class.modifiers: private
focal_class.parameters: (String value, String type)
focal_class.return: Object
focal_class.signature: Object convert(String value, String type)
focal_class.class_method_signature: MBeanHelper.describe(ObjectName bean)
focal_class.full_signature: public String describe(ObjectName bean)
focal_class.identifier: describe
focal_class.modifiers: public
focal_class.parameters: (ObjectName bean)
focal_class.return: String
focal_class.signature: String describe(ObjectName bean)
focal_class.class_method_signature: MBeanHelper.toPrintableType(String type)
focal_class.full_signature: static String toPrintableType(String type)
focal_class.identifier: toPrintableType
focal_class.modifiers: static
focal_class.parameters: (String type)
focal_class.return: String
focal_class.signature: String toPrintableType(String type)
focal_method.body: public Map<String, String> get(ObjectName bean, Collection<String> attrs) throws Exception {
          Map<String, MBeanAttributeInfo> attrInfos = getAttributeInfos(bean, attrs, true, false);
          Map<String, Object> attrRawValues = getAttributes(bean, attrs);
          Map<String, String> attrValues = new HashMap<String, String>(attrs.size());
          for(String attr: attrs) {
              String attrValue = format(attrRawValues.get(attr), attrInfos.get(attr).getType());
              attrValues.put(attr, attrValue);
          }
          return attrValues;
      }
focal_method.class_method_signature: MBeanHelper.get(ObjectName bean, Collection<String> attrs)
focal_method.full_signature: public Map<String, String> get(ObjectName bean, Collection<String> attrs)
focal_method.identifier: get
focal_method.invocations: getAttributeInfos getAttributes size format get getType get put
focal_method.modifiers: public
focal_method.parameters: (ObjectName bean, Collection<String> attrs)
focal_method.return: Map<String, String>
focal_method.signature: Map<String, String> get(ObjectName bean, Collection<String> attrs)