Package org.snmp4j.agent

Examples of org.snmp4j.agent.ManagedObject


    serializableMO.clear();
    for (int i=0; i<servers.length; i++) {
      for (Iterator it = servers[i].iterator(); it.hasNext(); ) {
        Entry entry = (Entry) it.next();
        MOScope scope = (MOScope) entry.getKey();
        ManagedObject value = (ManagedObject) entry.getValue();
        if ((value instanceof SerializableManagedObject) &&
            (!((SerializableManagedObject) value).isVolatile())) {
          OctetString context = null;
          if (scope instanceof MOContextScope) {
            context = ((MOContextScope) scope).getContext();
View Full Code Here


  public void registerMOs(MOServer server, OctetString context)
      throws DuplicateRegistrationException
  {
    for (Iterator it = objects.iterator(); it.hasNext(); ) {
      ManagedObject mo = (ManagedObject) it.next();
      server.register(mo, context);
    }
  }
View Full Code Here

    }
  }

  public void unregisterMOs(MOServer server, OctetString context) {
    for (Iterator it = objects.iterator(); it.hasNext(); ) {
      ManagedObject mo = (ManagedObject) it.next();
      server.unregister(mo, context);
    }
  }
View Full Code Here

TOP

Related Classes of org.snmp4j.agent.ManagedObject

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.