コード例 #1
0
    private LiveOperations populate() {
      liveOperations.clear();

      ClusterService clusterService = nodeEngine.getClusterService();
      liveOperations.initMember(thisAddress);
      for (Member member : clusterService.getMembers()) {
        liveOperations.initMember(member.getAddress());
      }

      for (LiveOperationsTracker tracker :
          serviceManager.getServices(LiveOperationsTracker.class)) {
        tracker.populate(liveOperations);
      }

      return liveOperations;
    }
コード例 #2
0
ファイル: AbstractJoiner.java プロジェクト: Vampire/hazelcast
  private boolean preCheckClusterState(final ClusterService clusterService) {
    final ClusterState initialState = clusterService.getClusterState();
    if (initialState != ClusterState.ACTIVE) {
      logger.warning(
          "Could not prepare cluster state since it has been changed to " + initialState);
      return false;
    }

    return true;
  }