java.lang.Object
org.springframework.data.aerospike.utility.Utils

public class Utils extends Object
Utility class containing useful methods for interacting with Aerospike across the entire implementation
Author:
peter
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • infoAll

      public static String[] infoAll(com.aerospike.client.IAerospikeClient client, String infoString)
      Issues an "Info" request to all nodes in the cluster.
      Parameters:
      client - An IAerospikeClient.
      infoString - The name of the variable to retrieve.
      Returns:
      An "Info" value for the given variable from all the nodes in the cluster.
    • getReplicationFactor

      public static int getReplicationFactor(com.aerospike.client.cluster.Node[] nodes, String namespace)
    • getRandomNode

      public static com.aerospike.client.cluster.Node getRandomNode(com.aerospike.client.cluster.Node[] nodes)
    • getObjectsCount

      public static long getObjectsCount(com.aerospike.client.cluster.Node node, String namespace, String setName)
    • getIntegerProperty

      public static Optional<Integer> getIntegerProperty(String property)
    • allArrayElementsAreNull

      public static boolean allArrayElementsAreNull(Object[] array)