javax.management.openmbean.OpenMBeanParameterInfoSupport Java Examples

The following examples show how to use javax.management.openmbean.OpenMBeanParameterInfoSupport. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StandardMBean.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
private static MBeanParameterInfo
        customize(MBeanParameterInfo pi,
                  String name,
                  String description) {
    if (equal(name, pi.getName()) &&
            equal(description, pi.getDescription()))
        return pi;
    else if (pi instanceof OpenMBeanParameterInfo) {
        OpenMBeanParameterInfo opi = (OpenMBeanParameterInfo) pi;
        return new OpenMBeanParameterInfoSupport(name,
                                                 description,
                                                 opi.getOpenType(),
                                                 pi.getDescriptor());
    } else {
        return new MBeanParameterInfo(name,
                                      pi.getType(),
                                      description,
                                      pi.getDescriptor());
    }
}
 
Example #2
Source File: StandardMBean.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
private static MBeanParameterInfo
        customize(MBeanParameterInfo pi,
                  String name,
                  String description) {
    if (equal(name, pi.getName()) &&
            equal(description, pi.getDescription()))
        return pi;
    else if (pi instanceof OpenMBeanParameterInfo) {
        OpenMBeanParameterInfo opi = (OpenMBeanParameterInfo) pi;
        return new OpenMBeanParameterInfoSupport(name,
                                                 description,
                                                 opi.getOpenType(),
                                                 pi.getDescriptor());
    } else {
        return new MBeanParameterInfo(name,
                                      pi.getType(),
                                      description,
                                      pi.getDescriptor());
    }
}
 
Example #3
Source File: StandardMBean.java    From Java8CN with Apache License 2.0 6 votes vote down vote up
private static MBeanParameterInfo
        customize(MBeanParameterInfo pi,
                  String name,
                  String description) {
    if (equal(name, pi.getName()) &&
            equal(description, pi.getDescription()))
        return pi;
    else if (pi instanceof OpenMBeanParameterInfo) {
        OpenMBeanParameterInfo opi = (OpenMBeanParameterInfo) pi;
        return new OpenMBeanParameterInfoSupport(name,
                                                 description,
                                                 opi.getOpenType(),
                                                 pi.getDescriptor());
    } else {
        return new MBeanParameterInfo(name,
                                      pi.getType(),
                                      description,
                                      pi.getDescriptor());
    }
}
 
Example #4
Source File: StandardMBean.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
private static MBeanParameterInfo
        customize(MBeanParameterInfo pi,
                  String name,
                  String description) {
    if (equal(name, pi.getName()) &&
            equal(description, pi.getDescription()))
        return pi;
    else if (pi instanceof OpenMBeanParameterInfo) {
        OpenMBeanParameterInfo opi = (OpenMBeanParameterInfo) pi;
        return new OpenMBeanParameterInfoSupport(name,
                                                 description,
                                                 opi.getOpenType(),
                                                 pi.getDescriptor());
    } else {
        return new MBeanParameterInfo(name,
                                      pi.getType(),
                                      description,
                                      pi.getDescriptor());
    }
}
 
Example #5
Source File: StandardMBean.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
private static MBeanParameterInfo
        customize(MBeanParameterInfo pi,
                  String name,
                  String description) {
    if (equal(name, pi.getName()) &&
            equal(description, pi.getDescription()))
        return pi;
    else if (pi instanceof OpenMBeanParameterInfo) {
        OpenMBeanParameterInfo opi = (OpenMBeanParameterInfo) pi;
        return new OpenMBeanParameterInfoSupport(name,
                                                 description,
                                                 opi.getOpenType(),
                                                 pi.getDescriptor());
    } else {
        return new MBeanParameterInfo(name,
                                      pi.getType(),
                                      description,
                                      pi.getDescriptor());
    }
}
 
Example #6
Source File: StandardMBean.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
private static MBeanParameterInfo
        customize(MBeanParameterInfo pi,
                  String name,
                  String description) {
    if (equal(name, pi.getName()) &&
            equal(description, pi.getDescription()))
        return pi;
    else if (pi instanceof OpenMBeanParameterInfo) {
        OpenMBeanParameterInfo opi = (OpenMBeanParameterInfo) pi;
        return new OpenMBeanParameterInfoSupport(name,
                                                 description,
                                                 opi.getOpenType(),
                                                 pi.getDescriptor());
    } else {
        return new MBeanParameterInfo(name,
                                      pi.getType(),
                                      description,
                                      pi.getDescriptor());
    }
}
 
Example #7
Source File: StandardMBean.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
private static MBeanParameterInfo
        customize(MBeanParameterInfo pi,
                  String name,
                  String description) {
    if (equal(name, pi.getName()) &&
            equal(description, pi.getDescription()))
        return pi;
    else if (pi instanceof OpenMBeanParameterInfo) {
        OpenMBeanParameterInfo opi = (OpenMBeanParameterInfo) pi;
        return new OpenMBeanParameterInfoSupport(name,
                                                 description,
                                                 opi.getOpenType(),
                                                 pi.getDescriptor());
    } else {
        return new MBeanParameterInfo(name,
                                      pi.getType(),
                                      description,
                                      pi.getDescriptor());
    }
}
 
Example #8
Source File: StandardMBean.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
private static MBeanParameterInfo
        customize(MBeanParameterInfo pi,
                  String name,
                  String description) {
    if (equal(name, pi.getName()) &&
            equal(description, pi.getDescription()))
        return pi;
    else if (pi instanceof OpenMBeanParameterInfo) {
        OpenMBeanParameterInfo opi = (OpenMBeanParameterInfo) pi;
        return new OpenMBeanParameterInfoSupport(name,
                                                 description,
                                                 opi.getOpenType(),
                                                 pi.getDescriptor());
    } else {
        return new MBeanParameterInfo(name,
                                      pi.getType(),
                                      description,
                                      pi.getDescriptor());
    }
}
 
Example #9
Source File: StandardMBean.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
private static MBeanParameterInfo
        customize(MBeanParameterInfo pi,
                  String name,
                  String description) {
    if (equal(name, pi.getName()) &&
            equal(description, pi.getDescription()))
        return pi;
    else if (pi instanceof OpenMBeanParameterInfo) {
        OpenMBeanParameterInfo opi = (OpenMBeanParameterInfo) pi;
        return new OpenMBeanParameterInfoSupport(name,
                                                 description,
                                                 opi.getOpenType(),
                                                 pi.getDescriptor());
    } else {
        return new MBeanParameterInfo(name,
                                      pi.getType(),
                                      description,
                                      pi.getDescriptor());
    }
}
 
Example #10
Source File: StandardMBean.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
private static MBeanParameterInfo
        customize(MBeanParameterInfo pi,
                  String name,
                  String description) {
    if (equal(name, pi.getName()) &&
            equal(description, pi.getDescription()))
        return pi;
    else if (pi instanceof OpenMBeanParameterInfo) {
        OpenMBeanParameterInfo opi = (OpenMBeanParameterInfo) pi;
        return new OpenMBeanParameterInfoSupport(name,
                                                 description,
                                                 opi.getOpenType(),
                                                 pi.getDescriptor());
    } else {
        return new MBeanParameterInfo(name,
                                      pi.getType(),
                                      description,
                                      pi.getDescriptor());
    }
}
 
Example #11
Source File: StandardMBean.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
private static MBeanParameterInfo
        customize(MBeanParameterInfo pi,
                  String name,
                  String description) {
    if (equal(name, pi.getName()) &&
            equal(description, pi.getDescription()))
        return pi;
    else if (pi instanceof OpenMBeanParameterInfo) {
        OpenMBeanParameterInfo opi = (OpenMBeanParameterInfo) pi;
        return new OpenMBeanParameterInfoSupport(name,
                                                 description,
                                                 opi.getOpenType(),
                                                 pi.getDescriptor());
    } else {
        return new MBeanParameterInfo(name,
                                      pi.getType(),
                                      description,
                                      pi.getDescriptor());
    }
}
 
Example #12
Source File: StandardMBean.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
private static MBeanParameterInfo
        customize(MBeanParameterInfo pi,
                  String name,
                  String description) {
    if (equal(name, pi.getName()) &&
            equal(description, pi.getDescription()))
        return pi;
    else if (pi instanceof OpenMBeanParameterInfo) {
        OpenMBeanParameterInfo opi = (OpenMBeanParameterInfo) pi;
        return new OpenMBeanParameterInfoSupport(name,
                                                 description,
                                                 opi.getOpenType(),
                                                 pi.getDescriptor());
    } else {
        return new MBeanParameterInfo(name,
                                      pi.getType(),
                                      description,
                                      pi.getDescriptor());
    }
}
 
Example #13
Source File: StandardMBean.java    From jdk8u-dev-jdk with GNU General Public License v2.0 6 votes vote down vote up
private static MBeanParameterInfo
        customize(MBeanParameterInfo pi,
                  String name,
                  String description) {
    if (equal(name, pi.getName()) &&
            equal(description, pi.getDescription()))
        return pi;
    else if (pi instanceof OpenMBeanParameterInfo) {
        OpenMBeanParameterInfo opi = (OpenMBeanParameterInfo) pi;
        return new OpenMBeanParameterInfoSupport(name,
                                                 description,
                                                 opi.getOpenType(),
                                                 pi.getDescriptor());
    } else {
        return new MBeanParameterInfo(name,
                                      pi.getType(),
                                      description,
                                      pi.getDescriptor());
    }
}
 
Example #14
Source File: StandardMBean.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
private static MBeanParameterInfo
        customize(MBeanParameterInfo pi,
                  String name,
                  String description) {
    if (equal(name, pi.getName()) &&
            equal(description, pi.getDescription()))
        return pi;
    else if (pi instanceof OpenMBeanParameterInfo) {
        OpenMBeanParameterInfo opi = (OpenMBeanParameterInfo) pi;
        return new OpenMBeanParameterInfoSupport(name,
                                                 description,
                                                 opi.getOpenType(),
                                                 pi.getDescriptor());
    } else {
        return new MBeanParameterInfo(name,
                                      pi.getType(),
                                      description,
                                      pi.getDescriptor());
    }
}
 
Example #15
Source File: StandardMBean.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
private static MBeanParameterInfo
        customize(MBeanParameterInfo pi,
                  String name,
                  String description) {
    if (equal(name, pi.getName()) &&
            equal(description, pi.getDescription()))
        return pi;
    else if (pi instanceof OpenMBeanParameterInfo) {
        OpenMBeanParameterInfo opi = (OpenMBeanParameterInfo) pi;
        return new OpenMBeanParameterInfoSupport(name,
                                                 description,
                                                 opi.getOpenType(),
                                                 pi.getDescriptor());
    } else {
        return new MBeanParameterInfo(name,
                                      pi.getType(),
                                      description,
                                      pi.getDescriptor());
    }
}
 
Example #16
Source File: StandardMBean.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
private static MBeanParameterInfo
        customize(MBeanParameterInfo pi,
                  String name,
                  String description) {
    if (equal(name, pi.getName()) &&
            equal(description, pi.getDescription()))
        return pi;
    else if (pi instanceof OpenMBeanParameterInfo) {
        OpenMBeanParameterInfo opi = (OpenMBeanParameterInfo) pi;
        return new OpenMBeanParameterInfoSupport(name,
                                                 description,
                                                 opi.getOpenType(),
                                                 pi.getDescriptor());
    } else {
        return new MBeanParameterInfo(name,
                                      pi.getType(),
                                      description,
                                      pi.getDescriptor());
    }
}
 
Example #17
Source File: StandardMBean.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
private static OpenMBeanParameterInfo[]
        paramsToOpenParams(MBeanParameterInfo[] params) {
    if (params instanceof OpenMBeanParameterInfo[])
        return (OpenMBeanParameterInfo[]) params;
    OpenMBeanParameterInfo[] oparams =
        new OpenMBeanParameterInfoSupport[params.length];
    System.arraycopy(params, 0, oparams, 0, params.length);
    return oparams;
}
 
Example #18
Source File: StandardMBean.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
private static OpenMBeanParameterInfo[]
        paramsToOpenParams(MBeanParameterInfo[] params) {
    if (params instanceof OpenMBeanParameterInfo[])
        return (OpenMBeanParameterInfo[]) params;
    OpenMBeanParameterInfo[] oparams =
        new OpenMBeanParameterInfoSupport[params.length];
    System.arraycopy(params, 0, oparams, 0, params.length);
    return oparams;
}
 
Example #19
Source File: StandardMBean.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private static OpenMBeanParameterInfo[]
        paramsToOpenParams(MBeanParameterInfo[] params) {
    if (params instanceof OpenMBeanParameterInfo[])
        return (OpenMBeanParameterInfo[]) params;
    OpenMBeanParameterInfo[] oparams =
        new OpenMBeanParameterInfoSupport[params.length];
    System.arraycopy(params, 0, oparams, 0, params.length);
    return oparams;
}
 
Example #20
Source File: StandardMBean.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
private static OpenMBeanParameterInfo[]
        paramsToOpenParams(MBeanParameterInfo[] params) {
    if (params instanceof OpenMBeanParameterInfo[])
        return (OpenMBeanParameterInfo[]) params;
    OpenMBeanParameterInfo[] oparams =
        new OpenMBeanParameterInfoSupport[params.length];
    System.arraycopy(params, 0, oparams, 0, params.length);
    return oparams;
}
 
Example #21
Source File: StandardMBean.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private static OpenMBeanParameterInfo[]
        paramsToOpenParams(MBeanParameterInfo[] params) {
    if (params instanceof OpenMBeanParameterInfo[])
        return (OpenMBeanParameterInfo[]) params;
    OpenMBeanParameterInfo[] oparams =
        new OpenMBeanParameterInfoSupport[params.length];
    System.arraycopy(params, 0, oparams, 0, params.length);
    return oparams;
}
 
Example #22
Source File: StandardMBean.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
private static OpenMBeanParameterInfo[]
        paramsToOpenParams(MBeanParameterInfo[] params) {
    if (params instanceof OpenMBeanParameterInfo[])
        return (OpenMBeanParameterInfo[]) params;
    OpenMBeanParameterInfo[] oparams =
        new OpenMBeanParameterInfoSupport[params.length];
    System.arraycopy(params, 0, oparams, 0, params.length);
    return oparams;
}
 
Example #23
Source File: StandardMBean.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private static OpenMBeanParameterInfo[]
        paramsToOpenParams(MBeanParameterInfo[] params) {
    if (params instanceof OpenMBeanParameterInfo[])
        return (OpenMBeanParameterInfo[]) params;
    OpenMBeanParameterInfo[] oparams =
        new OpenMBeanParameterInfoSupport[params.length];
    System.arraycopy(params, 0, oparams, 0, params.length);
    return oparams;
}
 
Example #24
Source File: StandardMBean.java    From Java8CN with Apache License 2.0 5 votes vote down vote up
private static OpenMBeanParameterInfo[]
        paramsToOpenParams(MBeanParameterInfo[] params) {
    if (params instanceof OpenMBeanParameterInfo[])
        return (OpenMBeanParameterInfo[]) params;
    OpenMBeanParameterInfo[] oparams =
        new OpenMBeanParameterInfoSupport[params.length];
    System.arraycopy(params, 0, oparams, 0, params.length);
    return oparams;
}
 
Example #25
Source File: StandardMBean.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
private static OpenMBeanParameterInfo[]
        paramsToOpenParams(MBeanParameterInfo[] params) {
    if (params instanceof OpenMBeanParameterInfo[])
        return (OpenMBeanParameterInfo[]) params;
    OpenMBeanParameterInfo[] oparams =
        new OpenMBeanParameterInfoSupport[params.length];
    System.arraycopy(params, 0, oparams, 0, params.length);
    return oparams;
}
 
Example #26
Source File: StandardMBean.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private static OpenMBeanParameterInfo[]
        paramsToOpenParams(MBeanParameterInfo[] params) {
    if (params instanceof OpenMBeanParameterInfo[])
        return (OpenMBeanParameterInfo[]) params;
    OpenMBeanParameterInfo[] oparams =
        new OpenMBeanParameterInfoSupport[params.length];
    System.arraycopy(params, 0, oparams, 0, params.length);
    return oparams;
}
 
Example #27
Source File: StandardMBean.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private static OpenMBeanParameterInfo[]
        paramsToOpenParams(MBeanParameterInfo[] params) {
    if (params instanceof OpenMBeanParameterInfo[])
        return (OpenMBeanParameterInfo[]) params;
    OpenMBeanParameterInfo[] oparams =
        new OpenMBeanParameterInfoSupport[params.length];
    System.arraycopy(params, 0, oparams, 0, params.length);
    return oparams;
}
 
Example #28
Source File: StandardMBean.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private static OpenMBeanParameterInfo[]
        paramsToOpenParams(MBeanParameterInfo[] params) {
    if (params instanceof OpenMBeanParameterInfo[])
        return (OpenMBeanParameterInfo[]) params;
    OpenMBeanParameterInfo[] oparams =
        new OpenMBeanParameterInfoSupport[params.length];
    System.arraycopy(params, 0, oparams, 0, params.length);
    return oparams;
}
 
Example #29
Source File: StandardMBean.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
private static OpenMBeanParameterInfo[]
        paramsToOpenParams(MBeanParameterInfo[] params) {
    if (params instanceof OpenMBeanParameterInfo[])
        return (OpenMBeanParameterInfo[]) params;
    OpenMBeanParameterInfo[] oparams =
        new OpenMBeanParameterInfoSupport[params.length];
    System.arraycopy(params, 0, oparams, 0, params.length);
    return oparams;
}
 
Example #30
Source File: StandardMBean.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private static OpenMBeanParameterInfo[]
        paramsToOpenParams(MBeanParameterInfo[] params) {
    if (params instanceof OpenMBeanParameterInfo[])
        return (OpenMBeanParameterInfo[]) params;
    OpenMBeanParameterInfo[] oparams =
        new OpenMBeanParameterInfoSupport[params.length];
    System.arraycopy(params, 0, oparams, 0, params.length);
    return oparams;
}