com.adventnet.utils.agent
Interface TrapRegistrationInterface
- public interface TrapRegistrationInterface
- extends java.util.EventListener
This interface is implemeneted by main class which makes
all necessary connections for group level TrapGenerationlisteners
This is mainly used as a clean interface for testing.
Example: class_ = Class.forName(classname); Here we are not aware of
the class which is going to be instantiated, so we are class casting
to this Interface
sampleMib = (RegistrationInterface)class_.newInstance();
addTrapGenListener
public void addTrapGenListener(TrapGenListener l)
- This method adds the TrapGenerator listener.
- Parameters:
l - The TrapGen Listener to add.
removeTrapGenListener
public void removeTrapGenListener(TrapGenListener l)
- This method removes the TrapGenerator listener.
- Parameters:
l - The TrapGen Listener to be Removed.