public void antientropy(){
  ArrayList<Node> candidates=new ArrayList<Node>();
  for (  Node n : clusterConfig.getNodes())   if (rpcService.isConnected(n.getNodeId()))   candidates.add(n);
  int numNodes=candidates.size();
  if (numNodes == 0)   return;
  Node[] nodes=candidates.toArray(new Node[numNodes]);
  int rn=random.nextInt(numNodes);
  antientropy(nodes[rn]);
}

public void antientropy ( ) { ArrayList < Node > candidates = new ArrayList < Node > ( ) ; for ( Node n : clusterConfig . getNodes ( ) ) if ( rpcService . isConnected ( n . getNodeId ( ) ) ) candidates . add ( n ) ; int numNodes = candidates . size ( ) ; if ( numNodes == 0 ) return ; Node [ ] nodes = candidates . toArray ( new Node [ numNodes ] ) ; int rn = random . nextInt ( numNodes ) ; antientropy ( nodes [ rn ] ) ; }
communicate with a random node and do a full synchronization of the all the stores on each node that have the appropriate scope .
