public class DaemonStarter extends Object
| Constructor and Description |
|---|
DaemonStarter() |
| 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 boolean |
isDevelopmentMode() |
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 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 © 2012-2014 Taimos GmbH. All Rights Reserved.