Package org.snmp4j.smi

Examples of org.snmp4j.smi.OID.compareTo()


    }
    else {
      for (Iterator it = table.rowIdIterator(tableOID); it.hasNext(); i++) {
        Object key = it.next();
        OID index = table.mapToIndex(tableOID, key, i+1);
        if ((lowerBound == null) || (index.compareTo(lowerBound) >= 0)) {
          return new JMXTableRowIterator(it, key, i+1);
        }
      }
    }
    return null;
View Full Code Here


          OID maxIndex = new OID();
          Set<ObjectInstance> mBeans = mBeanInfo.getMBeanNames(server);
          for (ObjectInstance mBean : mBeans) {
            Object key = mBeanInfo.getKey(server, mBean.getObjectName());
            OID index = mBeanInfo.getIndexSupport().mapToIndex(key);
            if (index.compareTo(maxIndex) > 0) {
              maxIndex = index;
            }
          }
          return maxIndex;
        }
View Full Code Here

                payload.append("\n");

                /*
                 * This corresponds with the values from AlertPriority
                 */
                if (severityOid != null && oid.compareTo(severityOid) == 0) {
                    String sev = var.toString();
                    if (sev.toLowerCase().contains("high"))
                        severity = EventSeverity.ERROR;
                    else if (sev.toLowerCase().contains("medium"))
                        severity = EventSeverity.WARN;
View Full Code Here

                              region.getUpperBound(),
                              region.isUpperIncluded(),
                              (SnmpSubRequest)request);
    OID upperRequestBound = request.getScope().getUpperBound();
    if ((upperRequestBound != null) &&
        (upperRequestBound.compareTo(region.getUpperBound()) < 0)) {
      searchRange.setUpperBound(upperRequestBound);
      searchRange.setUpperIncluded(request.getScope().isUpperIncluded());
    }
    if (searchRange.isEmpty()) {
      return false;
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.