示例#1
0
文件: GMS.java 项目: jtoerber/JGroups
 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);
 }
示例#2
0
文件: GMS.java 项目: jtoerber/JGroups
 @ManagedOperation(
     description =
         "Fetches digests from all members and installs them, unblocking blocked members")
 public void fixDigests() {
   if (impl instanceof CoordGmsImpl) ((CoordGmsImpl) impl).fixDigests();
 }