public void becomeCoordinator() { CoordGmsImpl tmp = (CoordGmsImpl) impls.get(COORD); if (tmp == null) { tmp = new CoordGmsImpl(this); tmp.leaving = false; tmp.received_last_view = false; // +++ ? impls.put(COORD, tmp); } setImpl(tmp); }
public void becomeCoordinator() { CoordGmsImpl tmp = (CoordGmsImpl) impls.get(COORD); if (tmp == null) { tmp = new CoordGmsImpl(this); impls.put(COORD, tmp); } try { tmp.init(); } catch (Exception e) { log.error("exception switching to coordinator role", e); } setImpl(tmp); }
@ManagedOperation( description = "Fetches digests from all members and installs them, unblocking blocked members") public void fixDigests() { if (impl instanceof CoordGmsImpl) ((CoordGmsImpl) impl).fixDigests(); }