Class HadoopJobEmergencyStopTask

  • All Implemented Interfaces:
    EmergencyStopTask

    public class HadoopJobEmergencyStopTask
    extends Object
    implements EmergencyStopTask
    This class define an EmergencyStopTask for Hadoop Jobs.
    Since:
    2.0
    Author:
    Laurent Jourdren
    • Constructor Detail

      • HadoopJobEmergencyStopTask

        public HadoopJobEmergencyStopTask​(org.apache.hadoop.mapreduce.Job job)
                                   throws IOException,
                                          InterruptedException
        Public constructor.
        Parameters:
        job - the Hadoop job
        Throws:
        IOException - if an error occurs while getting the job id
        InterruptedException - if an error occurs while getting the job id
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • addHadoopJobEmergencyStopTask

        public static void addHadoopJobEmergencyStopTask​(org.apache.hadoop.mapreduce.Job job)
                                                  throws IOException,
                                                         InterruptedException
        Add an Hadoop Job to the EmergencyStopTasks.
        Parameters:
        job - the Hadoop job
        Throws:
        IOException - if an error occurs while getting the job id
        InterruptedException - if an error occurs while getting the job id
      • removeHadoopJobEmergencyStopTask

        public static void removeHadoopJobEmergencyStopTask​(org.apache.hadoop.mapreduce.Job job)
                                                     throws IOException,
                                                            InterruptedException
        Remove an Hadoop Job to the EmergencyStopTasks.
        Parameters:
        job - the Hadoop job
        Throws:
        IOException - if an error occurs while getting the job id
        InterruptedException - if an error occurs while getting the job id