org.iids.aos
Class Starter
java.lang.Object
org.iids.aos.Starter
public class Starter
- extends java.lang.Object
Used to start a systemservice in the 'new kernel' situation, which no
longer handles process management. The static class method is passed as
parameters the map of systemservice parameters normally given to the old
kernel and a boolean value indicating whether the process should run within
a new VM or within a new thread within the existing VM.
|
Method Summary |
static java.lang.Process |
start(java.util.List<java.lang.String> commands)
Start external process. |
static void |
start(java.util.List<java.lang.String> cmd,
java.util.Map<java.lang.String,java.lang.String> param)
|
static void |
start(java.util.Map<java.lang.String,java.lang.String> param,
boolean newVM)
|
static void |
stop(java.lang.Process p)
|
static void |
stopAll()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Starter
public Starter()
start
public static void start(java.util.Map<java.lang.String,java.lang.String> param,
boolean newVM)
throws java.io.IOException
- Throws:
java.io.IOException
start
public static void start(java.util.List<java.lang.String> cmd,
java.util.Map<java.lang.String,java.lang.String> param)
throws java.io.IOException
- Throws:
java.io.IOException
start
public static java.lang.Process start(java.util.List<java.lang.String> commands)
throws java.io.IOException
- Start external process. Adds process to cleanup list to be removed once
the JVM exists.
- Parameters:
commands - Array of command for process.
- Returns:
- A Process representing the process.
- Throws:
java.io.IOException - Some problem executing the process.
stop
public static void stop(java.lang.Process p)
stopAll
public static void stopAll()
Copyright © 2003, 2004 IIDS Group. All Rights Reserved.