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
ConstructorsConstructorDescriptionAgentXTarget(A address) Creates aAgentXTargetfrom an address.AgentXTarget(A address, byte timeout) Creates aAgentXTargetfrom an address.AgentXTarget(A address, long timeout) Creates aAgentXTargetfrom an address. -
Method Summary
Modifier and TypeMethodDescriptionGets the target's address.longGets the target timeout in milliseconds.
-
Constructor Details
-
AgentXTarget
Creates aAgentXTargetfrom an address.- Parameters:
address- the address of the target.
-
AgentXTarget
Creates aAgentXTargetfrom an address.- Parameters:
address- the address of the target.timeout- the target timeout (derived from the session) in seconds.
-
AgentXTarget
Creates aAgentXTargetfrom 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.
-