Class AgentXPendingGet<A extends org.snmp4j.smi.Address>
java.lang.Object
org.snmp4j.agent.agentx.master.AbstractAgentXPending<A>
org.snmp4j.agent.agentx.master.AgentXPendingGet<A>
- Type Parameters:
A- the address type.
- All Implemented Interfaces:
Serializable, AgentXPending<A>
AgentXPendingGet implements an AgentX GET request.- See Also:
-
Field Summary
Fields inherited from class AbstractAgentXPending
registration -
Constructor Summary
ConstructorsConstructorDescriptionAgentXPendingGet(AgentXRegEntry<A> registration, org.snmp4j.agent.request.SnmpRequest request, AgentXSearchRange searchRange) Creates aAgentXPendingGetrequest. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSearchRange(AgentXSearchRange searchRange) Adds a search range to the request.Gets the AgentX PDU.shortGets the number of non-repeaters in the request.org.snmp4j.agent.request.SubRequestIterator<org.snmp4j.agent.request.SnmpRequest.SnmpSubRequest> Get the references to the SNMP request that triggered the AgentX request.Gets the search ranges of the GET type request.Gets the master agent session.voidIncrements the number of non-repeaters in the request.voidsetNonRepeater(short nonRepeater) Sets the non-repeater count, i.e. marks the first n search ranges as non-repeating.toString()Methods inherited from class AbstractAgentXPending
getRegistration, getRequest, getTimeout, getTimestamp, isPending, setPending, setTimeout, toStringMembers, updateTimestamp
-
Constructor Details
-
AgentXPendingGet
public AgentXPendingGet(AgentXRegEntry<A> registration, org.snmp4j.agent.request.SnmpRequest request, AgentXSearchRange searchRange) Creates aAgentXPendingGetrequest.- Parameters:
registration- the registration used processing the request.request- the request.searchRange- the current search range for the request.
-
-
Method Details
-
addSearchRange
Adds a search range to the request.- Parameters:
searchRange- an additional search range.
-
setNonRepeater
public void setNonRepeater(short nonRepeater) Sets the non-repeater count, i.e. marks the first n search ranges as non-repeating.- Parameters:
nonRepeater- number of non-repeater search ranges.
-
incNonRepeater
public void incNonRepeater()Increments the number of non-repeaters in the request. -
getAgentXPDU
-
getSearchRanges
Gets the search ranges of the GET type request.- Returns:
- a
Collectionof search ranges.
-
getNonRepeater
public short getNonRepeater()Gets the number of non-repeaters in the request.- Returns:
- number of non-repeater.
-
getSession
Description copied from interface:AgentXPendingGets the master agent session.- Returns:
- the
AgentXMasterSession.
-
getReferences
public org.snmp4j.agent.request.SubRequestIterator<org.snmp4j.agent.request.SnmpRequest.SnmpSubRequest> getReferences()Description copied from interface:AgentXPendingGet the references to the SNMP request that triggered the AgentX request.- Returns:
- an iterator on the SNMP requests associated with this AgentX pending request.
-
toString
- Overrides:
toStringin classAbstractAgentXPending<A extends org.snmp4j.smi.Address>
-