com.adventnet.snmp.snmp2.agent
Interface PropertyRegistrationListener

All Superinterfaces:
AgentEventListener
All Known Implementing Classes:
BaseSnmpAgent, JMXSnmpAgent, SnmpAgent

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.
 java.lang.String getSerializeFileName()
          Gets the name of the serialized file which the SnmpAgent uses to configure the V3 settings.
 SnmpGroup getSnmpGroup()
          Gets the SnmpGroup object associated with the agent from which the SnmpGroup counter values can be known.
 SnmpVacm getSnmpVacm()
          Gets the VACM information of the v3 snmp agent.
 long getUpTime()
          Gets the uptime of the agent.
 boolean getWindowsSubAgent()
          Gets whether the agent is running as standalone agent or as a WindowsSubAgent.
 boolean isCallbackThread()
          Specifies whether the callbackthread is enabled.
 void setCallbackThread(boolean value)
          Sets the callbackthread.
 void setSerializeFileName(java.lang.String filename)
          Sets the name of the serialized file which the SnmpAgent uses to configure the V3 settings.
 

Method Detail

getLocalAddress

java.lang.String getLocalAddress()
Gets the local address of the agent.

Returns:
The Local Address Requested.

getPort

int getPort()
Gets the local port of the agent.

Returns:
The Local Port of the Agent.

getSnmpGroup

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

long getUpTime()
Gets the uptime of the agent.

Returns:
The Up Time of the Agent.

isCallbackThread

boolean isCallbackThread()
Specifies whether the callbackthread is enabled.

Returns:
True If Call Back Thread is Enabled else False.

setCallbackThread

void setCallbackThread(boolean value)
Sets the callbackthread.


getWindowsSubAgent

boolean getWindowsSubAgent()
Gets whether the agent is running as standalone agent or as a WindowsSubAgent.

Returns:
True If the agent is a Sub Agent for Windows Agent else False.

getSerializeFileName

java.lang.String getSerializeFileName()
Gets the name of the serialized file which the SnmpAgent uses to configure the V3 settings.

Returns:
The Serialize File Name.

setSerializeFileName

void setSerializeFileName(java.lang.String filename)
                          throws SnmpException
Sets the name of the serialized file which the SnmpAgent uses to configure the V3 settings.

Parameters:
filename - The file Name specification.
Throws:
SnmpException - This Wraps all the Types of exception thrown while processing this Request.

getSnmpVacm

SnmpVacm getSnmpVacm()
Gets the VACM information of the v3 snmp agent.

Returns:
The Snmp Vacm Information of the Agent.