public class Notifier extends WatchedReloadableModule implements NodeEventListener, RelationEventListener, Runnable
| Modifier and Type | Field and Description |
|---|---|
(package private) DelayQueue<Notifyable> |
queue |
protected boolean |
running |
configurationPath, getMaintainerFunction, getVersionFunction, properties, STATE_START_TIMEdescription, guiName, namefunctions, getFunctions| Constructor and Description |
|---|
Notifier() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
determinActive() |
protected Collection<String> |
getRelevantBuilders() |
void |
init()
Initializes the module.
|
protected void |
loadNotifyables() |
void |
notify(NodeEvent ne) |
void |
notify(RelationEvent re) |
void |
reload()
This method should be called when the module should be reloaded.
|
void |
run() |
void |
shutdown()
Shuts down the module.
|
protected void |
startThread() |
onloadreloadConfiguration, reloadConfigurationaddInitParameters, getInitParameter, getInitParameter, getInitParameter, getInitParameters, getInitParameters, getMaintainer, getModule, getModule, getModule, getModule, getModuleInfo, getModuleLoader, getModuleReader, getModuleReader, getModules, getState, getStates, getVersion, hasModule, hasStarted, loadInitParameters, loadInitParameters, maintainance, setInitParameter, setMaintainer, setState, setVersion, shutdownModules, startModule, startModulesgetDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName, setNameaddFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstanceprotected boolean running
DelayQueue<Notifyable> queue
protected Collection<String> getRelevantBuilders()
public void reload()
ReloadableModulereload in class ReloadableModuleprotected void loadNotifyables()
public void init()
ModuleModule.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead.protected void startThread()
protected boolean determinActive()
public void shutdown()
Modulepublic void notify(NodeEvent ne)
notify in interface NodeEventListenerpublic void notify(RelationEvent re)
notify in interface RelationEventListenerMMBase 1.9-SNAPSHOT - ${javadoctimestamp}