|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aerospike.client.Info
public final class Info
Access server's info monitoring 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 at:
https://docs.aerospike.com/display/AS2/Config+Parameters+Reference
Nested Class Summary | |
---|---|
class |
Info.NameValueParser
Parser for responses in name/value pair format: |
Constructor Summary | |
---|---|
Info(com.aerospike.client.cluster.Connection conn)
Send default empty command to server and store results. |
|
Info(com.aerospike.client.cluster.Connection conn,
java.lang.String... commands)
Send multiple commands to server and store results. |
|
Info(com.aerospike.client.cluster.Connection conn,
java.lang.String command)
Send single command to server and store results. |
Method Summary | |
---|---|
byte[] |
getBuffer()
Get response buffer. |
int |
getLength()
Get response length. |
Info.NameValueParser |
getNameValueParser()
Parse response in name/value pair format: |
java.lang.String |
getValue()
Return single value from response buffer. |
static java.util.HashMap<java.lang.String,java.lang.String> |
request(com.aerospike.client.cluster.Connection conn)
Get all the default info from the specified database server node. |
static java.util.HashMap<java.lang.String,java.lang.String> |
request(com.aerospike.client.cluster.Connection conn,
java.lang.String... names)
Get many info values by name from the specified database server node. |
static java.lang.String |
request(com.aerospike.client.cluster.Connection conn,
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> |
request(java.net.InetSocketAddress socketAddress)
Get all the default info from the specified database server node. |
static java.util.HashMap<java.lang.String,java.lang.String> |
request(java.net.InetSocketAddress socketAddress,
java.lang.String... names)
Get many info values by name from the specified database server node. |
static java.lang.String |
request(java.net.InetSocketAddress socketAddress,
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> |
request(java.lang.String hostname,
int port)
Get default info from the specified database server node, using host name and port. |
static java.util.HashMap<java.lang.String,java.lang.String> |
request(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. |
static java.lang.String |
request(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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Info(com.aerospike.client.cluster.Connection conn, java.lang.String command) throws AerospikeException
conn
- connection to server nodecommand
- command sent to server
AerospikeException
public Info(com.aerospike.client.cluster.Connection conn, java.lang.String... commands) throws AerospikeException
conn
- connection to server nodecommands
- commands sent to server
AerospikeException
public Info(com.aerospike.client.cluster.Connection conn) throws AerospikeException
conn
- connection to server node
AerospikeException
Method Detail |
---|
public Info.NameValueParser getNameValueParser()
public java.lang.String getValue()
public static java.lang.String request(java.lang.String hostname, int port, java.lang.String name) throws AerospikeException
hostname
- host nameport
- host portname
- name of value to retrieve
AerospikeException
public static java.util.HashMap<java.lang.String,java.lang.String> request(java.lang.String hostname, int port, java.lang.String... names) throws AerospikeException
hostname
- host nameport
- host portnames
- names of values to retrieve
AerospikeException
public static java.util.HashMap<java.lang.String,java.lang.String> request(java.lang.String hostname, int port) throws AerospikeException
hostname
- host nameport
- host port
AerospikeException
public static java.lang.String request(java.net.InetSocketAddress socketAddress, java.lang.String name) throws AerospikeException
socketAddress
- InetSocketAddress
of server nodename
- name of value to retrieve
AerospikeException
public static java.util.HashMap<java.lang.String,java.lang.String> request(java.net.InetSocketAddress socketAddress, java.lang.String... names) throws AerospikeException
socketAddress
- InetSocketAddress
of server nodenames
- names of values to retrieve
AerospikeException
public static java.util.HashMap<java.lang.String,java.lang.String> request(java.net.InetSocketAddress socketAddress) throws AerospikeException
socketAddress
- InetSocketAddress
of server node
AerospikeException
public static java.lang.String request(com.aerospike.client.cluster.Connection conn, java.lang.String name) throws AerospikeException
conn
- socket connection to server nodename
- name of value to retrieve
AerospikeException
public static java.util.HashMap<java.lang.String,java.lang.String> request(com.aerospike.client.cluster.Connection conn, java.lang.String... names) throws AerospikeException
conn
- socket connection to server nodenames
- names of values to retrieve
AerospikeException
public static java.util.HashMap<java.lang.String,java.lang.String> request(com.aerospike.client.cluster.Connection conn) throws AerospikeException
conn
- socket connection to server node
AerospikeException
public byte[] getBuffer()
public int getLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |