Package org.snmp4j.agent

Examples of org.snmp4j.agent.SerializableManagedObject


      for (int j = 0; j < moGroup.getSize(); j++) {
        MOInfo moid = input.readManagedObject();
        if (logger.isDebugEnabled()) {
          logger.debug("Looking up object " + moid.getOID());
        }
        SerializableManagedObject mo =
            (SerializableManagedObject) mos.get(moid.getOID());
        if (mo != null) {
          if (logger.isDebugEnabled()) {
            logger.debug("Loading data for object " + moid.getOID());
          }
          mo.load(input);
        }
        input.skipManagedObject(moid);
      }
    }
  }
View Full Code Here


                     c.getContext() + "'");
      }
    }
    output.writeSequence(new Sequence(mos.size()));
    for (Iterator it = mos.values().iterator(); it.hasNext(); ) {
      SerializableManagedObject mo = (SerializableManagedObject) it.next();
      MOInfo moInfo = new MOInfo(mo.getID());
      output.writeManagedObjectBegin(moInfo);
      mo.save(output);
      output.writeManagedObjectEnd(moInfo);
    }
  }
View Full Code Here

TOP

Related Classes of org.snmp4j.agent.SerializableManagedObject

Copyright © 2018 www.massapicom. 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.