public class Launcher extends Object
| Constructor and Description |
|---|
Launcher() |
| Modifier and Type | Method and Description |
|---|---|
ManagedProcess |
launchProcess(NodeAgent agent,
org.apache.uima.ducc.common.NodeIdentity nodeIdentity,
org.apache.uima.ducc.transport.event.common.IDuccProcess process,
org.apache.uima.ducc.transport.cmdline.ICommandLine commandLine,
ProcessLifecycleObserver observer,
ManagedProcess managedProcess)
Submit request to exec a process.
|
void |
launchProcess(String host,
String ip,
org.apache.uima.ducc.transport.cmdline.ICommandLine cmdLine)
This method is used to simulation only.
|
static void |
main(String[] args) |
void |
start(org.apache.uima.ducc.transport.cmdline.ICommandLine cmdLine,
int howMany,
String ip,
String nodeName)
This method is used to launch multiple Agents on the same physical machine.
|
public void start(org.apache.uima.ducc.transport.cmdline.ICommandLine cmdLine,
int howMany,
String ip,
String nodeName)
throws Exception
cmdLine - - defines the command line used to exec Agent processhowMany - - how many Agents to execip - - initial IP address to assign to first Agent instance. Subsequent Agent instances
will have this IP incremented as in XXX.XXX.XXX.XX+1,XXX.XXX.XXX.XX+2, etcnodeName - - name of the physical machine. The Agents will be assigned this name plus
a suffix as in watson-1, watson-2, etcExceptionpublic ManagedProcess launchProcess(NodeAgent agent, org.apache.uima.ducc.common.NodeIdentity nodeIdentity, org.apache.uima.ducc.transport.event.common.IDuccProcess process, org.apache.uima.ducc.transport.cmdline.ICommandLine commandLine, ProcessLifecycleObserver observer, ManagedProcess managedProcess) throws Exception
process - commandLine - Exceptionpublic void launchProcess(String host, String ip, org.apache.uima.ducc.transport.cmdline.ICommandLine cmdLine) throws Exception
Exceptionpublic static void main(String[] args)
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.