Search in sources :

Example 1 with DistClusterControllerStateModel

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);
}
Also used : DistClusterControllerStateModel(org.apache.helix.participant.DistClusterControllerStateModel) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 2 with DistClusterControllerStateModel

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);
}
Also used : DistClusterControllerStateModel(org.apache.helix.participant.DistClusterControllerStateModel) DistClusterControllerStateModelFactory(org.apache.helix.participant.DistClusterControllerStateModelFactory) Test(org.testng.annotations.Test)

Aggregations

DistClusterControllerStateModel (org.apache.helix.participant.DistClusterControllerStateModel)2 DistClusterControllerStateModelFactory (org.apache.helix.participant.DistClusterControllerStateModelFactory)1 BeforeMethod (org.testng.annotations.BeforeMethod)1 Test (org.testng.annotations.Test)1