Examples of SnmpInt


Examples of com.sun.jmx.snmp.SnmpInt

    public SnmpInt toSnmpValue()
  throws IllegalArgumentException {
  if (value == unspecified)
      throw new
        IllegalArgumentException("`unspecified' is not a valid SNMP value.");
  return new SnmpInt(value);
    }
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpInt

    public SnmpInt toSnmpValue()
        throws IllegalArgumentException {
        if (value == unspecified)
            throw new
        IllegalArgumentException("`unspecified' is not a valid SNMP value.");
        return new SnmpInt(value);
    }
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpInt

     */
    public SnmpValue get(long var, Object data)
        throws SnmpStatusException {
        switch((int)var) {
            case 3:
                return new SnmpInt(node.getJvmJITCompilerTimeMonitoring());

            case 2:
                return new SnmpCounter64(node.getJvmJITCompilerTimeMs());

            case 1:
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpInt

     */
    public SnmpValue get(long var, Object data)
        throws SnmpStatusException {
        switch((int)var) {
            case 3:
                return new SnmpInt(node.getJvmMemManagerState());

            case 2:
                return new SnmpString(node.getJvmMemManagerName());

            case 1:
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpInt

            case 12:
                return new SnmpCounter64(node.getJvmMemoryHeapCommitted());

            case 3:
                return new SnmpInt(node.getJvmMemoryGCCall());

            case 11:
                return new SnmpCounter64(node.getJvmMemoryHeapUsed());

            case 2:
                return new SnmpInt(node.getJvmMemoryGCVerboseLevel());

            case 101: {
                throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
                }
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpInt

                    try  {
                        node.setJvmMemoryGCCall( new EnumJvmMemoryGCCall (((SnmpInt)x).toInteger()));
                    } catch(IllegalArgumentException e)  {
                        throw new SnmpStatusException(SnmpStatusException.snmpRspWrongValue);
                    }
                    return new SnmpInt(node.getJvmMemoryGCCall());
                } else {
                    throw new SnmpStatusException(SnmpStatusException.snmpRspWrongType);
                }

            case 11:
                throw new SnmpStatusException(SnmpStatusException.snmpRspNotWritable);

            case 2:
                if (x instanceof SnmpInt) {
                    try  {
                        node.setJvmMemoryGCVerboseLevel( new EnumJvmMemoryGCVerboseLevel (((SnmpInt)x).toInteger()));
                    } catch(IllegalArgumentException e)  {
                        throw new SnmpStatusException(SnmpStatusException.snmpRspWrongValue);
                    }
                    return new SnmpInt(node.getJvmMemoryGCVerboseLevel());
                } else {
                    throw new SnmpStatusException(SnmpStatusException.snmpRspWrongType);
                }

            case 101: {
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpInt

     */
    public SnmpValue get(long var, Object data)
        throws SnmpStatusException {
        switch((int)var) {
            case 6:
                return new SnmpInt(node.getJvmThreadCpuTimeMonitoring());

            case 5:
                return new SnmpInt(node.getJvmThreadContentionMonitoring());

            case 4:
                return new SnmpCounter64(node.getJvmThreadTotalStartedCount());

            case 3:
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpInt

                    try  {
                        node.setJvmThreadCpuTimeMonitoring( new EnumJvmThreadCpuTimeMonitoring (((SnmpInt)x).toInteger()));
                    } catch(IllegalArgumentException e)  {
                        throw new SnmpStatusException(SnmpStatusException.snmpRspWrongValue);
                    }
                    return new SnmpInt(node.getJvmThreadCpuTimeMonitoring());
                } else {
                    throw new SnmpStatusException(SnmpStatusException.snmpRspWrongType);
                }

            case 5:
                if (x instanceof SnmpInt) {
                    try  {
                        node.setJvmThreadContentionMonitoring( new EnumJvmThreadContentionMonitoring (((SnmpInt)x).toInteger()));
                    } catch(IllegalArgumentException e)  {
                        throw new SnmpStatusException(SnmpStatusException.snmpRspWrongValue);
                    }
                    return new SnmpInt(node.getJvmThreadContentionMonitoring());
                } else {
                    throw new SnmpStatusException(SnmpStatusException.snmpRspWrongType);
                }

            case 4:
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpInt

     */
    public SnmpValue get(long var, Object data)
        throws SnmpStatusException {
        switch((int)var) {
            case 4:
                return new SnmpInt(node.getJvmClassesVerboseLevel());

            case 3:
                return new SnmpCounter64(node.getJvmClassesUnloadedCount());

            case 2:
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpInt

                    try  {
                        node.setJvmClassesVerboseLevel( new EnumJvmClassesVerboseLevel (((SnmpInt)x).toInteger()));
                    } catch(IllegalArgumentException e)  {
                        throw new SnmpStatusException(SnmpStatusException.snmpRspWrongValue);
                    }
                    return new SnmpInt(node.getJvmClassesVerboseLevel());
                } else {
                    throw new SnmpStatusException(SnmpStatusException.snmpRspWrongType);
                }

            case 3:
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.