Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::commandcenter::engine::Executor Class Reference

Collaboration diagram for alma::acs::commandcenter::engine::Executor:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

boolean useNativeSSH ()
boolean killNativeSSH ()
boolean remote (String username, String password, String command, String endMark, NativeCommand.Listener listener, String host) throws Throwable
void remoteDownAll ()
void localInProc (Properties properties, String pexpect, NativeCommand.Listener listener, final RunMain runMain)
void local (final RunMain runMain)
void localOutProc (String command, boolean foreground, long maxExecutionTime, String endMark, NativeCommand.Listener listener) throws Throwable
void remoteDaemonEnable (Firestarter fs)
void remoteDaemonForServices (String host, int instance, boolean startStop, String cmdFlags, NativeCommand.Listener listener)
void remoteDaemonForContainers (String host, int instance, boolean startStop, String contName, String contType, String[] contTypeMods, String cmdFlags, NativeCommand.Listener listener)

Static Public Attributes

boolean disableRemote = false
final String SYSPROP_USE_NATIVE_SSH = "AcsCommandCenter.useNativeSSH"
final String SYSPROP_KILL_NATIVE_SSH = "AcsCommandCenter.killNativeSSH"
final String SYSPROP_COMMAND_NATIVE_SSH = "AcsCommandCenter.commandNativeSSH"
RemoteFlow remoteFlow = new RemoteFlow()
LocalInProcFlow localInProcFlow = new LocalInProcFlow()
LocalOutProcFlow localOutProcFlow = new LocalOutProcFlow()
SingleStepFlow singleStepFlow = new SingleStepFlow()
RemoteServicesDaemonFlow remoteServicesDaemonFlow = new RemoteServicesDaemonFlow()
RemoteContainerDaemonFlow remoteContainerDaemonFlow = new RemoteContainerDaemonFlow()
int remoteDaemonForContainersCompletionDelay = 2500

Static Protected Attributes

Vector< Connection > connections = new Vector<Connection>()
Vector< Session > sessions = new Vector<Session>()

Static Private Member Functions

boolean remotePortable (String username, String password, String command, String endMark, NativeCommand.Listener listener, String host) throws IOException
void remoteDownAllPortable ()
boolean remoteNative (String username, final String password, final String command, String endMark, NativeCommand.Listener listener, String host) throws Throwable
void remoteDownAllNative ()

Static Private Attributes

Logger log = MiscUtils.getPackageLogger(Executor.class)
Vector< NativeCommandremoteNativeTasks = new Vector<NativeCommand>()
Firestarter firestarter

Detailed Description

Author:
mschilli


Member Function Documentation

boolean alma::acs::commandcenter::engine::Executor::killNativeSSH  )  [inline, static]
 

void alma::acs::commandcenter::engine::Executor::local final RunMain  runMain  )  [inline, static]
 

The only sense of this is to have a flow for normal java instructions that may take a while.

Parameters:
runMain the java instructions to perform

void alma::acs::commandcenter::engine::Executor::localInProc Properties  properties,
String  pexpect,
NativeCommand.Listener  listener,
final RunMain  runMain
[inline, static]
 

Parameters:
properties the properties to insert (and override) into the system properties
pexpect as soon as the process writes this to stdout, this method returns
listener a proprietary listener if the caller wants to hear about the process' output
runMain a callback that will be invoked by the newly spawned thread

void alma::acs::commandcenter::engine::Executor::localOutProc String  command,
boolean  foreground,
long  maxExecutionTime,
String  endMark,
NativeCommand.Listener  listener
throws Throwable [inline, static]
 

boolean alma::acs::commandcenter::engine::Executor::remote String  username,
String  password,
String  command,
String  endMark,
NativeCommand.Listener  listener,
String  host
throws Throwable [inline, static]
 

Returns:
false - if this failed gracefully
Exceptions:
IOException - if this failed severely

void alma::acs::commandcenter::engine::Executor::remoteDaemonEnable Firestarter  fs  )  [inline, static]
 

void alma::acs::commandcenter::engine::Executor::remoteDaemonForContainers String  host,
int  instance,
boolean  startStop,
String  contName,
String  contType,
String[]  contTypeMods,
String  cmdFlags,
NativeCommand.Listener  listener
[inline, static]
 

Parameters:
startStop - if true, the daemon starts the container, otherwise stops it.
Todo:
rethink how useful this overloading is.
Parameters:
contType - only needed for starting (i.e. startStop==true)
contTypeMods - only needed for starting (i.e. startStop==true)
See also:
http://www.eso.org/projects/alma/develop/acs/OnlineDocs/ACS_docs/schemas/urn_schemas-cosylab-com_Container_1.0/complexType/DeployInfo.html

void alma::acs::commandcenter::engine::Executor::remoteDaemonForServices String  host,
int  instance,
boolean  startStop,
String  cmdFlags,
NativeCommand.Listener  listener
[inline, static]
 

Starts or stops ACS via the ACS services daemon. This call returns only when the action has completed.

void alma::acs::commandcenter::engine::Executor::remoteDownAll  )  [inline, static]
 

void alma::acs::commandcenter::engine::Executor::remoteDownAllNative  )  [inline, static, private]
 

void alma::acs::commandcenter::engine::Executor::remoteDownAllPortable  )  [inline, static, private]
 

Shuts down all ssh-sessions and -connections that may still be active.

boolean alma::acs::commandcenter::engine::Executor::remoteNative String  username,
final String  password,
final String  command,
String  endMark,
NativeCommand.Listener  listener,
String  host
throws Throwable [inline, static, private]
 

Returns:
false - if this failed gracefully
Exceptions:
Throwable - if this failed severely

boolean alma::acs::commandcenter::engine::Executor::remotePortable String  username,
String  password,
String  command,
String  endMark,
NativeCommand.Listener  listener,
String  host
throws IOException [inline, static, private]
 

Returns:
false - if this failed gracefully
Exceptions:
IOException - if this failed severely

boolean alma::acs::commandcenter::engine::Executor::useNativeSSH  )  [inline, static]
 


Member Data Documentation

Vector<Connection> alma::acs::commandcenter::engine::Executor::connections = new Vector<Connection>() [static, protected]
 

boolean alma::acs::commandcenter::engine::Executor::disableRemote = false [static]
 

Firestarter alma::acs::commandcenter::engine::Executor::firestarter [static, private]
 

LocalInProcFlow alma::acs::commandcenter::engine::Executor::localInProcFlow = new LocalInProcFlow() [static]
 

LocalOutProcFlow alma::acs::commandcenter::engine::Executor::localOutProcFlow = new LocalOutProcFlow() [static]
 

Logger alma::acs::commandcenter::engine::Executor::log = MiscUtils.getPackageLogger(Executor.class) [static, private]
 

RemoteContainerDaemonFlow alma::acs::commandcenter::engine::Executor::remoteContainerDaemonFlow = new RemoteContainerDaemonFlow() [static]
 

int alma::acs::commandcenter::engine::Executor::remoteDaemonForContainersCompletionDelay = 2500 [static]
 

RemoteFlow alma::acs::commandcenter::engine::Executor::remoteFlow = new RemoteFlow() [static]
 

Vector<NativeCommand> alma::acs::commandcenter::engine::Executor::remoteNativeTasks = new Vector<NativeCommand>() [static, private]
 

RemoteServicesDaemonFlow alma::acs::commandcenter::engine::Executor::remoteServicesDaemonFlow = new RemoteServicesDaemonFlow() [static]
 

Vector<Session> alma::acs::commandcenter::engine::Executor::sessions = new Vector<Session>() [static, protected]
 

SingleStepFlow alma::acs::commandcenter::engine::Executor::singleStepFlow = new SingleStepFlow() [static]
 

final String alma::acs::commandcenter::engine::Executor::SYSPROP_COMMAND_NATIVE_SSH = "AcsCommandCenter.commandNativeSSH" [static]
 

final String alma::acs::commandcenter::engine::Executor::SYSPROP_KILL_NATIVE_SSH = "AcsCommandCenter.killNativeSSH" [static]
 

final String alma::acs::commandcenter::engine::Executor::SYSPROP_USE_NATIVE_SSH = "AcsCommandCenter.useNativeSSH" [static]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:51:30 2009 for ACS Java API by doxygen 1.3.8