use of org.apache.helix.participant.DistClusterControllerStateModel in project helix by apache.
the class TestDistControllerStateModel method beforeMethod.
@BeforeMethod()
public void beforeMethod() {
stateModel = new DistClusterControllerStateModel(ZK_ADDR);
if (_gZkClient.exists("/" + clusterName)) {
_gZkClient.deleteRecursively("/" + clusterName);
}
TestHelper.setupEmptyCluster(_gZkClient, clusterName);
}
use of org.apache.helix.participant.DistClusterControllerStateModel in project helix by apache.
the class TestDistControllerStateModelFactory method testDistControllerStateModelFactory.
@Test()
public void testDistControllerStateModelFactory() {
DistClusterControllerStateModelFactory factory = new DistClusterControllerStateModelFactory(zkAddr);
DistClusterControllerStateModel stateModel = factory.createNewStateModel("name", "key");
stateModel.onBecomeStandbyFromOffline(null, null);
}
Aggregations