public class OverlordClientImpl extends Object implements OverlordClient
OverlordClient.| Constructor and Description |
|---|
OverlordClientImpl(ServiceClient client,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<Void> |
cancelTask(String taskId) |
com.google.common.util.concurrent.ListenableFuture<Void> |
runTask(String taskId,
Object taskObject) |
com.google.common.util.concurrent.ListenableFuture<TaskPayloadResponse> |
taskPayload(String taskId) |
com.google.common.util.concurrent.ListenableFuture<Map<String,Object>> |
taskReportAsMap(String taskId) |
com.google.common.util.concurrent.ListenableFuture<TaskStatusResponse> |
taskStatus(String taskId) |
com.google.common.util.concurrent.ListenableFuture<Map<String,TaskStatus>> |
taskStatuses(Set<String> taskIds) |
OverlordClientImpl |
withRetryPolicy(ServiceRetryPolicy retryPolicy) |
public OverlordClientImpl(ServiceClient client, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
public com.google.common.util.concurrent.ListenableFuture<Void> runTask(String taskId, Object taskObject)
runTask in interface OverlordClientpublic com.google.common.util.concurrent.ListenableFuture<Void> cancelTask(String taskId)
cancelTask in interface OverlordClientpublic com.google.common.util.concurrent.ListenableFuture<Map<String,TaskStatus>> taskStatuses(Set<String> taskIds)
taskStatuses in interface OverlordClientpublic com.google.common.util.concurrent.ListenableFuture<TaskStatusResponse> taskStatus(String taskId)
taskStatus in interface OverlordClientpublic com.google.common.util.concurrent.ListenableFuture<Map<String,Object>> taskReportAsMap(String taskId)
taskReportAsMap in interface OverlordClientpublic com.google.common.util.concurrent.ListenableFuture<TaskPayloadResponse> taskPayload(String taskId)
taskPayload in interface OverlordClientpublic OverlordClientImpl withRetryPolicy(ServiceRetryPolicy retryPolicy)
withRetryPolicy in interface OverlordClientCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.