public class Executor
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Executor.LocalInProcFlow |
protected static class |
Executor.LocalInProcStream |
static class |
Executor.LocalOutProcFlow |
static class |
Executor.RemoteContainerDaemonFlow |
static class |
Executor.RemoteFlow |
static class |
Executor.RemoteServicesDaemonFlow |
static interface |
Executor.RunMain |
static class |
Executor.SingleStepFlow |
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Vector<Connection> |
connections |
static boolean |
disableRemote |
static Executor.LocalInProcFlow |
localInProcFlow |
static Executor.LocalOutProcFlow |
localOutProcFlow |
static Executor.RemoteContainerDaemonFlow |
remoteContainerDaemonFlow |
static int |
remoteDaemonForContainersCompletionDelay |
static Executor.RemoteFlow |
remoteFlow |
static Executor.RemoteServicesDaemonFlow |
remoteServicesDaemonFlow |
protected static java.util.Vector<Session> |
sessions |
static Executor.SingleStepFlow |
singleStepFlow |
static java.lang.String |
SYSPROP_COMMAND_NATIVE_SSH |
| Constructor and Description |
|---|
Executor() |
| Modifier and Type | Method and Description |
|---|---|
static void |
local(Executor.RunMain runMain)
The only sense of this is to have a flow for normal java instructions
that may take a while.
|
static void |
localInProc(java.util.Properties properties,
java.lang.String pexpect,
NativeCommand.Listener listener,
Executor.RunMain runMain) |
static void |
localOutProc(java.lang.String command,
boolean foreground,
long maxExecutionTime,
java.lang.String endMark,
NativeCommand.Listener listener) |
static boolean |
remote(boolean nativeSSH,
java.lang.String username,
java.lang.String password,
java.lang.String command,
java.lang.String endMark,
NativeCommand.Listener listener,
java.lang.String host) |
static void |
remoteDaemonEnable(Firestarter fs) |
static java.lang.Exception |
remoteDaemonForContainers(java.lang.String host,
int instance,
boolean startStop,
java.lang.String contName,
java.lang.String contType,
java.lang.String[] contTypeMods,
java.lang.String cmdFlags,
NativeCommand.Listener listener) |
static java.lang.Exception |
remoteDaemonForServices(java.lang.String host,
int instance,
boolean startStop,
java.lang.String cmdFlags,
NativeCommand.Listener listener)
Starts or stops ACS via the ACS services daemon.
|
static void |
remoteDownAll() |
public static boolean disableRemote
public static final java.lang.String SYSPROP_COMMAND_NATIVE_SSH
public static Executor.RemoteFlow remoteFlow
public static Executor.LocalInProcFlow localInProcFlow
public static Executor.LocalOutProcFlow localOutProcFlow
public static Executor.SingleStepFlow singleStepFlow
public static Executor.RemoteServicesDaemonFlow remoteServicesDaemonFlow
public static Executor.RemoteContainerDaemonFlow remoteContainerDaemonFlow
protected static java.util.Vector<Connection> connections
protected static java.util.Vector<Session> sessions
public static int remoteDaemonForContainersCompletionDelay
public static boolean remote(boolean nativeSSH,
java.lang.String username,
java.lang.String password,
java.lang.String command,
java.lang.String endMark,
NativeCommand.Listener listener,
java.lang.String host)
throws java.lang.Throwable
java.io.IOException - - if this failed severelyjava.lang.Throwablepublic static void remoteDownAll()
public static void localInProc(java.util.Properties properties,
java.lang.String pexpect,
NativeCommand.Listener listener,
Executor.RunMain runMain)
properties - the properties to insert (and override) into the system propertiespexpect - as soon as the process writes this to stdout, this method returnslistener - a proprietary listener if the caller wants to hear about the process' outputrunMain - a callback that will be invoked by the newly spawned threadpublic static void local(Executor.RunMain runMain)
runMain - the java instructions to performpublic static void localOutProc(java.lang.String command,
boolean foreground,
long maxExecutionTime,
java.lang.String endMark,
NativeCommand.Listener listener)
throws java.lang.Throwable
java.lang.Throwablepublic static void remoteDaemonEnable(Firestarter fs)
public static java.lang.Exception remoteDaemonForServices(java.lang.String host,
int instance,
boolean startStop,
java.lang.String cmdFlags,
NativeCommand.Listener listener)
public static java.lang.Exception remoteDaemonForContainers(java.lang.String host,
int instance,
boolean startStop,
java.lang.String contName,
java.lang.String contType,
java.lang.String[] contTypeMods,
java.lang.String cmdFlags,
NativeCommand.Listener listener)
startStop - - if true, the daemon starts the container, otherwise stops it. @todo rethink how useful this overloading is.contType - - only needed for starting (i.e. startStop==true)contTypeMods - - only needed for starting (i.e. startStop==true)http://www.eso.org/projects/alma/develop/acs/OnlineDocs/ACS_docs/schemas/urn_schemas-cosylab-com_Container_1.0/complexType/DeployInfo.html