use of org.apache.hadoop.ozone.container.common.states.endpoint.VersionEndpointTask in project ozone by apache.
the class TestDatanodeUpgradeToScmHA method callVersionEndpointTask.
/**
* Get the cluster ID and SCM ID from SCM to the datanode.
*/
public void callVersionEndpointTask() throws Exception {
try (EndpointStateMachine esm = ContainerTestUtils.createEndpoint(conf, address, 1000)) {
VersionEndpointTask vet = new VersionEndpointTask(esm, conf, dsm.getContainer());
esm.setState(EndpointStateMachine.EndPointStates.GETVERSION);
vet.call();
}
}
Aggregations