Class ClusterJobEmergencyStopTask
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.core.schedulers.clusters.ClusterJobEmergencyStopTask
-
- All Implemented Interfaces:
EmergencyStopTask
public class ClusterJobEmergencyStopTask extends Object implements EmergencyStopTask
This class define an EmergencyStopTask for cluster Jobs.- Since:
- 2.0
- Author:
- Laurent Jourdren
-
-
Constructor Summary
Constructors Constructor Description ClusterJobEmergencyStopTask(ClusterTaskScheduler scheduler, String jobId)
Public constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addHadoopJobEmergencyStopTask(ClusterTaskScheduler scheduler, String jobId)
Add a cluster Job to the EmergencyStopTasks.boolean
equals(Object obj)
int
hashCode()
static void
removeHadoopJobEmergencyStopTask(ClusterTaskScheduler scheduler, String jobId)
Remove a cluster Job to the EmergencyStopTasks.void
stop()
Execute the stop task.
-
-
-
Constructor Detail
-
ClusterJobEmergencyStopTask
public ClusterJobEmergencyStopTask(ClusterTaskScheduler scheduler, String jobId)
Public constructor.- Parameters:
scheduler
- the cluster schedulerjobId
- the job id
-
-
Method Detail
-
stop
public void stop()
Description copied from interface:EmergencyStopTask
Execute the stop task.- Specified by:
stop
in interfaceEmergencyStopTask
-
addHadoopJobEmergencyStopTask
public static void addHadoopJobEmergencyStopTask(ClusterTaskScheduler scheduler, String jobId)
Add a cluster Job to the EmergencyStopTasks.- Parameters:
scheduler
- the cluster schedulerjobId
- the job id
-
removeHadoopJobEmergencyStopTask
public static void removeHadoopJobEmergencyStopTask(ClusterTaskScheduler scheduler, String jobId)
Remove a cluster Job to the EmergencyStopTasks.- Parameters:
scheduler
- the cluster schedulerjobId
- the job id
-
-