Search in sources :

Example 1 with BranchedStore

use of org.neo4j.management.BranchedStore in project neo4j by neo4j.

the class HaBeanIT method shouldAccessHaBeans.

@Test
public void shouldAccessHaBeans() throws Throwable {
    ManagedCluster cluster = clusterRule.startCluster();
    // High Availability bean
    HighAvailability ha = ha(cluster.getMaster());
    assertNotNull("could not get ha bean", ha);
    assertMasterInformation(ha);
    assertMasterAndSlaveInformation(ha.getInstancesInCluster());
    for (ClusterMemberInfo info : ha.getInstancesInCluster()) {
        assertTrue(info.isAlive());
        assertTrue(info.isAvailable());
    }
    // Branched data bean
    BranchedStore bs = beans(cluster.getMaster()).getBranchedStoreBean();
    assertNotNull("could not get branched store bean", bs);
}
Also used : ClusterMemberInfo(org.neo4j.management.ClusterMemberInfo) ManagedCluster(org.neo4j.kernel.impl.ha.ClusterManager.ManagedCluster) HighAvailability(org.neo4j.management.HighAvailability) BranchedStore(org.neo4j.management.BranchedStore) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ManagedCluster (org.neo4j.kernel.impl.ha.ClusterManager.ManagedCluster)1 BranchedStore (org.neo4j.management.BranchedStore)1 ClusterMemberInfo (org.neo4j.management.ClusterMemberInfo)1 HighAvailability (org.neo4j.management.HighAvailability)1