Interface Action
-
- All Known Implementing Classes:
AbstractAction,AbstractInfoAction,ClusterExecAction,ClusterTaskAction,CreateDesignAction,CreateHadoopJarAction,ExecAction,ExecJarHadoopAction,FormatsAction,HadoopExecAction,InfoAction,IntegrationTestAction,ModulesAction
public interface ActionThis interface define an action.- Since:
- 1.0
- Author:
- Laurent Jourdren
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaction(List<String> arguments)Execute action.StringgetDescription()Get action description.StringgetName()Get the name of the action.booleanisCurrentArchCompatible()Test if the action can be executed with current platform.booleanisHadoopJarMode()Test if the action can be executed in hadoop Jar mode.booleanisHidden()Test if the action must be hidden from the list of available actions.
-
-
-
Method Detail
-
getName
String getName()
Get the name of the action.- Returns:
- the name of the action
-
getDescription
String getDescription()
Get action description.- Returns:
- the description description
-
action
void action(List<String> arguments)
Execute action.- Parameters:
arguments- arguments of the action.
-
isHadoopJarMode
boolean isHadoopJarMode()
Test if the action can be executed in hadoop Jar mode.- Returns:
- true if the action can be executed in hadoop Jar mode
-
isCurrentArchCompatible
boolean isCurrentArchCompatible()
Test if the action can be executed with current platform.- Returns:
- true if the action can be executed with current platform
-
isHidden
boolean isHidden()
Test if the action must be hidden from the list of available actions.- Returns:
- true if the action must be hidden
-
-