org.friendlysnmp.event
Interface ShutdownListener


public interface ShutdownListener

Objects implementing this interface should be registered with FriendlyAgent for receiving shutdown event from MIB browser. MIB browser displays shutdownApp scalar value as 'running' if there is at least a single ShutdownListener registered and 'disabled' if there are no ShutdownListener registered.

Version:
$Revision: 1.8 $

Method Summary
 boolean shutdownRequest()
          This method is called on registered object with request from MIB browser to shutdown the application.
 

Method Detail

shutdownRequest

boolean shutdownRequest()
This method is called on registered object with request from MIB browser to shutdown the application. The shutdown request is set to FRIENDLY-SNMP-MIB scalar shutdownApp. The application may return false as a signal that shutdown is rejected. Otherwise the application should call System.exit() and return value does not matter.

This call is made on MIB browser SET request validation and returns ValueValidation.NO_ACCESS if application rejects shutdown.

Returns:
return false to reject shutdown request