public class DaemonStarter extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
abortSystem()
Abort the daemon
|
static void |
abortSystem(Throwable error)
Abort the daemon
|
static LifecyclePhase |
getCurrentPhase() |
static String |
getDaemonName() |
static Properties |
getDaemonProperties() |
static String |
getHostname() |
static String |
getInstanceId() |
static String |
getStartupMode() |
static boolean |
isDevelopmentMode() |
static boolean |
isRunMode() |
static void |
startDaemon(String _daemonName,
IDaemonLifecycleListener _lifecycleListener)
Starts the daemon and provides feedback through the life-cycle listener
|
static void |
stopService()
Stop the service and end the program
|
public static boolean isDevelopmentMode()
public static boolean isRunMode()
public static String getStartupMode()
public static LifecyclePhase getCurrentPhase()
LifecyclePhasepublic static String getHostname()
public static String getDaemonName()
public static String getInstanceId()
public static Properties getDaemonProperties()
public static void startDaemon(String _daemonName, IDaemonLifecycleListener _lifecycleListener)
_daemonName - the name of this daemon_lifecycleListener - the IDaemonLifecycleListener to use for phase call-backspublic static void stopService()
public static void abortSystem()
public static void abortSystem(Throwable error)
error - the error causing the abortionCopyright © 2015–2022 Taimos GmbH. All rights reserved.