Ejemplo n.º 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();
   }
 }
Ejemplo n.º 2
0
 /** used by tests */
 public void clearUnsafe() {
   bootstrapTokens.clear();
   tokenToEndPointMap.clear();
   leavingEndPoints.clear();
   pendingRanges.clear();
 }