Package org.snmp4j.mp

Examples of org.snmp4j.mp.PduHandle


  protected PduHandle sendMessage(AgentXPDU pdu, AgentXTarget target,
                                  TransportMapping transport,
                                  PduHandleCallback pduHandleCallback)
      throws IOException
  {
    PduHandle handle =
        messageDispatcher.send(transport, target.getAddress(), pdu,
                               pduHandleCallback);
    return handle;
  }
View Full Code Here


    return handle;
  }

  public void processCommand(AgentXCommandEvent event) {
    AgentXPDU pdu = event.getCommand();
    PduHandle handle = new PduHandle(pdu.getPacketID());
    if (pdu.getType() == AgentXPDU.AGENTX_RESPONSE_PDU) {
      event.setProcessed(true);
      PendingRequest request;
      if (logger.isDebugEnabled()) {
        logger.debug("Removing pending request with handle " + handle);
View Full Code Here

    }
    return nextID;
  }

  protected PduHandle createPduHandle() {
    return new PduHandle(getNextPacketID());
  }
View Full Code Here

  }

  public PduHandle send(TransportMapping transport,
                        Address address, AgentXPDU message,
                        PduHandleCallback callback) throws IOException {
    PduHandle handle;
    if (message instanceof AgentXResponsePDU) {
      handle = new PduHandle(message.getPacketID());
    }
    else {
      handle = createPduHandle();
      message.setPacketID(handle.getTransactionID());
    }
    if (callback != null) {
      callback.pduHandleAssigned(handle, message);
    }
    if (transport != null) {
View Full Code Here

TOP

Related Classes of org.snmp4j.mp.PduHandle

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.