
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 void | remoteDaemonForServices (String host, int instance, boolean startStop, String cmdFlags, NativeCommand.Listener listener) |
| static void | 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< NativeCommand > | remoteNativeTasks = new Vector<NativeCommand>() |
| static Firestarter | firestarter |
| 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.
| 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] |
| 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] |
References alma::acs::commandcenter::engine::NativeCommand::addListener(), alma::acs::commandcenter::trace::Flow::failure(), alma::acs::commandcenter::engine::NativeCommand::getExitValue(), alma::acs::commandcenter::engine::NativeCommand::getLatestException(), alma::acs::commandcenter::engine::NativeCommand::getStatus(), localOutProcFlow, log, alma::acs::commandcenter::trace::Flow::reset(), alma::acs::commandcenter::engine::NativeCommand::run(), and alma::acs::commandcenter::trace::Flow::success().
| 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] |
| IOException | - if this failed severely |
References remoteNative(), and remotePortable().
| static void alma::acs::commandcenter::engine::Executor::remoteDaemonEnable | ( | Firestarter | fs | ) | [inline, static] |
References firestarter.
| 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] |
| startStop | - if true, the daemon starts the container, otherwise stops it. |
| contType | - only needed for starting (i.e. startStop==true) | |
| contTypeMods | - only needed for starting (i.e. startStop==true) |
References alma::acs::commandcenter::trace::Flow::failure(), firestarter, alma::acs::commandcenter::meta::Firestarter::giveOrb(), remoteContainerDaemonFlow, remoteDaemonForContainersCompletionDelay, alma::acs::commandcenter::trace::Flow::reset(), alma::acsdaemon::ContainerDaemonOperations::start_container(), alma::acsdaemon::ContainerDaemonOperations::stop_container(), and alma::acs::commandcenter::trace::Flow::success().
| static 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.
References alma::acs::container::corba::AcsCorba::activateOffShoot(), alma::acs::commandcenter::trace::Flow::failure(), firestarter, alma::acs::exceptions::AcsJCompletion::getAcsJException(), alma::acs::container::corba::AcsCorba::getORB(), alma::acs::container::corba::AcsCorba::getRootPOA(), alma::acs::commandcenter::meta::Firestarter::giveAcsCorba(), alma::acs::exceptions::AcsJCompletion::isError(), remoteServicesDaemonFlow, alma::acs::commandcenter::trace::Flow::reset(), alma::acsdaemon::ServicesDaemonOperations::start_acs(), alma::acsdaemon::ServicesDaemonOperations::stop_acs(), and alma::acs::commandcenter::trace::Flow::success().
| static void alma::acs::commandcenter::engine::Executor::remoteDownAll | ( | ) | [inline, static] |
References remoteDownAllNative(), and remoteDownAllPortable().
| static void alma::acs::commandcenter::engine::Executor::remoteDownAllNative | ( | ) | [inline, static, private] |
References log, alma::acs::commandcenter::engine::NativeCommand::process, and remoteNativeTasks.
Referenced by remoteDownAll().
| 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] |
| Throwable | - if this failed severely |
References alma::acs::commandcenter::engine::NativeCommand::addListener(), alma::acs::commandcenter::trace::Flow::failure(), alma::acs::commandcenter::engine::NativeCommand::getExitValue(), alma::acs::commandcenter::engine::NativeCommand::getLatestException(), alma::acs::commandcenter::engine::NativeCommand::getStatus(), localOutProcFlow, log, remoteFlow, remoteNativeTasks, alma::acs::commandcenter::trace::Flow::reset(), alma::acs::commandcenter::engine::NativeCommand::run(), alma::acs::commandcenter::trace::Flow::success(), SYSPROP_COMMAND_NATIVE_SSH, and alma::acs::commandcenter::util::PreparedString::toString().
Referenced by remote().
| 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] |
| IOException | - if this failed severely |
References alma::acs::commandcenter::engine::Executor::SearchBuffer::add(), connections, alma::acs::commandcenter::trace::Flow::failure(), log, remoteFlow, alma::acs::commandcenter::trace::Flow::reset(), sessions, and alma::acs::commandcenter::trace::Flow::success().
Referenced by remote().
Vector<Connection> alma::acs::commandcenter::engine::Executor::connections = new Vector<Connection>() [static, protected] |
Referenced by remoteDownAllPortable(), and remotePortable().
boolean alma::acs::commandcenter::engine::Executor::disableRemote = false [static] |
Firestarter alma::acs::commandcenter::engine::Executor::firestarter [static, private] |
Referenced by remoteDaemonEnable(), remoteDaemonForContainers(), and remoteDaemonForServices().
LocalInProcFlow alma::acs::commandcenter::engine::Executor::localInProcFlow = new LocalInProcFlow() [static] |
Referenced by localInProc().
LocalOutProcFlow alma::acs::commandcenter::engine::Executor::localOutProcFlow = new LocalOutProcFlow() [static] |
Referenced by localOutProc(), and remoteNative().
Logger alma::acs::commandcenter::engine::Executor::log = MiscUtils.getPackageLogger(Executor.class) [static, private] |
Referenced by localOutProc(), remoteDownAllNative(), remoteDownAllPortable(), remoteNative(), and remotePortable().
RemoteContainerDaemonFlow alma::acs::commandcenter::engine::Executor::remoteContainerDaemonFlow = new RemoteContainerDaemonFlow() [static] |
Referenced by remoteDaemonForContainers().
int alma::acs::commandcenter::engine::Executor::remoteDaemonForContainersCompletionDelay = 2500 [static] |
Referenced by remoteDaemonForContainers().
RemoteFlow alma::acs::commandcenter::engine::Executor::remoteFlow = new RemoteFlow() [static] |
Referenced by remoteNative(), and remotePortable().
Vector<NativeCommand> alma::acs::commandcenter::engine::Executor::remoteNativeTasks = new Vector<NativeCommand>() [static, private] |
Referenced by remoteDownAllNative(), and remoteNative().
RemoteServicesDaemonFlow alma::acs::commandcenter::engine::Executor::remoteServicesDaemonFlow = new RemoteServicesDaemonFlow() [static] |
Referenced by remoteDaemonForServices().
Vector<Session> alma::acs::commandcenter::engine::Executor::sessions = new Vector<Session>() [static, protected] |
Referenced by remoteDownAllPortable(), and remotePortable().
SingleStepFlow alma::acs::commandcenter::engine::Executor::singleStepFlow = new SingleStepFlow() [static] |
Referenced by local().
final String alma::acs::commandcenter::engine::Executor::SYSPROP_COMMAND_NATIVE_SSH = "AcsCommandCenter.commandNativeSSH" [static] |
Referenced by remoteNative().
1.6.2