public class HadoopScript extends Object implements ExecutionScript
ExecutionScript.Kind, ExecutionScript.PlaceholderResolver
ENV_ASAKUSA_HOME, PLACEHOLDER_ARGUMENTS, PLACEHOLDER_EXECUTION_ID, PLACEHOLDER_HOME
Constructor and Description |
---|
HadoopScript(String id,
Set<String> blockerIds,
String className,
Map<String,String> hadoopProperties,
Map<String,String> environmentVariables)
Creates a new instance.
|
HadoopScript(String id,
Set<String> blockerIds,
String className,
Map<String,String> hadoopProperties,
Map<String,String> environmentVariables,
Collection<String> supportedExtensions)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Set<String> |
getBlockerIds()
Returns the IDs representing blockers of this script execution.
|
String |
getClassName()
Returns the target class name.
|
Map<String,String> |
getEnvironmentVariables()
Returns desired environment variables used in this execution.
|
Map<String,String> |
getHadoopProperties()
Returns the extra hadoop properties.
|
String |
getId()
Returns the ID of this script execution.
|
ExecutionScript.Kind |
getKind()
Returns the kind of this script.
|
Set<String> |
getSupportedExtensions()
Returns the supported extension names.
|
int |
hashCode() |
boolean |
isResolved()
Returns whether this script is resolved.
|
HadoopScript |
resolve(ExecutionContext context,
ExecutionScriptHandler<?> handler)
Resolves placeholders defined in this script.
|
String |
toString() |
public HadoopScript(String id, Set<String> blockerIds, String className, Map<String,String> hadoopProperties, Map<String,String> environmentVariables)
resolve(ExecutionContext, ExecutionScriptHandler)
.id
- the script IDblockerIds
- other script IDs blocking this script executionclassName
- fully qualified execution target class namehadoopProperties
- the extra Hadoop propertiesenvironmentVariables
- the extra environment variablesIllegalArgumentException
- if some parameters were null
public HadoopScript(String id, Set<String> blockerIds, String className, Map<String,String> hadoopProperties, Map<String,String> environmentVariables, Collection<String> supportedExtensions)
resolve(ExecutionContext, ExecutionScriptHandler)
.id
- the script IDblockerIds
- other script IDs blocking this script executionclassName
- fully qualified execution target class namehadoopProperties
- the extra Hadoop propertiesenvironmentVariables
- the extra environment variablessupportedExtensions
- the supported extension namesIllegalArgumentException
- if some parameters were null
public ExecutionScript.Kind getKind()
ExecutionScript
getKind
in interface ExecutionScript
public String getId()
ExecutionScript
getId
in interface ExecutionScript
public Set<String> getBlockerIds()
ExecutionScript
getBlockerIds
in interface ExecutionScript
public String getClassName()
public Map<String,String> getHadoopProperties()
public Map<String,String> getEnvironmentVariables()
ExecutionScript
getEnvironmentVariables
in interface ExecutionScript
public Set<String> getSupportedExtensions()
ExecutionScript
getSupportedExtensions
in interface ExecutionScript
public boolean isResolved()
ExecutionScript
isResolved
in interface ExecutionScript
true
for resolved instance, otherwise false
ExecutionScript.resolve(ExecutionContext, ExecutionScriptHandler)
public HadoopScript resolve(ExecutionContext context, ExecutionScriptHandler<?> handler) throws InterruptedException, IOException
ExecutionScript
resolve
in interface ExecutionScript
context
- current contexthandler
- target handlerInterruptedException
- if interrupted while resolving this objectIOException
- if failed to resolve some entryExecutionScript.isResolved()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.