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

public class AgentXTarget<A extends org.snmp4j.smi.Address> extends Object implements Serializable
The AgentXTarget implements a AgentX target.
See Also:
  • Constructor Details

    • AgentXTarget

      public AgentXTarget(A address)
      Creates a AgentXTarget from an address.
      Parameters:
      address - the address of the target.
    • AgentXTarget

      public AgentXTarget(A address, byte timeout)
      Creates a AgentXTarget from an address.
      Parameters:
      address - the address of the target.
      timeout - the target timeout (derived from the session) in seconds.
    • AgentXTarget

      public AgentXTarget(A address, long timeout)
      Creates a AgentXTarget 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

      public A getAddress()
      Gets the target's address.
      Returns:
      a transport address.