저자: Daniele Alessandri (suppakilla@gmail.com)
 /**
  * Returns a list of nodes from the hashring.
  *
  * @param DistributorInterface $distributor Distributor instance.
  * @param int                  $iterations  Number of nodes to fetch.
  *
  * @return array Nodes from the hashring.
  */
 protected function getNodes(DistributorInterface $distributor, $iterations = 10)
 {
     $nodes = array();
     for ($i = 0; $i < $iterations; ++$i) {
         $hash = $distributor->hash($i * $i);
         $nodes[] = $distributor->getByHash($hash);
     }
     return $nodes;
 }