public class EclipseDaemon extends Object
EclipseStarter
Also see
Constructor and Description |
---|
EclipseDaemon() |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
isExitOnError()
Check if the starter should exit the VM in case the
start(String[]) method failed to start the framework |
static void |
main(String[] args)
This method starts OSGi container, but does not return as long as the
container is active
|
static void |
start(String[] args)
This method starts OSGi container, and returns immediately
|
static void |
stop()
The method shuts down the framework
|
static void |
stop(String[] args)
Stop the framework
|
public static void main(String[] args) throws Exception
args
- arguments for the starterException
- if anything goes wrongpublic static void start(String[] args) throws Exception
The method will actually fork a thread and run the started method from
inside the thread. If the framework fails the method checks
isExitOnError()
on how to proceed. If isExitOnError()
returns true
then the method will call
System.exit(int)
with a negative return value (-1). Otherwise
only the thread starting the framework will shut down.
args
- arguments for the starterException
- if anything goes wrongprotected static boolean isExitOnError()
start(String[])
method failed to start the framework
The method checks the system property
org.eclipse.scada.utils.osgi.daemon.exitOnError
. If it is
not set the method will return true
.
Otherwise the evaluate the value of the system property using
Boolean.parseBoolean(String)
.
public static void stop() throws Exception
The framework could have been started by start(String[])
or
main(String[])
.
Exception
- if anything goes wrongCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.