Class InternalTestCluster.RestartCallback
java.lang.Object
org.opensearch.test.InternalTestCluster.RestartCallback
- Enclosing class:
InternalTestCluster
An abstract class that is called during
InternalTestCluster.rollingRestart(InternalTestCluster.RestartCallback)
and / or InternalTestCluster.fullRestart(InternalTestCluster.RestartCallback) to execute actions at certain
stages of the restart.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf this returnstrueall data for the node with the given node name will be cleared including gateways and all index data.voiddoAfterNodes(int n, org.opensearch.transport.client.Client client) Executed for each node before then + 1node is restarted.voidorg.opensearch.common.settings.SettingsonNodeStopped(String nodeName) Executed once the give node name has been stopped.booleanreturns true if the restart should also validate the cluster has reformed
-
Constructor Details
-
RestartCallback
public RestartCallback()
-
-
Method Details
-
onNodeStopped
-
onAllNodesStopped
-
doAfterNodes
-
clearData
If this returnstrueall data for the node with the given node name will be cleared including gateways and all index data. Returnsfalseby default. -
validateClusterForming
public boolean validateClusterForming()returns true if the restart should also validate the cluster has reformed
-