public class Node extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Node.NodeStatus
Node status.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Sequoiadb |
connect()
Connect to current node with the same username and password of coordination node.
|
Sequoiadb |
connect(String username,
String password)
Connect to current node with username and password.
|
void |
disconnect()
Disconnect from current node.
|
String |
getHostName()
Get the hostname of current node.
|
int |
getNodeId() |
String |
getNodeName()
Get the name of current node.
|
int |
getPort()
Get the port of current node.
|
ReplicaGroup |
getReplicaGroup() |
Sequoiadb |
getSdb()
Get the Sequoiadb of current node.
|
void |
start()
Start current node.
|
void |
stop()
Stop current node.
|
public Sequoiadb connect() throws BaseException
BaseException - If error happens.public Sequoiadb connect(String username, String password) throws BaseException
username - user namepassword - pass wordBaseException - If error happens.public void disconnect()
throws BaseException
BaseException - If error happens.public String getHostName()
public int getNodeId()
public String getNodeName()
public int getPort()
public ReplicaGroup getReplicaGroup()
public Sequoiadb getSdb()
connect(),
connect(String, String)public void start()
throws BaseException
BaseException - If error happens.public void stop()
throws BaseException
BaseException - If error happens.Copyright © 2018. All rights reserved.