org.snmp4j.agent.agentx.master
Class AgentXQueue

java.lang.Object
  extended by org.snmp4j.agent.agentx.master.AgentXQueue

public class AgentXQueue
extends java.lang.Object


Nested Class Summary
 class AgentXQueue.AgentXQueueEntry
           
 
Constructor Summary
AgentXQueue()
           
 
Method Summary
 boolean add(AgentXSearchRange searchRange, AgentXRegEntry entry, boolean repeater)
           
 boolean add(org.snmp4j.smi.VariableBinding vb, org.snmp4j.agent.request.SnmpSubRequest subRequest, AgentXRegEntry entry)
           
 AgentXQueue.AgentXQueueEntry get(int transactionID)
          Return all pending AgentX requests for the specified transaction ID.
 AgentXPending get(int sessionID, int transactionID)
          Returns the AgentX request in the queue identified by an AgentX session ID and a transaction ID.
 org.snmp4j.agent.MOServer[] getServer4BulkOptimization()
           
protected  void optimizeSearchRange(AgentXSearchRange searchRange, AgentXRegEntry entry)
           
 AgentXPending remove(int sessionID, int transactionID)
          Returns the AgentX request in the queue identified by an AgentX session ID and a transaction ID and removes that request from the queue.
 void removeAll(int transactionID)
          Remove all AgentX request entries for the supplied transaction ID.
 void setServer4BulkOptimization(org.snmp4j.agent.MOServer[] servers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentXQueue

public AgentXQueue()
Method Detail

setServer4BulkOptimization

public void setServer4BulkOptimization(org.snmp4j.agent.MOServer[] servers)

getServer4BulkOptimization

public org.snmp4j.agent.MOServer[] getServer4BulkOptimization()

add

public boolean add(org.snmp4j.smi.VariableBinding vb,
                   org.snmp4j.agent.request.SnmpSubRequest subRequest,
                   AgentXRegEntry entry)

add

public boolean add(AgentXSearchRange searchRange,
                   AgentXRegEntry entry,
                   boolean repeater)

optimizeSearchRange

protected void optimizeSearchRange(AgentXSearchRange searchRange,
                                   AgentXRegEntry entry)

get

public AgentXPending get(int sessionID,
                         int transactionID)
Returns the AgentX request in the queue identified by an AgentX session ID and a transaction ID.

Parameters:
sessionID - the session ID.
transactionID - the transaction ID.
Returns:
the associated AgentXPending instance or null if no such request exists.

remove

public AgentXPending remove(int sessionID,
                            int transactionID)
Returns the AgentX request in the queue identified by an AgentX session ID and a transaction ID and removes that request from the queue.

Parameters:
sessionID - the session ID.
transactionID - the transaction ID.
Returns:
the associated AgentXPending instance or null if no such request exists.

get

public AgentXQueue.AgentXQueueEntry get(int transactionID)
Return all pending AgentX requests for the specified transaction ID.

Parameters:
transactionID - a transcation ID.
Returns:
a possibly empty List of pending requests.

removeAll

public void removeAll(int transactionID)
Remove all AgentX request entries for the supplied transaction ID.

Parameters:
transactionID - a transaction ID.

Copyright 2005-2011 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.