public abstract class AbstractCorfuCluster<P extends CorfuClusterParams,U extends UniverseParams> extends Object implements CorfuCluster
Group.GroupParams
Modifier and Type | Field and Description |
---|---|
protected ConcurrentNavigableMap<String,CorfuServer> |
nodes |
protected P |
params |
protected U |
universeParams |
Modifier | Constructor and Description |
---|---|
protected |
AbstractCorfuCluster(P params,
U universeParams) |
Modifier and Type | Method and Description |
---|---|
Node |
add(Node.NodeParams nodeParams) |
protected abstract CorfuServer |
buildCorfuServer(CorfuServerParams nodeParams) |
AbstractCorfuCluster<P,U> |
deploy()
Deploys a
Group , including the following steps:
a) Deploy the Corfu nodes
b) Bootstrap all the nodes to form a cluster |
void |
destroy()
|
protected abstract com.google.common.collect.ImmutableSortedSet<String> |
getClusterLayoutServers() |
LocalCorfuClient |
getLocalCorfuClient()
Provides a corfu client running on local machine
|
<T extends Node> |
getNode(String nodeNameSuffix) |
void |
kill()
Attempt to kills all the nodes in arbitrary order.
|
<T extends Node> |
nodes()
Provide the nodes that the
Group is composed of. |
void |
stop(Duration timeout)
Stop the cluster
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFirstServer, getServerByIndex
protected final ConcurrentNavigableMap<String,CorfuServer> nodes
@NonNull protected final P extends CorfuClusterParams params
@NonNull protected final U extends UniverseParams universeParams
public AbstractCorfuCluster<P,U> deploy()
Group
, including the following steps:
a) Deploy the Corfu nodes
b) Bootstrap all the nodes to form a clusterdeploy
in interface Group
AbstractCorfuCluster
protected abstract CorfuServer buildCorfuServer(CorfuServerParams nodeParams)
public void stop(Duration timeout)
public void kill()
public void destroy()
Group
public Node add(Node.NodeParams nodeParams)
public <T extends Node> com.google.common.collect.ImmutableSortedMap<String,T> nodes()
Group
Group
is composed of.public LocalCorfuClient getLocalCorfuClient()
CorfuCluster
getLocalCorfuClient
in interface CorfuCluster
protected abstract com.google.common.collect.ImmutableSortedSet<String> getClusterLayoutServers()
Copyright © 2019 CorfuDB. All rights reserved.