Example #1
0
File: Set.php Project: mheydt/scalr
 private function pathOf($item)
 {
     foreach ($this->itemNames() as $name) {
         $path = "{$this->path}/{$name}";
         if ($item == $this->zookeeper->getData($path)) {
             return $path;
         }
     }
     return null;
 }
Example #2
0
 function get($key)
 {
     return $this->zookeeper->getData($this->formatKey($key));
 }