Package org.snmp4j.agent.agentx.master
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 org.snmp4j.agent.agentx.master.AbstractAgentXPending
registration
-
Constructor Summary
ConstructorsConstructorDescriptionAgentXPendingGet
(AgentXRegEntry<A> registration, org.snmp4j.agent.request.SnmpRequest request, AgentXSearchRange searchRange) Creates aAgentXPendingGet
request.AgentXPendingGet
(AgentXRegEntry<A> registration, org.snmp4j.agent.request.SnmpRequest request, AgentXSearchRange searchRange, Function<org.snmp4j.smi.OID, Boolean> oidFilter) Creates aAgentXPendingGet
request. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSearchRange
(AgentXSearchRange searchRange) Adds a search range to the request.Gets the AgentX PDU.short
Gets the number of non-repeaters in the request.Get the optional filter to remove objects returned by an AgentX sub-agent from the result of GetNext or GetBulk operations.org.snmp4j.agent.request.SubRequestIterator
<org.snmp4j.agent.request.SnmpRequest.SnmpSubRequest> Get the references to the SNMP sub-requests that triggered the AgentX request.Gets the search ranges of the GET type request.Gets the master agent session.void
Increments the number of non-repeaters in the request.void
setNonRepeater
(short nonRepeater) Sets the non-repeater count, i.e.toString()
Methods inherited from class org.snmp4j.agent.agentx.master.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 aAgentXPendingGet
request.- Parameters:
registration
- the registration used processing the request.request
- the request.searchRange
- the current search range for the request.
-
AgentXPendingGet
public AgentXPendingGet(AgentXRegEntry<A> registration, org.snmp4j.agent.request.SnmpRequest request, AgentXSearchRange searchRange, Function<org.snmp4j.smi.OID, Boolean> oidFilter) Creates aAgentXPendingGet
request.- Parameters:
registration
- the registration used processing the request.request
- the request.searchRange
- the current search range for the request.oidFilter
- an optional filter to remove objects returned by an AgentX sub-agent from the result of GetNext or GetBulk operations. Typically, this can be VACM filtering. Only if the provided function isnull
or returnstrue
, the retrieved OID will be returned to the command generator.- Since:
- 4.1.0
-
-
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
Description copied from interface:AgentXPending
Gets the AgentX PDU.- Returns:
- the
AgentXPDU
.
-
getSearchRanges
Gets the search ranges of the GET type request.- Returns:
- a
Collection
of search ranges.
-
getNonRepeater
public short getNonRepeater()Gets the number of non-repeaters in the request.- Returns:
- number of non-repeater.
-
getOidFilter
Get the optional filter to remove objects returned by an AgentX sub-agent from the result of GetNext or GetBulk operations. Typically, this can be VACM filtering. Only if the provided function returnstrue
, the retrieved OID will be returned to the command generator.- Returns:
- the filter function.
- Since:
- 4.1.0
-
getSession
Description copied from interface:AgentXPending
Gets 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:AgentXPending
Get the references to the SNMP sub-requests that triggered the AgentX request.- Returns:
- an iterator on the SNMP requests associated with this AgentX pending request.
-
toString
- Overrides:
toString
in classAbstractAgentXPending<A extends org.snmp4j.smi.Address>
-