Package org.snmp4j.agent.agentx.master
Class AgentXPendingSet<A extends org.snmp4j.smi.Address>
java.lang.Object
org.snmp4j.agent.agentx.master.AbstractAgentXPending<A>
org.snmp4j.agent.agentx.master.AgentXPendingSet<A>
- Type Parameters:
A
- the address type.
- All Implemented Interfaces:
Serializable
,AgentXPending<A>
AgentXPendingSet
implements an AgentX SET request.- See Also:
-
Field Summary
Fields inherited from class org.snmp4j.agent.agentx.master.AbstractAgentXPending
registration
-
Constructor Summary
ConstructorDescriptionAgentXPendingSet
(AgentXRegEntry<A> regEntry, org.snmp4j.agent.request.SnmpRequest request) Creates a newAgentXPendingSet
request. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(org.snmp4j.agent.request.SnmpRequest.SnmpSubRequest reference, org.snmp4j.smi.VariableBinding vb) Adds a variable binding to the SET request with a reference to the SNMP request it belongs to.Gets the AgentX PDU.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 master agent session.toString()
Methods inherited from class org.snmp4j.agent.agentx.master.AbstractAgentXPending
getRegistration, getRequest, getTimeout, getTimestamp, isPending, setPending, setTimeout, toStringMembers, updateTimestamp
-
Constructor Details
-
AgentXPendingSet
Creates a newAgentXPendingSet
request.- Parameters:
regEntry
- a registration entry to process the request.request
- the SNMP request.
-
-
Method Details
-
add
public void add(org.snmp4j.agent.request.SnmpRequest.SnmpSubRequest reference, org.snmp4j.smi.VariableBinding vb) Adds a variable binding to the SET request with a reference to the SNMP request it belongs to.- Parameters:
reference
- the corresponding SNMP sub-request.vb
- the variable binding.
-
getAgentXPDU
Description copied from interface:AgentXPending
Gets the AgentX PDU.- Returns:
- the
AgentXPDU
.
-
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 request 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>
-