Example #1
0
 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);
 }
Example #2
0
 @ManagedOperation(
     description =
         "Fetches digests from all members and installs them, unblocking blocked members")
 public void fixDigests() {
   if (impl instanceof CoordGmsImpl) ((CoordGmsImpl) impl).fixDigests();
 }