com.adventnet.snmp.snmp2.agent
Interface PropertyRegistrationListener

All Known Implementing Classes:
BaseSnmpAgent

public interface PropertyRegistrationListener
extends AgentEventListener

This interface class is used to get the Agent properties. This interface may be especially useful in future while making any Agent specific properties transparent to API users in case of their generated & compiled code needs to handle any agent properties.

See Also:
SnmpAgent, VarBindRequestEvent

Method Summary
 java.lang.String getLocalAddress()
          Gets the local address of the agent.
 int getPort()
          Gets the local port of the agent.
 SnmpGroup getSnmpGroup()
          Gets the SnmpGroup object associated with the agent from which the SnmpGroup counter values can be known.
 long getUpTime()
          Gets the uptime of the agent.
 boolean isCallbackThread()
          Specifies whether the callbackthread is enabled.
 void setCallbackThread(boolean value)
          Sets the callbackthread.
 

Method Detail

getLocalAddress

public java.lang.String getLocalAddress()
Gets the local address of the agent.
Returns:
The Local Address Requested.

getPort

public int getPort()
Gets the local port of the agent.
Returns:
The Local Port of the Agent.

getSnmpGroup

public SnmpGroup getSnmpGroup()
Gets the SnmpGroup object associated with the agent from which the SnmpGroup counter values can be known.
Returns:
The SnmpGroup requested.
See Also:
SnmpGroup

getUpTime

public long getUpTime()
Gets the uptime of the agent.
Returns:
The Up Time of the Agent.

isCallbackThread

public boolean isCallbackThread()
Specifies whether the callbackthread is enabled.
Returns:
True If Call Back Thread is Enabled else False.

setCallbackThread

public void setCallbackThread(boolean value)
Sets the callbackthread.
Returns:
value The Call Back Thread Value to be set.