Exemple #1
0
 private function pathOf($item)
 {
     foreach ($this->itemNames() as $name) {
         $path = "{$this->path}/{$name}";
         if ($item == $this->zookeeper->getData($path)) {
             return $path;
         }
     }
     return null;
 }
Exemple #2
0
 function get($key)
 {
     return $this->zookeeper->getData($this->formatKey($key));
 }