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, voidSetUpclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEnvironmentVariables, getHandlerId, getProperties, getResourceId, setUpprotected void doConfigure(ServiceProfile<?> profile, Map<String,String> desiredProperties, Map<String,String> desiredEnvironmentVariables) throws InterruptedException, IOException
ExecutionScriptHandlerBasedoConfigure in class ExecutionScriptHandlerBaseprofile - 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
ExecutionScriptHandlerexecute 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
ExecutionScriptHandlerBasecleanUp in interface ExecutionScriptHandler<HadoopScript>cleanUp in class ExecutionScriptHandlerBasemonitor - the progress monitor of the operationcontext - the current execution contextInterruptedException - if this operation is interruptedIOException - if failed to setup the target environmentCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.