Package | Description |
---|---|
org.apache.hadoop.hbase.rest.client |
Modifier and Type | Method and Description |
---|---|
Cluster |
Cluster.add(String node)
Add a node to the cluster
|
Cluster |
Cluster.add(String name,
int port)
Add a node to the cluster
|
Cluster |
Client.getCluster()
Returns the cluster definition
|
Cluster |
Cluster.remove(String node)
Remove a node from the cluster
|
Cluster |
Cluster.remove(String name,
int port)
Remove a node from the cluster
|
Modifier and Type | Method and Description |
---|---|
Response |
Client.delete(Cluster cluster,
String path)
Send a DELETE request
|
Response |
Client.delete(Cluster cluster,
String path,
org.apache.http.Header extraHdr)
Send a DELETE request
|
org.apache.http.HttpResponse |
Client.execute(Cluster cluster,
org.apache.http.client.methods.HttpUriRequest method,
org.apache.http.Header[] headers,
String path)
Execute a transaction method.
|
org.apache.http.HttpResponse |
Client.executePathOnly(Cluster cluster,
org.apache.http.client.methods.HttpUriRequest method,
org.apache.http.Header[] headers,
String path)
Execute a transaction method given only the path.
|
Response |
Client.get(Cluster cluster,
String path)
Send a GET request
|
Response |
Client.get(Cluster c,
String path,
org.apache.http.Header[] headers)
Send a GET request
|
Response |
Client.get(Cluster cluster,
String path,
String accept)
Send a GET request
|
Response |
Client.head(Cluster cluster,
String path,
org.apache.http.Header[] headers)
Send a HEAD request
|
Response |
Client.post(Cluster cluster,
String path,
org.apache.http.Header[] headers,
byte[] content)
Send a POST request
|
Response |
Client.post(Cluster cluster,
String path,
String contentType,
byte[] content)
Send a POST request
|
Response |
Client.post(Cluster cluster,
String path,
String contentType,
byte[] content,
org.apache.http.Header extraHdr)
Send a POST request
|
Response |
Client.put(Cluster cluster,
String path,
org.apache.http.Header[] headers,
byte[] content)
Send a PUT request
|
Response |
Client.put(Cluster cluster,
String path,
String contentType,
byte[] content)
Send a PUT request
|
Response |
Client.put(Cluster cluster,
String path,
String contentType,
byte[] content,
org.apache.http.Header extraHdr)
Send a PUT request
|
void |
Client.setCluster(Cluster cluster) |
Constructor and Description |
---|
Client(Cluster cluster)
Constructor This constructor will create an object using the old faulty load balancing logic.
|
Client(Cluster cluster,
boolean sslEnabled)
Constructor This constructor will create an object using the old faulty load balancing logic.
|
Client(Cluster cluster,
org.apache.hadoop.conf.Configuration conf,
boolean sslEnabled)
Constructor This constructor will create an object using the old faulty load balancing logic.
|
Client(Cluster cluster,
org.apache.hadoop.conf.Configuration conf,
boolean sslEnabled,
Optional<KeyStore> trustStore,
Optional<String> userName,
Optional<String> password,
Optional<String> bearerToken)
Constructor that accepts an optional trustStore and authentication information for either BASIC
or BEARER authentication in sticky mode, which does not use the old faulty load balancing
logic, and enables correct session handling.
|
Client(Cluster cluster,
org.apache.hadoop.conf.Configuration conf,
boolean sslEnabled,
String trustStorePath,
Optional<String> trustStorePassword,
Optional<String> trustStoreType)
Constructor, allowing to define custom trust store (only for SSL connections) This constructor
also enables sticky mode.
|
Client(Cluster cluster,
String trustStorePath,
Optional<String> trustStorePassword,
Optional<String> trustStoreType)
Constructor, allowing to define custom trust store (only for SSL connections) This constructor
will create an object using the old faulty load balancing logic.
|
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.