Deleting a Dump Task

Initialize a DIS SDK client instance named dic. For details, see Initializing a DIS SDK Client Instance.

You can use the DIS SDK to delete a specified dump task. The sample code is available in the TransferTaskDemo.java file under the dis-sdk-demo\src\main\java\com\bigdata\dis\sdk\demo\example directory.

1
2
3
4
5
6
7
DeleteTransferTaskRequest request = new DeleteTransferTaskRequest();

//Configure the name of the stream to which the dump task belongs.
request.setStreamName(streamName);

//Configure the name of the dump task to be deleted.
request.setTransferTaskName(taskName);

After configuring DeleteTransferTaskRequest, you can call the deleteTransferTask method to create the dump task.

1
dic.deleteTransferTask(request);