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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanallArrayElementsAreNull(Object[] array) getIntegerProperty(String property) 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[]Issues an "Info" request to all nodes in the cluster.static booleanisSimpleValueType(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.
-