public class CouchBaseRestHelper extends Object
| Constructor and Description |
|---|
CouchBaseRestHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
addNode(String host,
String port,
String username,
String password,
String nodeIP,
String nodeUsername,
String nodePassword) |
static boolean |
checkIfBucketExists(String host,
String port,
String username,
String password,
String bucketName) |
static void |
createBucket(String host,
String port,
String username,
String password,
String bucketName,
Integer replicaNumber) |
static void |
createBucket(String host,
String port,
String username,
String password,
String bucketName,
Integer ramQuota,
Integer replicaNumber,
Integer proxyPort) |
static void |
deleteBucket(String host,
String port,
String username,
String password,
String bucketName) |
static void |
deleteBucketSDK(String host,
String port,
String username,
String password,
String bucketName) |
static void |
ejectNode(String host,
String port,
String username,
String password,
String nodeNamespacedAddress) |
static void |
failOverNode(String host,
String port,
String username,
String password,
String nodeNamespacedAddress) |
static List<String> |
getClusterNodes(String host,
String port,
String username,
String password) |
static Map<String,String> |
getClusterNodesAddressesAndPorts(String host,
String port,
String username,
String password) |
static org.gcube.couchbase.helpers.CouchBaseRestHelper.Status |
getRebalanceProgress(String host,
String port,
String username,
String password) |
static void |
rebalanceCluster(String host,
String port,
String username,
String password) |
static void |
rebalanceCluster(String host,
String port,
String username,
String password,
List<String> nodes) |
static void |
rebalanceCluster(String host,
String port,
String username,
String password,
List<String> nodes,
List<String> ejectedNodes) |
static void |
removeNode(String host,
String port,
String username,
String password,
List<String> nodes,
String nodeNamespacedAddress) |
static void |
removeNode(String host,
String port,
String username,
String password,
String nodeNamespacedAddress) |
static void |
statusBucketsRestfully(String host,
String port,
String username,
String password,
String bucketName) |
public static void createBucket(String host, String port, String username, String password, String bucketName, Integer replicaNumber) throws Exception
Exceptionpublic static void createBucket(String host, String port, String username, String password, String bucketName, Integer ramQuota, Integer replicaNumber, Integer proxyPort) throws Exception
Exceptionpublic static void deleteBucket(String host, String port, String username, String password, String bucketName) throws Exception
Exceptionpublic static void deleteBucketSDK(String host, String port, String username, String password, String bucketName) throws Exception
Exceptionpublic static void failOverNode(String host, String port, String username, String password, String nodeNamespacedAddress) throws Exception
Exceptionpublic static void ejectNode(String host, String port, String username, String password, String nodeNamespacedAddress) throws Exception
Exceptionpublic static String addNode(String host, String port, String username, String password, String nodeIP, String nodeUsername, String nodePassword) throws Exception
Exceptionpublic static void removeNode(String host, String port, String username, String password, String nodeNamespacedAddress) throws Exception
Exceptionpublic static void removeNode(String host, String port, String username, String password, List<String> nodes, String nodeNamespacedAddress) throws Exception
Exceptionpublic static void rebalanceCluster(String host, String port, String username, String password) throws Exception
Exceptionpublic static void rebalanceCluster(String host, String port, String username, String password, List<String> nodes) throws Exception
Exceptionpublic static void rebalanceCluster(String host, String port, String username, String password, List<String> nodes, List<String> ejectedNodes) throws Exception
Exceptionpublic static org.gcube.couchbase.helpers.CouchBaseRestHelper.Status getRebalanceProgress(String host, String port, String username, String password) throws Exception
Exceptionpublic static List<String> getClusterNodes(String host, String port, String username, String password) throws Exception
Exceptionpublic static Map<String,String> getClusterNodesAddressesAndPorts(String host, String port, String username, String password) throws Exception
Exceptionpublic static boolean checkIfBucketExists(String host, String port, String username, String password, String bucketName)
Copyright © 2013. All Rights Reserved.