net.citrusleaf
Class CitrusleafInfo

java.lang.Object
  extended by net.citrusleaf.CitrusleafInfo

public class CitrusleafInfo
extends java.lang.Object

Legacy compatibility Layer. This class should only be used for legacy code. Please use com.aerospike.client.Info for new code.

Access Citrusleaf's monitoring protocol - the "Info" protocol.

The info protocol is a name/value pair based system, where an individual database server node is queried to determine its configuration and status. The list of supported names can be found on the Citrusleaf Wiki under the TCP wire protocol specification.

Citrusleaf info values are accessible via a node's host name and port, or directly via its InetSocketAddress.


Constructor Summary
CitrusleafInfo()
           
 
Method Summary
static java.util.HashMap<java.lang.String,java.lang.String> get(java.net.InetSocketAddress isa)
          Get all the default info from the specified database server node.
static java.lang.String get(java.net.InetSocketAddress isa, java.lang.String name)
          Get one info value by name from the specified database server node.
static java.util.HashMap<java.lang.String,java.lang.String> get(java.net.InetSocketAddress isa, java.lang.String[] names)
          Get many info values by name from the specified database server node.
static java.util.HashMap<java.lang.String,java.lang.String> get(java.lang.String hostname, int port)
          Get all the default info from the specified database server node, using host name and port.
static java.lang.String get(java.lang.String hostname, int port, java.lang.String name)
          Get one info value by name from the specified database server node, using host name and port.
static java.util.HashMap<java.lang.String,java.lang.String> get(java.lang.String hostname, int port, java.lang.String[] names)
          Get many info values by name from the specified database server node, using host name and port.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CitrusleafInfo

public CitrusleafInfo()
Method Detail

get

public static java.util.HashMap<java.lang.String,java.lang.String> get(java.lang.String hostname,
                                                                       int port)
Get all the default info from the specified database server node, using host name and port.

Parameters:
hostname - host name
port - host port
Returns:
info name/value pairs

get

public static java.lang.String get(java.lang.String hostname,
                                   int port,
                                   java.lang.String name)
Get one info value by name from the specified database server node, using host name and port.

Parameters:
hostname - host name
port - host port
name - name of value to retrieve
Returns:
info value

get

public static java.util.HashMap<java.lang.String,java.lang.String> get(java.lang.String hostname,
                                                                       int port,
                                                                       java.lang.String[] names)
Get many info values by name from the specified database server node, using host name and port.

Parameters:
hostname - host name
port - host port
names - names of values to retrieve
Returns:
info name/value pairs

get

public static java.util.HashMap<java.lang.String,java.lang.String> get(java.net.InetSocketAddress isa)
Get all the default info from the specified database server node.

Parameters:
isa - InetSocketAddress of server node
Returns:
info name/value pairs

get

public static java.lang.String get(java.net.InetSocketAddress isa,
                                   java.lang.String name)
Get one info value by name from the specified database server node.

Parameters:
isa - InetSocketAddress of server node
name - name of value to retrieve
Returns:
info value

get

public static java.util.HashMap<java.lang.String,java.lang.String> get(java.net.InetSocketAddress isa,
                                                                       java.lang.String[] names)
Get many info values by name from the specified database server node.

Parameters:
isa - InetSocketAddress of server node
names - names of values to retrieve
Returns:
info name/value pairs