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_WILDCARD
DEFAULT_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, setUp
configure, getEnvironmentVariables, getHandlerId, getProperties, getResourceId, voidCleanUp, voidSetUp
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEnvironmentVariables, getHandlerId, getProperties, getResourceId
protected void configureExtension(ServiceProfile<?> profile) throws InterruptedException, IOException
ProcessCommandScriptHandler
configureExtension
in class ProcessCommandScriptHandler
profile
- the profile of this serviceInterruptedException
- if interrupted in configurationIOException
- if failed to configure this serviceprotected ProcessExecutor getCommandExecutor()
ProcessCommandScriptHandler
getCommandExecutor
in class ProcessCommandScriptHandler
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.