com.adventnet.snmp.snmp2.agent
Class AgentSnmpGroup

java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.agent.AgentSnmpGroup

public class AgentSnmpGroup
extends java.lang.Object
implements RegistrationInterface

This class takes care of registering the RFC1213-SnmpGroup instrumented listener(SnmpRequestHandler) with the PduRequestHandler.


Field Summary
(package private)  BaseSnmpAgent agentListener
           
(package private)  SnmpRequestHandler listener0
           
(package private)  RegistrationListener regListener
           
 
Constructor Summary
AgentSnmpGroup()
          No arg Constructor.
AgentSnmpGroup(BaseSnmpAgent agent)
          Constructor with SnmpAgent reference.
 
Method Summary
 void addRegistrationListener(RegistrationListener l)
          adds the registration listener for this bean.
 AuthenticationListener getAuthenticationListener()
          Getter for the AuthenticationListener
(package private)  void initSnmpExtensionNodes(RegistrationListener hdlr)
          Adds VarBindRequestListeners to SnmpAgent
 void removeRegistrationListener(RegistrationListener l)
          removes the registration listener for this bean.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener0

SnmpRequestHandler listener0

agentListener

BaseSnmpAgent agentListener

regListener

RegistrationListener regListener
Constructor Detail

AgentSnmpGroup

public AgentSnmpGroup()
No arg Constructor. Currently does nothing.

AgentSnmpGroup

public AgentSnmpGroup(BaseSnmpAgent agent)
Constructor with SnmpAgent reference.
Method Detail

getAuthenticationListener

public AuthenticationListener getAuthenticationListener()
Getter for the AuthenticationListener
Returns:
The AuthenticationListener instance

initSnmpExtensionNodes

void initSnmpExtensionNodes(RegistrationListener hdlr)
Adds VarBindRequestListeners to SnmpAgent

addRegistrationListener

public void addRegistrationListener(RegistrationListener l)
adds the registration listener for this bean. This listener maintains the registration tree where VarBindRequestListeners can register for their interested OID.
Specified by:
addRegistrationListener in interface RegistrationInterface
Parameters:
l - ,the registration listener to whom SnmpRequestHandler registers.

removeRegistrationListener

public void removeRegistrationListener(RegistrationListener l)
removes the registration listener for this bean.
Specified by:
removeRegistrationListener in interface RegistrationInterface
Parameters:
l - - the registration listener to whom SnmpRequestHanlder has registered.