org.gcube.couchbase.helpers
Class CouchBaseRestHelper
java.lang.Object
org.gcube.couchbase.helpers.CouchBaseRestHelper
public class CouchBaseRestHelper
- extends Object
- Author:
- Alex Antoniadis
|
Method Summary |
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 |
main(String[] args)
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CouchBaseRestHelper
public CouchBaseRestHelper()
createBucket
public static void createBucket(String host,
String port,
String username,
String password,
String bucketName,
Integer replicaNumber)
throws Exception
- Throws:
Exception
createBucket
public static void createBucket(String host,
String port,
String username,
String password,
String bucketName,
Integer ramQuota,
Integer replicaNumber,
Integer proxyPort)
throws Exception
- Throws:
Exception
deleteBucket
public static void deleteBucket(String host,
String port,
String username,
String password,
String bucketName)
throws Exception
- Throws:
Exception
deleteBucketSDK
public static void deleteBucketSDK(String host,
String port,
String username,
String password,
String bucketName)
throws Exception
- Throws:
Exception
failOverNode
public static void failOverNode(String host,
String port,
String username,
String password,
String nodeNamespacedAddress)
throws Exception
- Throws:
Exception
ejectNode
public static void ejectNode(String host,
String port,
String username,
String password,
String nodeNamespacedAddress)
throws Exception
- Throws:
Exception
addNode
public static String addNode(String host,
String port,
String username,
String password,
String nodeIP,
String nodeUsername,
String nodePassword)
throws Exception
- Throws:
Exception
removeNode
public static void removeNode(String host,
String port,
String username,
String password,
String nodeNamespacedAddress)
throws Exception
- Throws:
Exception
removeNode
public static void removeNode(String host,
String port,
String username,
String password,
List<String> nodes,
String nodeNamespacedAddress)
throws Exception
- Throws:
Exception
rebalanceCluster
public static void rebalanceCluster(String host,
String port,
String username,
String password)
throws Exception
- Throws:
Exception
rebalanceCluster
public static void rebalanceCluster(String host,
String port,
String username,
String password,
List<String> nodes)
throws Exception
- Throws:
Exception
rebalanceCluster
public static void rebalanceCluster(String host,
String port,
String username,
String password,
List<String> nodes,
List<String> ejectedNodes)
throws Exception
- Throws:
Exception
getRebalanceProgress
public static org.gcube.couchbase.helpers.CouchBaseRestHelper.Status getRebalanceProgress(String host,
String port,
String username,
String password)
throws Exception
- Throws:
Exception
getClusterNodes
public static List<String> getClusterNodes(String host,
String port,
String username,
String password)
throws Exception
- Throws:
Exception
getClusterNodesAddressesAndPorts
public static Map<String,String> getClusterNodesAddressesAndPorts(String host,
String port,
String username,
String password)
throws Exception
- Throws:
Exception
checkIfBucketExists
public static boolean checkIfBucketExists(String host,
String port,
String username,
String password,
String bucketName)
statusBucketsRestfully
public static void statusBucketsRestfully(String host,
String port,
String username,
String password,
String bucketName)
throws Exception
- Throws:
Exception
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2014. All Rights Reserved.