public final class IndexTask extends Task
COMPLETE, IN_PROGRESS, NOT_FOUND| Constructor and Description |
|---|
IndexTask(com.aerospike.client.cluster.Cluster cluster,
Policy policy,
String namespace,
String indexName,
boolean isCreate)
Initialize task with fields needed to query server nodes.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
buildExistsCommand(String namespace,
String indexName) |
static String |
buildStatusCommand(String namespace,
String indexName) |
static int |
parseExistsResponse(String command,
String response) |
static int |
parseStatusResponse(String command,
String response,
boolean isCreate) |
int |
queryStatus()
Query all nodes for task completion status.
|
isDone, waitTillComplete, waitTillComplete, waitTillCompletepublic int queryStatus()
queryStatus in class Taskpublic static int parseStatusResponse(String command, String response, boolean isCreate)
Copyright © 2012–2024 Aerospike, Inc. All rights reserved.