public interface Group
Node
s that come together to provide a logical service.
The following are the main functionalities provided by this class:
DEPLOY: deploys a Group
representing a collection of Node
-s using
the provided configuration in Group.GroupParams
STOP: stops a Group
gracefully within the provided timeout
KILL: kills a Group
immediately
Modifier and Type | Interface and Description |
---|---|
static interface |
Group.GroupParams |
Modifier and Type | Method and Description |
---|---|
Node |
add(Node.NodeParams nodeParams) |
Group |
deploy()
|
void |
destroy()
|
<T extends Node> |
getNode(String nodeName) |
<T extends Group.GroupParams> |
getParams()
Provides
Group.GroupParams used for configuring a Group |
void |
kill()
|
<T extends Node> |
nodes()
Provide the nodes that the
Group is composed of. |
void |
stop(Duration timeout)
|
void stop(Duration timeout)
Group
by stopping all individual Node
-s of the group.
Must happened within the limit of provided timeout.timeout
- allowed time to gracefully stop the Group
void kill()
void destroy()
Node add(Node.NodeParams nodeParams)
<T extends Group.GroupParams> T getParams()
Group.GroupParams
used for configuring a Group
<T extends Node> com.google.common.collect.ImmutableSortedMap<String,T> nodes()
Group
is composed of.ImmutableList
of Node
s.Copyright © 2019 CorfuDB. All rights reserved.