public class ManagementView extends AbstractView
Created by zlokhandwala on 11/20/17.
Constructor and Description |
---|
ManagementView(CorfuRuntime runtime) |
Modifier and Type | Method and Description |
---|---|
void |
addNode(String endpointToAdd,
int retry,
Duration timeout,
Duration pollPeriod)
Add a new node to the existing cluster.
|
void |
forceRemoveNode(String endpointToRemove,
int retry,
Duration timeout,
Duration pollPeriod)
Force remove a node from the cluster.
|
ClusterStatusReport |
getClusterStatus()
Get the Cluster Status.
|
void |
healNode(String endpointToHeal,
int retry,
Duration timeout,
Duration pollPeriod)
Heal an unresponsive node.
|
void |
mergeSegments(String endpointToRestoreRedundancy,
int retry,
Duration timeout,
Duration pollPeriod)
Restore redundancy and merge all split segments.
|
void |
removeNode(String endpointToRemove,
int retry,
Duration timeout,
Duration pollPeriod)
Remove a node from the cluster.
|
getCurrentLayout, layoutHelper, layoutHelper
public ManagementView(@NonNull CorfuRuntime runtime)
public void removeNode(@Nonnull String endpointToRemove, int retry, @Nonnull Duration timeout, @Nonnull Duration pollPeriod)
endpointToRemove
- Endpoint of the node to be removed from the cluster.retry
- the number of times to retry a workflow if it failstimeout
- total time to wait before the workflow times outpollPeriod
- the poll interval to check whether a workflow completed or notWorkflowResultUnknownException
- when the side affect of the operation
can't be determinedWorkflowException
- when the remove operation failspublic void forceRemoveNode(@Nonnull String endpointToRemove, int retry, @Nonnull Duration timeout, @Nonnull Duration pollPeriod)
endpointToRemove
- Endpoint of the node to be removed from the cluster.retry
- the number of times to retry a workflow if it failstimeout
- total time to wait before the workflow times outpollPeriod
- the poll interval to check whether a workflow completed or notWorkflowResultUnknownException
- when the side affect of the operation
can't be determinedWorkflowException
- when the remove operation failspublic void addNode(@Nonnull String endpointToAdd, int retry, @Nonnull Duration timeout, @Nonnull Duration pollPeriod)
endpointToAdd
- Endpoint of the new node to be added to the cluster.retry
- the number of times to retry a workflow if it failstimeout
- total time to wait before the workflow times outpollPeriod
- the poll interval to check whether a workflow completed or notWorkflowResultUnknownException
- when the side affect of the operation
can't be determinedpublic void healNode(@Nonnull String endpointToHeal, int retry, @Nonnull Duration timeout, @Nonnull Duration pollPeriod)
endpointToHeal
- Endpoint of the new node to be healed in the cluster.retry
- the number of times to retry a workflow if it failstimeout
- total time to wait before the workflow times outpollPeriod
- the poll interval to check whether a workflow completed or notWorkflowResultUnknownException
- when the side affect of the operation
can't be determinedpublic void mergeSegments(@Nonnull String endpointToRestoreRedundancy, int retry, @Nonnull Duration timeout, @Nonnull Duration pollPeriod)
endpointToRestoreRedundancy
- Endpoint whose redundancy is to be restored.retry
- the number of times to retry a workflow if it failstimeout
- total time to wait before the workflow times outpollPeriod
- the poll interval to check whether a workflow completed or notWorkflowResultUnknownException
- when the side affect of the operation
can't be determinedpublic ClusterStatusReport getClusterStatus()
Copyright © 2019 CorfuDB. All rights reserved.