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

Collaboration diagram for alma::acs::commandcenter::engine::Executor:
Collaboration graph
[legend]

List of all members.

Classes

class  LocalInProcFlow
class  LocalInProcStream
class  LocalOutProcFlow
class  RemoteContainerDaemonFlow
class  RemoteFlow
class  RemoteServicesDaemonFlow
interface  RunMain
class  SearchBuffer
class  SingleStepFlow

Static Public Member Functions

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

Static Public Attributes

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

Static Protected Attributes

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

Static Private Member Functions

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

Static Private Attributes

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

Detailed Description

Author:
mschilli

Member Function Documentation

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

References alma::acs::commandcenter::trace::Flow::failure(), alma::acs::commandcenter::trace::Flow::reset(), alma::acs::commandcenter::engine::Executor::RunMain::runMain(), singleStepFlow, and alma::acs::commandcenter::trace::Flow::success().

static 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

References alma::acs::commandcenter::trace::Flow::failure(), localInProcFlow, alma::acs::commandcenter::trace::Flow::reset(), alma::acs::commandcenter::engine::Executor::RunMain::runMain(), alma::acs::commandcenter::engine::Executor::LocalInProcStream::setConsumer(), alma::acs::commandcenter::engine::Executor::LocalInProcStream::setListener(), and alma::acs::commandcenter::trace::Flow::success().

static void alma::acs::commandcenter::engine::Executor::localOutProc ( String  command,
boolean  foreground,
long  maxExecutionTime,
String  endMark,
NativeCommand.Listener  listener 
) throws Throwable [inline, static]
static boolean alma::acs::commandcenter::engine::Executor::remote ( boolean  nativeSSH,
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

References remoteNative(), and remotePortable().

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

References firestarter.

static Exception 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]
static Exception alma::acs::commandcenter::engine::Executor::remoteDaemonForServices ( String  host,
int  instance,
boolean  startStop,
String  cmdFlags,
NativeCommand.Listener  listener 
) [inline, static]
static void alma::acs::commandcenter::engine::Executor::remoteDownAll (  )  [inline, static]
static void alma::acs::commandcenter::engine::Executor::remoteDownAllNative (  )  [inline, static, private]
static void alma::acs::commandcenter::engine::Executor::remoteDownAllPortable (  )  [inline, static, private]

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

References connections, log, and sessions.

Referenced by remoteDownAll().

static 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]
static 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]

Member Data Documentation

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

Referenced by localInProc().

Referenced by localOutProc(), and remoteNative().

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

Referenced by remoteNative(), and remotePortable().

Referenced by remoteDaemonForServices().

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

Referenced by local().

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

Referenced by remoteNative().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2