|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ops4j.pax.runner.daemon.Daemon
public class Daemon
The class that runs as Daemon for the Pax Runner. The DaemonLauncher
launches the instance of this class either as an attached or a detached process.
In either case, the instance of this class launches the Pax-Runner and waits
for appropriate shutdown command to be issued on its shutdown port.
The Daemon process terminates either when the Pax-Runner completes execution,
or when a shutdown command is issued via shutdown port.
Field Summary | |
---|---|
static java.lang.String |
PASSWORD_FILE
Configuration option to specify password file, if not specified, the name of the default password file. |
Constructor Summary | |
---|---|
Daemon()
|
Method Summary | |
---|---|
static Daemon |
getInstance()
|
static boolean |
isDaemonStarted()
Determines if any instance of the Daemon is already started. |
void |
load(java.lang.String... args)
Prepares the instance of this class with configurations, before launching the Pax-Runner. |
static void |
main(java.lang.String[] args)
Launches a new Daemon instance, that will bring up the Pax Runner. |
void |
start()
Starts the Daemon - Launches Pax Runner, Opens up shutdown port on which it will listen to shutdown command. |
void |
stop()
Stops the running instance of the Daemon and Pax Runner if any. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PASSWORD_FILE
Constructor Detail |
---|
public Daemon()
Method Detail |
---|
public static void main(java.lang.String[] args)
public static Daemon getInstance()
public static boolean isDaemonStarted()
public void load(java.lang.String... args)
args
- The arguments passed to start this instance.public void start()
public void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |