public void terminateTask(String jobId, String taskId) throws BatchErrorException, IOException {
        terminateTask(jobId, taskId, null);
    }
public void terminateTask ( String jobId , String taskId ) throws BatchErrorException , IOException { terminateTask ( jobId , taskId , null ) ; }
Terminates the specified task.

@param jobId
The ID of the job containing the task.
@param taskId
The ID of the task.
@throws BatchErrorException
Exception thrown when an error response is received from the
Batch service.
@throws IOException
Exception thrown when there is an error in
serialization/deserialization of data sent to/received from the
Batch service.