Interface Action
-
- All Known Implementing Classes:
AbstractAction
,AbstractInfoAction
,ClusterExecAction
,ClusterTaskAction
,CreateDesignAction
,CreateHadoopJarAction
,ExecAction
,ExecJarHadoopAction
,FormatsAction
,HadoopExecAction
,InfoAction
,IntegrationTestAction
,ModulesAction
public interface Action
This interface define an action.- Since:
- 1.0
- Author:
- Laurent Jourdren
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
action(List<String> arguments)
Execute action.String
getDescription()
Get action description.String
getName()
Get the name of the action.boolean
isCurrentArchCompatible()
Test if the action can be executed with current platform.boolean
isHadoopJarMode()
Test if the action can be executed in hadoop Jar mode.boolean
isHidden()
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
-
-