Java 8 OpenMBeanOperationInfoSupport - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 OpenMBeanOperationInfoSupport class.

This code example shows how to use the following methods:
            new OpenMBeanConstructorInfoSupport("name", "descr", oparams);
        omboi1 =
            new OpenMBeanOperationInfoSupport("name", "descr", null,
                                              INTEGER, ACTION);
        omboi2 =
            new OpenMBeanOperationInfoSupport("name", "descr", oparams,
                                              INTEGER, ACTION);
        ombi1 =
            new OpenMBeanInfoSupport("class", "descr", null, null, null, null);
        ombi2 =
            new OpenMBeanInfoSupport(
                "class", "descr", 
                new OpenMBeanAttributeInfo[] {ombai1, ombai2, ombai3, ombai4},
                new OpenMBeanConstructorInfo[] {ombci1, ombci2},
                new OpenMBeanOperationInfo[] {omboi1, omboi2},
                new MBeanNotificationInfo[] {mbni1, mbni2});
 
        Descriptor attrd = new DescriptorSupport(new String[] {
            "name=name", "descriptorType=attribute", 
        }); 
4
CodeRank
This code example shows how to use the following methods:
  } 
 
  private OpenMBeanOperationInfo[] getOperations() {
    try { 
      return new OpenMBeanOperationInfo[]{
        new OpenMBeanOperationInfoSupport("reset", "Resets etm point.", null, SimpleType.VOID, MBeanOperationInfo.ACTION)
      }; 
    } catch (Exception e) {
      // this should be save 
      throw new EtmException(e.getMessage());
    } 
  } 
 
  private OpenMBeanAttributeInfo[] getAttributeInfos() {
    try { 
      return new OpenMBeanAttributeInfo[]{
        new OpenMBeanAttributeInfoSupport("measurements", "The number of measurements.", SimpleType.LONG, true, false, false),
        new OpenMBeanAttributeInfoSupport("average", "The average time in miliseconds.", SimpleType.DOUBLE, true, false, false),
        new OpenMBeanAttributeInfoSupport("min", "The minimum time in miliseconds..", SimpleType.DOUBLE, true, false, false),
        new OpenMBeanAttributeInfoSupport("max", "The maximum time in miliseconds.", SimpleType.DOUBLE, true, false, false),
4
CodeRank
See Code Examples for Java 8 OpenMBeanOperationInfoSupport Methods: