程序包 | 说明 |
---|---|
com.sequoiadb.base |
SequoiaDB Basic API
|
限定符和类型 | 方法和说明 |
---|---|
Node |
ReplicaGroup.attachNode(String hostName,
int port,
BSONObject configure)
Attach node.
|
Node |
ReplicaGroup.createNode(String hostName,
int port,
String dbPath)
Create node.
|
Node |
ReplicaGroup.createNode(String hostName,
int port,
String dbPath,
BSONObject configure)
Create node.
|
Node |
ReplicaGroup.createNode(String hostName,
int port,
String dbPath,
Map<String,String> configure)
已过时。
we have override this api by passing a "BSONObject" instead of a "Map"
|
Node |
ReplicaGroup.getMaster()
Get the master node of current replica group.
|
Node |
ReplicaGroup.getNode(String nodeName)
Get node by node's name (IP:PORT).
|
Node |
ReplicaGroup.getNode(String hostName,
int port)
Get node by hostName and port.
|
Node |
ReplicaGroup.getSlave()
Get the random slave node of current replica group, when have no slave node, return master node.
|
Node |
ReplicaGroup.getSlave(Collection<Integer> positions)
Get the slave node in the specified positions,
when have no slave node in the specified positions, return master node.
|
Node |
ReplicaGroup.getSlave(int... positions)
Get the slave node in the specified positions,
when have no slave node in the specified positions, return master node.
|
Copyright © 2018. All rights reserved.