public class QueueHadoopScriptHandler extends ExecutionScriptHandlerBase implements HadoopScriptHandler
HadoopScript
using Job Queue client.DEFAULT_RESOURCE_ID, ENV_EXTENSION_PREFIX, KEY_ENV_PREFIX, KEY_PROP_PREFIX, KEY_RESOURCE
Constructor and Description |
---|
QueueHadoopScriptHandler() |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp(ExecutionMonitor monitor,
ExecutionContext context)
Cleanup the target environment.
|
protected void |
doConfigure(ServiceProfile<?> profile,
Map<String,String> desiredProperties,
Map<String,String> desiredEnvironmentVariables)
Configures this handler internally (extention point).
|
void |
execute(ExecutionMonitor monitor,
ExecutionContext context,
HadoopScript script)
Executes the specified script.
|
configure, getEnvironmentVariables, getHandlerId, getProperties, getResourceId, setUp, voidCleanUp, voidSetUp
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEnvironmentVariables, getHandlerId, getProperties, getResourceId, setUp
protected void doConfigure(ServiceProfile<?> profile, Map<String,String> desiredProperties, Map<String,String> desiredEnvironmentVariables) throws InterruptedException, IOException
ExecutionScriptHandlerBase
doConfigure
in class ExecutionScriptHandlerBase
profile
- the profile of this servicedesiredProperties
- the current desired system/hadoop properties (configurable)desiredEnvironmentVariables
- the current desired environment variables (configurable)InterruptedException
- if interrupted in configurationIOException
- if failed to configure this servicepublic void execute(ExecutionMonitor monitor, ExecutionContext context, HadoopScript script) throws InterruptedException, IOException
ExecutionScriptHandler
execute
in interface ExecutionScriptHandler<HadoopScript>
monitor
- the progress monitor of the executioncontext
- current execution contextscript
- target scriptInterruptedException
- if the execution was interruptedIOException
- if execution was failedpublic void cleanUp(ExecutionMonitor monitor, ExecutionContext context) throws InterruptedException, IOException
ExecutionScriptHandlerBase
cleanUp
in interface ExecutionScriptHandler<HadoopScript>
cleanUp
in class ExecutionScriptHandlerBase
monitor
- the progress monitor of the operationcontext
- the current execution contextInterruptedException
- if this operation is interruptedIOException
- if failed to setup the target environmentCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.