Java 类com.sun.jmx.snmp.SnmpString 实例源码

项目:OpenJSharp    文件:JvmOSMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 4:
            return new SnmpInt(node.getJvmOSProcessorCount());

        case 3:
            return new SnmpString(node.getJvmOSVersion());

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

        case 1:
            return new SnmpString(node.getJvmOSName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:OpenJSharp    文件:JvmMemManagerEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:OpenJSharp    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            return new SnmpString(node.getJvmJITCompilerName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk8u-jdk    文件:JvmOSMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 4:
            return new SnmpInt(node.getJvmOSProcessorCount());

        case 3:
            return new SnmpString(node.getJvmOSVersion());

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

        case 1:
            return new SnmpString(node.getJvmOSName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk8u-jdk    文件:JvmMemManagerEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk8u-jdk    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            return new SnmpString(node.getJvmJITCompilerName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk8u_jdk    文件:JvmOSMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 4:
            return new SnmpInt(node.getJvmOSProcessorCount());

        case 3:
            return new SnmpString(node.getJvmOSVersion());

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

        case 1:
            return new SnmpString(node.getJvmOSName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk8u_jdk    文件:JvmMemManagerEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk8u_jdk    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            return new SnmpString(node.getJvmJITCompilerName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:lookaside_java-1.8.0-openjdk    文件:JvmOSMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 4:
            return new SnmpInt(node.getJvmOSProcessorCount());

        case 3:
            return new SnmpString(node.getJvmOSVersion());

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

        case 1:
            return new SnmpString(node.getJvmOSName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:lookaside_java-1.8.0-openjdk    文件:JvmMemManagerEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:lookaside_java-1.8.0-openjdk    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            return new SnmpString(node.getJvmJITCompilerName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:infobip-open-jdk-8    文件:JvmOSMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 4:
            return new SnmpInt(node.getJvmOSProcessorCount());

        case 3:
            return new SnmpString(node.getJvmOSVersion());

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

        case 1:
            return new SnmpString(node.getJvmOSName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:infobip-open-jdk-8    文件:JvmMemManagerEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:infobip-open-jdk-8    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            return new SnmpString(node.getJvmJITCompilerName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk8u-dev-jdk    文件:JvmOSMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 4:
            return new SnmpInt(node.getJvmOSProcessorCount());

        case 3:
            return new SnmpString(node.getJvmOSVersion());

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

        case 1:
            return new SnmpString(node.getJvmOSName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk8u-dev-jdk    文件:JvmMemManagerEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk8u-dev-jdk    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            return new SnmpString(node.getJvmJITCompilerName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk7-jdk    文件:JvmOSMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 4:
            return new SnmpInt(node.getJvmOSProcessorCount());

        case 3:
            return new SnmpString(node.getJvmOSVersion());

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

        case 1:
            return new SnmpString(node.getJvmOSName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk7-jdk    文件:JvmMemManagerEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk7-jdk    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            return new SnmpString(node.getJvmJITCompilerName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:openjdk-source-code-learn    文件:JvmOSMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 4:
            return new SnmpInt(node.getJvmOSProcessorCount());

        case 3:
            return new SnmpString(node.getJvmOSVersion());

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

        case 1:
            return new SnmpString(node.getJvmOSName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:openjdk-source-code-learn    文件:JvmMemManagerEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:openjdk-source-code-learn    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            return new SnmpString(node.getJvmJITCompilerName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:OLD-OpenJDK8    文件:JvmOSMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 4:
            return new SnmpInt(node.getJvmOSProcessorCount());

        case 3:
            return new SnmpString(node.getJvmOSVersion());

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

        case 1:
            return new SnmpString(node.getJvmOSName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:OLD-OpenJDK8    文件:JvmMemManagerEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:OLD-OpenJDK8    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            return new SnmpString(node.getJvmJITCompilerName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:openjdk-jdk7u-jdk    文件:JvmOSMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 4:
            return new SnmpInt(node.getJvmOSProcessorCount());

        case 3:
            return new SnmpString(node.getJvmOSVersion());

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

        case 1:
            return new SnmpString(node.getJvmOSName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:openjdk-jdk7u-jdk    文件:JvmMemManagerEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:openjdk-jdk7u-jdk    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
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:
            return new SnmpString(node.getJvmJITCompilerName());

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:OpenJSharp    文件:JvmRTBootClassPathEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 2:
            return new SnmpString(node.getJvmRTBootClassPathItem());

        case 1:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:OpenJSharp    文件:JvmMemMgrPoolRelEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 3:
            return new SnmpString(node.getJvmMemMgrRelPoolName());

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

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:OpenJSharp    文件:JvmRTClassPathEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 2:
            return new SnmpString(node.getJvmRTClassPathItem());

        case 1:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:OpenJSharp    文件:JvmRTInputArgsEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 2:
            return new SnmpString(node.getJvmRTInputArgsItem());

        case 1:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:OpenJSharp    文件:JvmRTLibraryPathEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 2:
            return new SnmpString(node.getJvmRTLibraryPathItem());

        case 1:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk8u-jdk    文件:JvmRTBootClassPathEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 2:
            return new SnmpString(node.getJvmRTBootClassPathItem());

        case 1:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk8u-jdk    文件:JvmMemMgrPoolRelEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 3:
            return new SnmpString(node.getJvmMemMgrRelPoolName());

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

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk8u-jdk    文件:JvmRTClassPathEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 2:
            return new SnmpString(node.getJvmRTClassPathItem());

        case 1:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk8u-jdk    文件:JvmRTInputArgsEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 2:
            return new SnmpString(node.getJvmRTInputArgsItem());

        case 1:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk8u-jdk    文件:JvmRTLibraryPathEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 2:
            return new SnmpString(node.getJvmRTLibraryPathItem());

        case 1:
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}