Class Utils
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 Summary
Constructors Constructor Description Utils() -
Method Summary
Modifier and Type Method Description static longgetObjectsCount(com.aerospike.client.cluster.Node node, String namespace, String setName)static com.aerospike.client.cluster.NodegetRandomNode(com.aerospike.client.cluster.Node[] nodes)static intgetReplicationFactor(com.aerospike.client.cluster.Node[] nodes, String namespace)static String[]infoAll(com.aerospike.client.IAerospikeClient client, String infoString)Issues an "Info" request to all nodes in the cluster.
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
infoAll
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
-