Package com.aerospike.client.task
Class ExecuteTask
java.lang.Object
com.aerospike.client.task.Task
com.aerospike.client.task.ExecuteTask
Task used to poll for long-running server execute job completion.
-
Field Summary
Fields inherited from class com.aerospike.client.task.Task
COMPLETE, IN_PROGRESS, NOT_FOUND -
Constructor Summary
ConstructorsConstructorDescriptionExecuteTask(com.aerospike.client.cluster.Cluster cluster, Policy policy, long taskId, boolean isScan) Initialize task with fields needed to query server nodes.ExecuteTask(com.aerospike.client.cluster.Cluster cluster, Policy policy, Statement statement, long taskId) Initialize task with fields needed to query server nodes. -
Method Summary
Modifier and TypeMethodDescriptionlongReturn task id.intQuery all nodes for task completion status.Methods inherited from class com.aerospike.client.task.Task
isDone, waitTillComplete, waitTillComplete, waitTillComplete
-
Constructor Details
-
ExecuteTask
public ExecuteTask(com.aerospike.client.cluster.Cluster cluster, Policy policy, Statement statement, long taskId) Initialize task with fields needed to query server nodes. -
ExecuteTask
public ExecuteTask(com.aerospike.client.cluster.Cluster cluster, Policy policy, long taskId, boolean isScan) Initialize task with fields needed to query server nodes.
-
-
Method Details
-
getTaskId
public long getTaskId()Return task id. -
queryStatus
Query all nodes for task completion status.- Specified by:
queryStatusin classTask- Throws:
AerospikeException
-