public class BasicCommandTaskInfo extends BasicTaskInfo implements CommandTaskInfo
CommandTaskInfo.ConfigurationResolver
TaskInfo.Phase
Element.Attribute
Constructor and Description |
---|
BasicCommandTaskInfo(String moduleName,
String profileName,
String command,
List<CommandToken> arguments)
Creates a new instance.
|
BasicCommandTaskInfo(String moduleName,
String profileName,
String command,
List<CommandToken> arguments,
CommandTaskInfo.ConfigurationResolver resolver)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
List<CommandToken> |
getArguments()
Returns the raw command arguments.
|
List<CommandToken> |
getArguments(Map<String,String> extraConfigurations)
Returns the command arguments.
|
String |
getCommand()
Returns the command location.
|
String |
getModuleName()
Returns the task module name.
|
String |
getProfileName()
Returns the target profile name.
|
String |
toString() |
addBlocker, getBlockers, setBlockers
addAttribute, getAttributes, setAttributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBlockers
findAttribute, getAttributes
public BasicCommandTaskInfo(String moduleName, String profileName, String command, List<CommandToken> arguments)
moduleName
- the module nameprofileName
- the profile namecommand
- the command patharguments
- the command argumentspublic BasicCommandTaskInfo(String moduleName, String profileName, String command, List<CommandToken> arguments, CommandTaskInfo.ConfigurationResolver resolver)
moduleName
- the module nameprofileName
- the profile namecommand
- the command patharguments
- the command argumentsresolver
- resolves extra configurations (nullable)public String getModuleName()
TaskInfo
getModuleName
in interface CommandTaskInfo
getModuleName
in interface TaskInfo
public String getProfileName()
CommandTaskInfo
getProfileName
in interface CommandTaskInfo
public String getCommand()
CommandTaskInfo
getCommand
in interface CommandTaskInfo
ASAKUSA_HOME
)public List<CommandToken> getArguments()
CommandTaskInfo
getArguments
in interface CommandTaskInfo
public List<CommandToken> getArguments(Map<String,String> extraConfigurations)
CommandTaskInfo
getArguments
in interface CommandTaskInfo
extraConfigurations
- the extra configurations (treated as Hadoop configurations)Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.