Class Utils
java.lang.Object
org.springframework.data.aerospike.utility.Utils
Utility class containing useful methods for interacting with Aerospike across the entire implementation
- Author:
- peter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
allArrayElementsAreNull
(Object[] array) getIntegerProperty
(String property) static long
getObjectsCount
(com.aerospike.client.cluster.Node node, String namespace, String setName) static com.aerospike.client.cluster.Node
getRandomNode
(com.aerospike.client.cluster.Node[] nodes) static int
getReplicationFactor
(com.aerospike.client.cluster.Node[] nodes, String namespace) static String[]
Issues an "Info" request to all nodes in the cluster.static boolean
isSimpleValueType
(Class<?> type) Checking that at least one of the arguments is of the following type: a primitive or primitive wrapper, an Enum, a String or other CharSequence, a Number, a Date, a Temporal, a UUID, a URI, a URL, a Locale, or a Class.
-
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
-
getRandomNode
public static com.aerospike.client.cluster.Node getRandomNode(com.aerospike.client.cluster.Node[] nodes) -
getObjectsCount
-
getIntegerProperty
-
allArrayElementsAreNull
-
isSimpleValueType
Checking that at least one of the arguments is of the following type: a primitive or primitive wrapper, an Enum, a String or other CharSequence, a Number, a Date, a Temporal, a UUID, a URI, a URL, a Locale, or a Class.
-