Package com.splout.db.hazelcast

Examples of com.splout.db.hazelcast.DistributedRegistry$MyListener


  @Override
  public void giveGreenLigth() {
    int minutesToCheckRegister = config.getInt(HazelcastProperties.MAX_TIME_TO_CHECK_REGISTRATION, 5);
    int oldestMembersLeading = config.getInt(HazelcastProperties.OLDEST_MEMBERS_LEADING_COUNT, 3);

    dnodesRegistry = new DistributedRegistry(CoordinationStructures.DNODES, new DNodeInfo(config), hz,
        minutesToCheckRegister, oldestMembersLeading);
    dnodesRegistry.register();
  }
View Full Code Here


      // Assert that this DNode is registered for failover
      HazelcastInstance hz = Hazelcast.newHazelcastInstance(HazelcastConfigBuilder.build(testConfig));
      final CoordinationStructures coord = new CoordinationStructures(hz);
      // We need to implement the {@link com.splout.db.hazelcast.DistributedRegistry} for members to be
      // automatically removed from the DNODES map
      new DistributedRegistry(CoordinationStructures.DNODES, new DNodeInfo(testConfig), hz, 10, 3);

      new TestUtils.NotWaitingForeverCondition() {
        @Override
        public boolean endCondition() {
          boolean registered = false;
View Full Code Here

TOP

Related Classes of com.splout.db.hazelcast.DistributedRegistry$MyListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.