public final class AppDaemonService extends Object
Modifier and Type | Method and Description |
---|---|
static Daemon |
getDaemon(String strDaemonKey)
Gets a daemon object from its key name
|
static Collection<DaemonEntry> |
getDaemonEntries()
Get the current known DaemonEntries within the DaemonFactory
|
static void |
init()
Performs initialization of the DaemonFactory.
|
static void |
modifyDaemonInterval(String strDaemonKey,
String strDaemonInterval)
modify daemon interval
|
static void |
registerDaemon(DaemonEntry entry)
Register a daemon by its entry
|
static void |
shutdown()
Performs the shutdown of the DaemonFactory.
|
static boolean |
signalDaemon(String strDaemonKey)
Signal a daemon for execution in the immediate future.
|
static boolean |
signalDaemon(String strDaemonKey,
long nDelay,
TimeUnit unit)
Signal a daemon for execution in the immediate future.
|
static void |
startDaemon(String strDaemonKey)
Starts a daemon
|
static void |
stopDaemon(String strDaemonKey)
Stops a daemon
|
static void |
unregisterDaemon(String strDaemonKey)
Unregister a daemon
|
public static void init()
LuteceInitException
- If an error occurredpublic static void registerDaemon(DaemonEntry entry) throws LuteceInitException
entry
- The daemon entryLuteceInitException
- If an error occurredpublic static void unregisterDaemon(String strDaemonKey)
strDaemonKey
- The daemon keypublic static void startDaemon(String strDaemonKey)
strDaemonKey
- The daemon keypublic static void stopDaemon(String strDaemonKey)
strDaemonKey
- The daemon keypublic static boolean signalDaemon(String strDaemonKey)
This can fail is resources are limited, which should be exceptional.
strDaemonKey
- the daemon keytrue
if the daemon was successfully signaled, false
otherwisepublic static boolean signalDaemon(String strDaemonKey, long nDelay, TimeUnit unit)
This can fail is resources are limited, which should be exceptional.
strDaemonKey
- the daemon keynDelay
- the delay before executionunit
- the unit of nDelay
argumenttrue
if the daemon was successfully signaled, false
otherwisepublic static void modifyDaemonInterval(String strDaemonKey, String strDaemonInterval)
strDaemonKey
- The daemon keystrDaemonInterval
- the daemon intervalpublic static Collection<DaemonEntry> getDaemonEntries()
public static void shutdown()
Copyright © 2020 City of Paris. All rights reserved.