示例#1
0
  /** Checker for the "JvmMemPoolCollectThreshold" variable. */
  public void checkJvmMemPoolCollectThreshold(Long x) throws SnmpStatusException {
    // if threshold is -1, it means that low memory detection is not
    // supported.

    if (!pool.isCollectionUsageThresholdSupported())
      throw new SnmpStatusException(SnmpDefinitions.snmpRspInconsistentValue);
    final long val = x.longValue();
    if (val < 0) throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue);
  }
示例#2
0
 /** Getter for the "JvmMemPoolCollectThreshdCount" variable. */
 public Long getJvmMemPoolCollectThreshdCount() throws SnmpStatusException {
   if (!pool.isCollectionUsageThresholdSupported()) return JvmMemoryImpl.Long0;
   final long val = pool.getCollectionUsageThresholdCount();
   if (val > -1) return new Long(val);
   else return JvmMemoryImpl.Long0;
 }
示例#3
0
 /** Getter for the "JvmMemPoolThreshdSupport" variable. */
 public EnumJvmMemPoolCollectThreshdSupport getJvmMemPoolCollectThreshdSupport()
     throws SnmpStatusException {
   if (pool.isCollectionUsageThresholdSupported()) return EnumJvmMemPoolCollectThreshdSupported;
   else return EnumJvmMemPoolCollectThreshdUnsupported;
 }