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

    Modifier and Type
    Method
    Description
    void
    action(List<String> arguments)
    Execute action.
    Get action description.
    Get the name of the action.
    boolean
    Test if the action can be executed with current platform.
    boolean
    Test if the action can be executed in hadoop Jar mode.
    boolean
    Test if the action must be hidden from the list of available actions.
  • Method Details

    • 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