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; }
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; }