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