Пример #1
0
 /** used by tests */
 public void clearUnsafe() {
   lock.writeLock().lock();
   try {
     bootstrapTokens.clear();
     tokenToEndpointMap.clear();
     topology.clear();
     leavingEndpoints.clear();
     pendingRanges.clear();
     endpointToHostIdMap.clear();
     invalidateCachedRings();
   } finally {
     lock.writeLock().unlock();
   }
 }
Пример #2
0
 public void clear() {
   objectsToCommitFirst.clear();
   objectsToCommitSecond.clear();
 }
Пример #3
0
 /** used by tests */
 public void clearUnsafe() {
   bootstrapTokens.clear();
   tokenToEndPointMap.clear();
   leavingEndPoints.clear();
   pendingRanges.clear();
 }
 public void handleShutdown() {
   players.clear();
   uuidMap.clear();
   uuidWrapper = null;
 }