public class BasicCommandScriptHandler extends ProcessCommandScriptHandler
CommandScriptHandler using local processes.
# <position> = 0, 1, 2, ...
# <prefix command token> can contain "@[position],"
# this will be replaced as original command tokens (0-origin position)
command.<profile-name> = <this class name>
command.<profile-name>.env.ASAKUSA_HOME = ${ASAKUSA_HOME}
command.<profile-name>.command.<position> = $<prefix command token>
command.<profile-name>.env.<key> = $<extra environment variables>
PROFILE_WILDCARDDEFAULT_RESOURCE_ID, ENV_EXTENSION_PREFIX, KEY_ENV_PREFIX, KEY_PROP_PREFIX, KEY_RESOURCE| Constructor and Description |
|---|
BasicCommandScriptHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureExtension(ServiceProfile<?> profile)
Configures this handler internally (extension point).
|
protected ProcessExecutor |
getCommandExecutor()
Returns command executor for this handler (extension point).
|
cleanUp, doConfigure, execute, setUpconfigure, getEnvironmentVariables, getHandlerId, getProperties, getResourceId, voidCleanUp, voidSetUpclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEnvironmentVariables, getHandlerId, getProperties, getResourceIdprotected void configureExtension(ServiceProfile<?> profile) throws InterruptedException, IOException
ProcessCommandScriptHandlerconfigureExtension in class ProcessCommandScriptHandlerprofile - the profile of this serviceInterruptedException - if interrupted in configurationIOException - if failed to configure this serviceprotected ProcessExecutor getCommandExecutor()
ProcessCommandScriptHandlergetCommandExecutor in class ProcessCommandScriptHandlerCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.