public class CopyJob.CopyTask extends Task<CopyResponse>
Task.TaskStat
Constructor and Description |
---|
CopyTask(List<Route> routes)
Creates a new instance of
CopyJob.CopyTask . |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Task o) |
List<Route> |
getRoutes() |
com.google.common.util.concurrent.ListenableFuture<CopyResponse> |
run(BlockWorkerClient workerClient)
run the task.
|
equals, execute, getJob, getMyRunningWorker, getPriority, getResponseFuture, getTaskId, getTaskStat, hashCode, setJob, setMyRunningWorker, setPriority, toString
public CopyTask(List<Route> routes)
CopyJob.CopyTask
.routes
- pair of source and destination filespublic com.google.common.util.concurrent.ListenableFuture<CopyResponse> run(BlockWorkerClient workerClient)
Task
run
in class Task<CopyResponse>
public int compareTo(Task o)
compareTo
in interface Comparable<Task>
compareTo
in class Task<CopyResponse>
Copyright © 2023. All Rights Reserved.