@Override public void run0() { LiveOperations result = populate(); Set<Address> addresses = result.addresses(); if (logger.isFinestEnabled()) { logger.finest("Broadcasting operation heartbeats to: " + addresses.size() + " members"); } for (Address address : addresses) { sendHeartbeats(address, result.callIds(address)); } }
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; }