Examples of SnmpOid


Examples of com.sun.jmx.snmp.SnmpOid

       
        // Construct the sub-oid starting at pos.
        // This sub-oid correspond to the oid part just after the entry
  // variable oid.
        //
        final SnmpOid resOid = new SnmpEntryOid(oid,pos);
           
  return getNextOid(resOid,userData);
    }
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

  // Checks that the oid is valid
  // validateOid(oid,depth);

  // Gets the part of the OID that identifies the entry
  final SnmpOid entryoid = new SnmpEntryOid(oid, depth+2);

  // Finds the entry: false means that the entry does not exists
  final Object data = handlers.getUserData();
  final boolean hasEntry = contains(entryoid, data);
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

    //
    var = oid[pos+1];
      }
     
      // Now that we've got everything right we can begin.
      SnmpOid entryoid = null ;
     
      if (pos == (length - 1)) {
    // pos points to the last arc in the oid, and this arc is
    // guaranteed to be the xxxEntry id (we have handled all
    // the other possibilities before)
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

     *
     **/
    private final int findObject(SnmpOid oid) {
        int low= 0;
        int max= size - 1;
        SnmpOid pos;
        int comp;
        int curr= low + (max-low)/2;
        //System.out.println("Try to retrieve: " + oid.toString());
        while (low <= max) {

View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

  throws SnmpStatusException {

  final int failStatus = SnmpStatusException.snmpRspNotWritable;
        int low= 0;
        int max= size - 1;
        SnmpOid pos;
        int comp;
        int curr= low + (max-low)/2;
        while (low <= max) {
     
            // XX pos= (SnmpOid) oids.elementAt(curr);
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

      debug("getGetNextHandlers","Received MIB request : " + req);
  AcmChecker checker = new AcmChecker(req);
  int index=0;
        SnmpVarBind var = null;
        final int ver= req.getVersion();
  SnmpOid original = null;
  // For each varbind, finds the handling node.
  // This function has the side effect of transforming a GET-NEXT
  // request into a valid GET request, replacing the OIDs in the
  // original GET-NEXT request with the OID of the first leaf that
  // follows.
        for (Enumeration e= req.getElements(); e.hasMoreElements(); index++) {

            var = (SnmpVarBind) e.nextElement();
      SnmpOid result = null;
            try {
    // Find the node handling the OID that follows the varbind
    // OID. `result' contains this next leaf OID.
    //ACM loop.
    if (isDebugOn())
        debug("getGetNextHandlers"," Next Oid of :" + var.oid);
    result = new SnmpOid(root.findNextHandlingNode
             (var,var.oid.longValue(false),0,
              0,handlers, checker));
   
    if (isDebugOn())
        debug("getGetNextHandlers"," is :" + result);
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

        int max= size - 1;
        int curr= low + (max-low)/2;
        //System.out.println("Try to retrieve: " + oid.toString());
        while (low <= max) {

            final SnmpOid pos = oids[curr];
     
            //System.out.println("Compare with" + pos.toString());
            // never know ...we might find something ...
            //
            final int comp = oid.compareTo(pos);
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

        int curr= low + (max-low)/2;


        while (low <= max) {
     
            final SnmpOid pos = localoids[curr];
     
            // never know ...we might find something ...
            //
            final int comp= oid.compareTo(pos);
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

            elmt.oid + "value :" + elmt.value);
      trace("updateResult","Already present varBind : " +
            vb);
        }
       
        SnmpOid oid = vb.oid;
        SnmpMibAgent deeperAgent = server.getAgentMib(oid);

        if(isDebugOn())
      trace("updateResult","Deeper agent : " + deeperAgent);
        if(deeperAgent == agent) {
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

     * @exception SnmpStatusException if the entry cannot be registered with
     *            the given index.
     **/
    protected void addEntry(SnmpIndex index, Object entry)
  throws SnmpStatusException {
  SnmpOid oid = buildOidFromIndex(index);
  ObjectName name = null;
  if (isRegistrationRequired()) {
      name = buildNameFromIndex(index);
  }
  meta.addEntry(oid,name,entry);
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.