xmlBlaster 2.2.0 API

org.xmlBlaster.engine.runlevel
Interface I_RunlevelListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
AccessPluginManager, Authenticate, AvailabilityChecker, ClusterManager, CommandManager, EventPlugin, Main, PublishPluginManager, RequestBroker, ServerScope

public interface I_RunlevelListener
extends java.util.EventListener

Listens on run level change events, for example shutdown is runlevel 0, up and running is runlevel 9.

Implement this interface if you want to receive run level change events.

Since:
0.79f
Author:
Marcel Ruff
See Also:
RunlevelManager, engine.runlevel requirement

Method Summary
 java.lang.String getName()
          A human readable name of the listener for logging.
 void runlevelChange(int from, int to, boolean force)
          Invoked on run level change, see for example RunlevelManager.RUNLEVEL_HALTED and RunlevelManager.RUNLEVEL_RUNNING
 

Method Detail

getName

java.lang.String getName()
A human readable name of the listener for logging.


runlevelChange

void runlevelChange(int from,
                    int to,
                    boolean force)
                    throws XmlBlasterException
Invoked on run level change, see for example RunlevelManager.RUNLEVEL_HALTED and RunlevelManager.RUNLEVEL_RUNNING

Parameters:
from - The current runlevel
to - The runlevel we want to switch to
force - If true force the change even if messages are lost
Throws:
XmlBlasterException

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.