Class HadoopJobEmergencyStopTask
java.lang.Object
fr.ens.biologie.genomique.eoulsan.util.hadoop.HadoopJobEmergencyStopTask
- All Implemented Interfaces:
EmergencyStopTask
This class define an EmergencyStopTask for Hadoop Jobs.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Constructor Summary
ConstructorsConstructorDescriptionHadoopJobEmergencyStopTask(org.apache.hadoop.mapreduce.Job job) Public constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddHadoopJobEmergencyStopTask(org.apache.hadoop.mapreduce.Job job) Add an Hadoop Job to the EmergencyStopTasks.booleaninthashCode()static voidremoveHadoopJobEmergencyStopTask(org.apache.hadoop.mapreduce.Job job) Remove an Hadoop Job to the EmergencyStopTasks.voidstop()Execute the stop task.
-
Constructor Details
-
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 idInterruptedException- if an error occurs while getting the job id
-
-
Method Details
-
stop
public void stop()Description copied from interface:EmergencyStopTaskExecute the stop task.- Specified by:
stopin interfaceEmergencyStopTask
-
hashCode
public int hashCode() -
equals
-
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 idInterruptedException- 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 idInterruptedException- if an error occurs while getting the job id
-