public class Node extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Node.NodeStatus
Node status.
|
Modifier and Type | Method and Description |
---|---|
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 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 © 2023. All rights reserved.