Package org.snmp4j.agent

Examples of org.snmp4j.agent.DefaultMOContextScope


          this.scope = getNextScope(new OID(this.vb.getOid()));
          break;
        }
        default: {
          OID oid = this.vb.getOid();
          this.scope = new DefaultMOContextScope(getContext(),
                                                 oid, true, oid, true);
        }
      }
      status = new RequestStatus();
      status.addRequestStatusListener(this);
View Full Code Here


                     " from "+subrequest);
      }
    }

    protected MOScope getNextScope(OID previousOID) {
      return new DefaultMOContextScope(getContext(), previousOID, false,
                                       null, false);
    }
View Full Code Here

          (AgentXRequestPDU)requestEvent.getCommand();
      MOScope[] ranges = rangeRequest.getRanges();
      for (int i = 0; i < ranges.length; i++) {
        AgentXSubRequest subReq =
            new AgentXSubRequest(
                new DefaultMOContextScope(getContext(), ranges[i]), i);
        addSubRequest(subReq);
      }
    }
    else if (requestEvent.getCommand() instanceof AgentXVariableBindingPDU) {
      AgentXVariableBindingPDU vbRequest =
View Full Code Here

    protected AgentXSubRequest(VariableBinding subrequest, int index) {
      this(index);
      this.vb = subrequest;
      OID oid = this.vb.getOid();
      this.scope = new DefaultMOContextScope(getContext(),
                                             oid, true, oid, true);
    }
View Full Code Here

      this.vb = new VariableBinding(predecessor.getVariableBinding().getOid());
      switch (requestEvent.getCommand().getType()) {
        case AgentXPDU.AGENTX_GETBULK_PDU:
        case AgentXPDU.AGENTX_GETNEXT_PDU: {
          this.scope =
              new DefaultMOContextScope(getContext(),
                                        predecessor.getVariableBinding().getOid(),
                                        false,
                                        predecessor.getScope().getUpperBound(),
                                        predecessor.getScope().isUpperIncluded());
          break;
        }
        default: {
          this.scope = new DefaultMOContextScope(getContext(),
                                                 predecessor.getScope());
        }
      }
//    Do not copy queries because they need to be updated externally only!
//    this.query = predecessor.getQuery();
View Full Code Here

            (!this.vb.isException())) {
          AgentXSubRequest nsreq =
              (AgentXSubRequest) repetitions.nextSubRequest();
          nsreq.query = null;
          nsreq.scope =
              new DefaultMOContextScope(getContext(),
                                        this.getVariableBinding().getOid(),
                                        false,
                                        this.getScope().getUpperBound(),
                                        this.getScope().isUpperIncluded());
        }
View Full Code Here

TOP

Related Classes of org.snmp4j.agent.DefaultMOContextScope

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.