All Products
Search
Document Center

Tablestore:List the names of delivery tasks

Last Updated:May 19, 2022

You can call the ListDeliveryTask operation to list information about all deliver tasks for a table.

Prerequisites

Request parameters

Parameter

Description

tableName

The name of the table.

Response parameters

Parameter

Description

tableName

The name of the table, which is the same as the name of the table in the request.

taskName

The name of the delivery task.

taskType

The type of the delivery task.

Examples

public static void listDeliveryTask(SyncClient client) {
    String tableName = "sampleTable";
    ListDeliveryTaskRequest request = new ListDeliveryTaskRequest(tableName);
    ListDeliveryTaskResponse response = client.listDeliveryTask(request);
    System.out.println("resquestID: "+ response.getRequestId());
    System.out.println("traceID: " + response.getTraceId());
    for(DeliveryTaskInfo taskInfo: response.getTaskInfos()) {
        System.out.println("tableName: " + taskInfo.getTableName());
        System.out.println("taskName: " + taskInfo.getTaskName());
        System.out.println("taskType: " + taskInfo.getTaskType().toString());
    }
}