Package org.snmp4j.agent.agentx
Class AgentXTarget<A extends org.snmp4j.smi.Address>
java.lang.Object
org.snmp4j.agent.agentx.AgentXTarget<A>
- Type Parameters:
A
- the address type of the target class.
- All Implemented Interfaces:
Serializable
The
AgentXTarget
implements a AgentX target.- See Also:
-
Constructor Summary
ConstructorDescriptionAgentXTarget
(A address) Creates aAgentXTarget
from an address.AgentXTarget
(A address, byte timeout) Creates aAgentXTarget
from an address.AgentXTarget
(A address, long timeout) Creates aAgentXTarget
from an address. -
Method Summary
Modifier and TypeMethodDescriptionGets the target's address.long
Gets the target timeout in milliseconds.
-
Constructor Details
-
AgentXTarget
Creates aAgentXTarget
from an address.- Parameters:
address
- the address of the target.
-
AgentXTarget
Creates aAgentXTarget
from an address.- Parameters:
address
- the address of the target.timeout
- the target timeout (derived from the session) in seconds.
-
AgentXTarget
Creates aAgentXTarget
from an address.- Parameters:
address
- the address of the target.timeout
- the target timeout (derived from the session) in milliseconds.
-
-
Method Details
-
getTimeout
public long getTimeout()Gets the target timeout in milliseconds.- Returns:
- the target timeout milliseconds.
-
getAddress
Gets the target's address.- Returns:
- a transport address.
-