org.I0Itec.zkclient
Interface IZkConnection

All Known Implementing Classes:
InMemoryConnection, ZkConnection

public interface IZkConnection


Method Summary
 void close()
           
 void connect(org.apache.zookeeper.Watcher watcher)
           
 String create(String path, byte[] data, org.apache.zookeeper.CreateMode mode)
           
 void delete(String path)
           
 boolean exists(String path, boolean watch)
           
 List<String> getChildren(String path, boolean watch)
           
 long getCreateTime(String path)
           
 String getServers()
           
 org.apache.zookeeper.ZooKeeper.States getZookeeperState()
           
 byte[] readData(String path, org.apache.zookeeper.data.Stat stat, boolean watch)
           
 void writeData(String path, byte[] data, int expectedVersion)
           
 

Method Detail

connect

void connect(org.apache.zookeeper.Watcher watcher)

close

void close()
           throws InterruptedException
Throws:
InterruptedException

create

String create(String path,
              byte[] data,
              org.apache.zookeeper.CreateMode mode)
              throws org.apache.zookeeper.KeeperException,
                     InterruptedException
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

delete

void delete(String path)
            throws InterruptedException,
                   org.apache.zookeeper.KeeperException
Throws:
InterruptedException
org.apache.zookeeper.KeeperException

exists

boolean exists(String path,
               boolean watch)
               throws org.apache.zookeeper.KeeperException,
                      InterruptedException
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

getChildren

List<String> getChildren(String path,
                         boolean watch)
                         throws org.apache.zookeeper.KeeperException,
                                InterruptedException
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

readData

byte[] readData(String path,
                org.apache.zookeeper.data.Stat stat,
                boolean watch)
                throws org.apache.zookeeper.KeeperException,
                       InterruptedException
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

writeData

void writeData(String path,
               byte[] data,
               int expectedVersion)
               throws org.apache.zookeeper.KeeperException,
                      InterruptedException
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

getZookeeperState

org.apache.zookeeper.ZooKeeper.States getZookeeperState()

getCreateTime

long getCreateTime(String path)
                   throws org.apache.zookeeper.KeeperException,
                          InterruptedException
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

getServers

String getServers()


Copyright © 2011. All Rights Reserved.