public interface CorfuServer extends Node, Comparable<CorfuServer>
Modifier and Type | Interface and Description |
---|---|
static class |
CorfuServer.Mode |
static class |
CorfuServer.Persistence |
Node.NodeParams<T>, Node.NodeType
Modifier and Type | Method and Description |
---|---|
CorfuServer |
deploy()
Deploys a specific node into the
Universe . |
void |
disconnect()
Symmetrically disconnect a CorfuServer from the cluster,
which creates a complete partition.
|
void |
disconnect(List<CorfuServer> servers)
Symmetrically disconnect a CorfuServer from a list of other servers,
which creates a partial partition.
|
default String |
getEndpoint() |
String |
getIpAddress() |
String |
getNetworkInterface() |
CorfuServerParams |
getParams() |
void |
pause()
Pause a CorfuServer
|
void |
reconnect()
Reconnect a
CorfuServer to the cluster |
void |
reconnect(List<CorfuServer> servers)
Reconnect a
CorfuServer to the list of servers |
void |
restart()
Restart a
CorfuServer |
void |
resume()
Resume a
CorfuServer |
void |
start()
Start a
CorfuServer |
compareTo
CorfuServer deploy()
Node
Universe
.CorfuServerParams getParams()
void disconnect()
NodeException
- thrown in case of unsuccessful disconnect.void disconnect(List<CorfuServer> servers)
servers
- List of servers to disconnect fromNodeException
- thrown in case of unsuccessful disconnect.void pause()
NodeException
- thrown in case of unsuccessful pause.void restart()
CorfuServer
NodeException
- this exception will be thrown if the node can not be restartedvoid start()
CorfuServer
NodeException
- this exception will be thrown if the node can not be startedvoid reconnect()
CorfuServer
to the clusterNodeException
- this exception will be thrown if the node can not be reconnectedvoid reconnect(List<CorfuServer> servers)
CorfuServer
to the list of serversservers
- List of servers to reconnect.NodeException
- this exception will be thrown if the node can not be reconnectedvoid resume()
CorfuServer
NodeException
- this exception will be thrown if the node can not be unpausedString getIpAddress()
String getNetworkInterface()
default String getEndpoint()
Copyright © 2019 CorfuDB. All rights reserved.