すべてのプロダクト
Search
ドキュメントセンター

Tablestore:配信タスクの説明をクエリする

最終更新日:Dec 28, 2024

配信タスクを作成した後、DescribeDeliveryTask オペレーションを呼び出して、タスクの説明をクエリできます。

前提条件

パラメーター

リクエストパラメーター

パラメーター

説明

tableName

データテーブルの名前。

taskName

配信タスクの名前。

レスポンスパラメーター

パラメーター

説明

taskConfig

配信タスクの構成情報。

taskSyncStat

配信タスクの同期ステータス。

taskType

配信タスクのタイプ。

次のサンプルコードは、オブジェクトストレージサービス (OSS) の構成や同期ステータスなど、配信タスクの説明をクエリする方法の例を示しています。

public static void describeDeliveryTask(SyncClient client) {
    String tableName = "<TABLE_NAME>";
    String taskName  = "<TASK_NAME>";
    DescribeDeliveryTaskRequest request = new DescribeDeliveryTaskRequest(tableName, taskName);
    DescribeDeliveryTaskResponse response = client.describeDeliveryTask(request);
    System.out.println("resquestID: "+ response.getRequestId());
    System.out.println("traceID: " + response.getTraceId());
    System.out.println("OSSconfig: " + response.getTaskConfig());
    System.out.println("TaskSyncStat: " + response.getTaskSyncStat());
    System.out.println("taskType: " + response.getTaskType());
}