public class ReplicaGroup extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
Node |
createNode(String hostName,
int port,
String dbPath,
Map<String,String> configure) |
BSONObject |
getDetail() |
String |
getGroupName() |
int |
getId() |
Node |
getMaster() |
Node |
getNode(String nodeName) |
Node |
getNode(String hostName,
int port) |
int |
getNodeNum(Node.NodeStatus status) |
Sequoiadb |
getSequoiadb() |
Node |
getSlave() |
boolean |
isCatalog() |
void |
removeNode(String hostName,
int port,
BSONObject configure) |
void |
start() |
void |
stop() |
public Sequoiadb getSequoiadb()
public int getId()
public String getGroupName()
public int getNodeNum(Node.NodeStatus status) throws BaseException
status - Node.NodeStatusBaseExceptionpublic BSONObject getDetail() throws BaseException
BaseExceptionpublic Node getMaster() throws BaseException
BaseExceptionpublic Node getSlave() throws BaseException
BaseExceptionpublic Node getNode(String nodeName) throws BaseException
nodeName - The name of the nodeBaseExceptionpublic Node getNode(String hostName, int port) throws BaseException
hostName - host nameport - portBaseExceptionpublic Node createNode(String hostName, int port, String dbPath, Map<String,String> configure) throws BaseException
hostName - host nameport - portdbPath - the path for nodeconfigure - configuration for this operationBaseExceptionpublic void removeNode(String hostName, int port, BSONObject configure) throws BaseException
hostName - host nameport - portconfigure - configuration for this operationBaseExceptionpublic void start()
throws BaseException
BaseExceptionpublic void stop()
throws BaseException
BaseExceptionpublic boolean isCatalog()
Copyright © 2015. All Rights Reserved.