org.friendlysnmp.plugin.core
Class CoreLifeHandler

java.lang.Object
  extended by org.friendlysnmp.FHandler
      extended by org.friendlysnmp.plugin.core.CoreLifeHandler

public class CoreLifeHandler
extends FHandler

The class provides application information to SNMP objects declared in FRIENDLY-SNMP-MIB.

Version:
$Revision: 1.17 $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.friendlysnmp.FHandler
FHandler.AgentStartType
 
Field Summary
 
Fields inherited from class org.friendlysnmp.FHandler
agent, mibBase
 
Constructor Summary
CoreLifeHandler()
          Constructor
 
Method Summary
 void addShutdownListener(ShutdownListener l)
          Adds ShutdownListener
 void registerMib(BaseMib mibBase)
           
 void removeShutdownListener(ShutdownListener l)
          Removes ShutdownListener
 void shutdown()
          Sends shutdown notification and shutdowns heartbeat thread.
 void start(FHandler.AgentStartType startType)
          Sends startup notification and starts heartbeat thread.
 void stop()
          The method is called by SNMP agent when it's stopped.
 
Methods inherited from class org.friendlysnmp.FHandler
getTimestampNow, init, isIntegerEqual, setAgent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreLifeHandler

public CoreLifeHandler()
Constructor

Method Detail

registerMib

public void registerMib(BaseMib mibBase)
                 throws FException
Overrides:
registerMib in class FHandler
Throws:
FException

start

public void start(FHandler.AgentStartType startType)
Sends startup notification and starts heartbeat thread.

Overrides:
start in class FHandler

stop

public void stop()
The method is called by SNMP agent when it's stopped. Default implementation does nothing. Override this method in derived class, for example, to stop threads.

Overrides:
stop in class FHandler
See Also:
FHandler.stop()

shutdown

public void shutdown()
Sends shutdown notification and shutdowns heartbeat thread.

Overrides:
shutdown in class FHandler

addShutdownListener

public void addShutdownListener(ShutdownListener l)
Adds ShutdownListener

Parameters:
l - ShutdownListener object

removeShutdownListener

public void removeShutdownListener(ShutdownListener l)
Removes ShutdownListener

Parameters:
l - ShutdownListener object