Package org.snmp4j.agent.agentx.master
Class AgentXMasterSession<A extends org.snmp4j.smi.Address>
java.lang.Object
org.snmp4j.agent.agentx.AgentXSession<A>
org.snmp4j.agent.agentx.master.AgentXMasterSession<A>
- All Implemented Interfaces:
Serializable
The
AgentXMasterSession
extends the base session
AgentXSession
by agent capability information and
sysObjectID as well as sysDescr.- Version:
- 1.0
- Author:
- Frank Fock
- See Also:
-
Constructor Summary
ConstructorDescriptionAgentXMasterSession
(int sessionID, AgentXQueue queue, org.snmp4j.smi.OID oid, org.snmp4j.smi.OctetString descr) Creates an newAgentXMasterSession
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAgentCaps
(org.snmp4j.smi.OID sysORID, org.snmp4j.smi.OID agentCapsIndex) Add an agent caps entry.int
Gets the session's AgentX version.org.snmp4j.smi.OctetString
getDescr()
Gets the session description.org.snmp4j.smi.OID
getOid()
Gets the session OID.getQueue()
Gets the AgentX request queue of this master agent.org.snmp4j.smi.OID
removeAgentCaps
(org.snmp4j.smi.OID sysORID) Remove an agent caps entry.void
setAgentXVersion
(int agentXVersion) Sets the AgentX version identifier.Methods inherited from class org.snmp4j.agent.agentx.AgentXSession
clearConsecutiveTimeouts, createAgentXTarget, equals, getByteOrder, getConsecutiveTimeouts, getPeer, getSessionID, getTimeout, hashCode, incConsecutiveTimeouts, isClosed, setByteOrder, setClosed, setPeer, setSessionID, setTimeout, toString
-
Constructor Details
-
AgentXMasterSession
public AgentXMasterSession(int sessionID, AgentXQueue queue, org.snmp4j.smi.OID oid, org.snmp4j.smi.OctetString descr) Creates an newAgentXMasterSession
.- Parameters:
sessionID
- the session ID.queue
- the master agentx queue.oid
- the OID identifying the master agent session.descr
- the description of the master agent.
-
-
Method Details
-
getQueue
Gets the AgentX request queue of this master agent.- Returns:
- the queue.
-
getOid
public org.snmp4j.smi.OID getOid()Gets the session OID.- Returns:
- an OID.
-
getDescr
public org.snmp4j.smi.OctetString getDescr()Gets the session description.- Returns:
- an
OctetString
.
-
getAgentXVersion
public int getAgentXVersion()Gets the session's AgentX version.- Returns:
- a version identifies.
-
setAgentXVersion
public void setAgentXVersion(int agentXVersion) Sets the AgentX version identifier.- Parameters:
agentXVersion
- an AgentX version.
-
addAgentCaps
public void addAgentCaps(org.snmp4j.smi.OID sysORID, org.snmp4j.smi.OID agentCapsIndex) Add an agent caps entry.- Parameters:
sysORID
- the sysORID value of the new entry.agentCapsIndex
- the agentXCapsIndex.
-
removeAgentCaps
public org.snmp4j.smi.OID removeAgentCaps(org.snmp4j.smi.OID sysORID) Remove an agent caps entry.- Parameters:
sysORID
- the sysORID value of the new entry.- Returns:
- the agentXCapsIndex or
null
if the entry does not exist.
-