Uses of Class
org.snmp4j.agent.agentx.AgentXSession
Package
Description
-
Uses of AgentXSession in org.snmp4j.agent.agentx
Modifier and TypeMethodDescriptionMap
<AgentXSession<?>, Integer> AgentX.closeAllSessions
(byte reason) ThrowsUnsupportedOperationException
because AgentX sessions are not managed on protocol level.Map
<AgentXSession<?>, Integer> AgentXCommandListener.closeAllSessions
(byte reason) Close all sessions associated with thisAgentXCommandListener
and return the AgentX status of the close operation together with theAgentXSession
object.Modifier and TypeMethodDescriptionvoid
AgentXPDU.setSessionAttributes
(AgentXSession<?> session) Sets theAgentXSession
specific attributes: session ID and byte order. -
Uses of AgentXSession in org.snmp4j.agent.agentx.event
ModifierConstructorDescriptionPingEvent
(Object source, AgentXSession<A> pingedSession, Exception error) Creates a newPingEvent
from a session and a ping response.PingEvent
(Object source, AgentXSession<A> pingedSession, AgentXResponsePDU pingResponse) Creates a newPingEvent
from a session and a ping response. -
Uses of AgentXSession in org.snmp4j.agent.agentx.master
Modifier and TypeClassDescriptionclass
AgentXMasterSession<A extends org.snmp4j.smi.Address>
TheAgentXMasterSession
extends the base sessionAgentXSession
by agent capability information and sysObjectID as well as sysDescr.Modifier and TypeMethodDescriptionMap
<AgentXSession<?>, Integer> AgentXCommandProcessor.closeAllSessions
(byte reason) Close all sessions associated with thisAgentXCommandListener
and return the AgentX status of the close operation together with theAgentXSession
object.Modifier and TypeMethodDescriptionprotected AgentXResponsePDU
AgentXCommandProcessor.createResponse
(AgentXPDU request, AgentXSession<?> session) Create a response for an AgentX request.protected <A extends org.snmp4j.smi.Address>
voidAgentXCommandProcessor.sendResponse
(AgentXPDU response, AgentXSession<A> session) Sends a response to a session. -
Uses of AgentXSession in org.snmp4j.agent.agentx.subagent
Modifier and TypeFieldDescriptionprotected final Map
<Integer, AgentXSession<?>> AgentXSubagent.sessions
The sessions hold by this sub-agent.Modifier and TypeMethodDescriptionfinal AgentXSession
<?> AgentXSubagent.firstSession()
Returns the first session that have been opened by this subagent and is still open.AgentXSharedMOTableSupport.getSession()
Gets the AgentX session used by this shared table support object.Modifier and TypeMethodDescriptionMap
<AgentXSession<?>, Integer> AgentXSubagent.closeAllSessions
(byte reason) Close all sessions hold by this sub-agent and return the AgentX status of the close operation together with theAgentXSession
object.Modifier and TypeMethodDescription<A extends org.snmp4j.smi.Address>
intAgentXSubagent.addAgentCaps
(AgentXSession<A> session, org.snmp4j.smi.OctetString context, org.snmp4j.smi.OID id, org.snmp4j.smi.OctetString descr) int
AgentXSubagent.close
(AgentXSession<?> session, byte reason) Close an AgentX session.<A extends org.snmp4j.smi.Address>
intAgentXSubagent.connect
(A masterAddress, A localAddress, AgentXSession<A> session) Connect to the given AgentX master using the specified local address.<A extends org.snmp4j.smi.Address>
intAgentXSubagent.connect
(A masterAddress, A localAddress, AgentXSession<A> session, List<org.snmp4j.transport.TransportStateListener> stateListeners) Connect to the given AgentX master using the specified local address.protected <R extends org.snmp4j.agent.mo.MOTableRow,
A extends org.snmp4j.smi.Address>
AgentXSharedMOTableSupport<R, ?> AgentXSubagent.createSharedTableSupport
(AgentXSession<A> session, org.snmp4j.smi.OctetString context) Create a newAgentXSharedMOTableSupport
instance for the given AgentX session and context.<A extends org.snmp4j.smi.Address>
AgentXResponseEvent<A> AgentXSubagent.notify
(AgentXSession<A> session, org.snmp4j.smi.OctetString context, org.snmp4j.smi.OID notificationID, org.snmp4j.smi.TimeTicks sysUpTime, org.snmp4j.smi.VariableBinding[] vbs) Send an AgentX notification to the master which will then be forwarded to trap/notification targets of the master.protected <A extends org.snmp4j.smi.Address>
intAgentXSubagent.openSession
(org.snmp4j.transport.ConnectionOrientedTransportMapping<A> transport, A masterAddress, AgentXSession<A> session) Open a new AgentX session with the given transport and master address.protected <A extends org.snmp4j.smi.Address>
intAgentXSubagent.registerRegion
(AgentXSession<A> session, org.snmp4j.smi.OctetString context, AgentXRegion region, byte priority, org.snmp4j.smi.TimeTicks sysUpTime) void
AgentXSubagent.registerRegions
(AgentXSession<?> session, org.snmp4j.smi.OctetString context, org.snmp4j.smi.TimeTicks sysUpTime, RegistrationCallback registrationCallback) Registers the subagent regions at the master agent.<R extends org.snmp4j.agent.mo.MOTableRow,
C extends org.snmp4j.agent.mo.MOColumn<?>, M extends org.snmp4j.agent.mo.MOTableModel<R>>
voidAgentXSubagent.registerSharedTableRows
(AgentXSession<?> session, org.snmp4j.smi.OctetString context, AgentXSharedMOTable<R, C, M> mo, RegistrationCallback registrationCallback, AgentXSharedMOTableSupport<R, ?> sharedTableSupport) Registers the indexes and (row) regions of a shared table.<R extends org.snmp4j.agent.mo.MOTableRow,
C extends org.snmp4j.agent.mo.MOColumn<?>, M extends org.snmp4j.agent.mo.MOTableModel<R>, A extends org.snmp4j.smi.Address>
voidAgentXSubagent.registerSharedTableRows
(AgentXSession<A> session, org.snmp4j.smi.OctetString context, AgentXSharedMOTable<R, C, M> mo, RegistrationCallback registrationCallback) Deprecated.<A extends org.snmp4j.smi.Address>
intAgentXSubagent.removeAgentCaps
(AgentXSession<A> session, org.snmp4j.smi.OctetString context, org.snmp4j.smi.OID id) void
AgentXSharedMOTableSupport.setSession
(AgentXSession<A> session) Sets the AgentX session to be used for this shared table support.protected <A extends org.snmp4j.smi.Address>
intAgentXSubagent.unregisterRegion
(AgentXSession<A> session, org.snmp4j.smi.OctetString context, AgentXRegion region, byte timeout) ModifierConstructorDescriptionAgentXSharedMOTableSupport
(AgentX agentX, AgentXSession<A> session, org.snmp4j.smi.OctetString context) Creates a shared table support object for a AgentX connection, session, and context.AgentXSharedMOTableSupport
(AgentX agentX, AgentXSession<A> session, org.snmp4j.smi.OctetString context, byte priority, byte indexAllocationMode) Creates a shared table support object for a AgentX connection, session, and context.
AgentXSubagent.registerSharedTableRows(org.snmp4j.agent.agentx.AgentXSession, org.snmp4j.smi.OctetString, AgentXSharedMOTable, RegistrationCallback, AgentXSharedMOTableSupport)
instead.