Class IndexTask

java.lang.Object
com.aerospike.client.task.Task
com.aerospike.client.task.IndexTask

public final class IndexTask extends Task
Task used to poll for long running create index completion.
  • Constructor Details

    • IndexTask

      public IndexTask(com.aerospike.client.cluster.Cluster cluster, Policy policy, String namespace, String indexName, boolean isCreate)
      Initialize task with fields needed to query server nodes.
  • Method Details

    • queryStatus

      public int queryStatus()
      Query all nodes for task completion status.
      Specified by:
      queryStatus in class Task
    • buildStatusCommand

      public static String buildStatusCommand(String namespace, String indexName)
    • parseStatusResponse

      public static int parseStatusResponse(String command, String response, boolean isCreate)
    • buildExistsCommand

      public static String buildExistsCommand(String namespace, String indexName)
    • parseExistsResponse

      public static int parseExistsResponse(String command, String response)