Class Utils
java.lang.Object
org.springframework.data.aerospike.util.Utils
Utility class containing useful methods for interacting with Aerospike across the entire implementation
- Author:
- peter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringctxArrToString(com.aerospike.client.cdt.CTX[] ctxArr) static com.aerospike.client.exp.Exp.TypegetExpType(com.aerospike.client.Value value) 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 com.aerospike.client.exp.ExpgetValueExpOrFail(com.aerospike.client.Value value, String errMsg) ConvertValuetype toExpstatic 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.static voidlogQualifierDetails(CriteriaDefinition criteria, org.slf4j.Logger logger) static StringvalueToString(com.aerospike.client.Value value)
-
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
-
getValueExpOrFail
public static com.aerospike.client.exp.Exp getValueExpOrFail(com.aerospike.client.Value value, String errMsg) ConvertValuetype toExp- Parameters:
value- Value instanceerrMsg- Error message to use- Returns:
- Exp instance
-
getExpType
public static com.aerospike.client.exp.Exp.Type getExpType(com.aerospike.client.Value value) -
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. -
ctxArrToString
-
logQualifierDetails
-
valueToString
-