C# 클래스 Kafka.Client.ZooKeeperIntegration.ZooKeeperConnection

Abstracts connection with ZooKeeper server
상속: IZooKeeperConnection
파일 보기 프로젝트 열기: precog/kafka 1 사용 예제들

공개 메소드들

메소드 설명
Connect ( IWatcher watcher ) : void

Connects to ZooKeeper server

Create ( string path, byte data, ZooKeeperNet.CreateMode mode ) : string

Creates znode using given create mode for given path and writes given data to it

Delete ( string path ) : void

Deletes znode for a given path

Dispose ( ) : void

Closes underlying ZooKeeper client

Exists ( string path, bool watch ) : bool

Checks whether znode for a given path exists.

GetChildren ( string path, bool watch ) : IList

Gets all children for a given path

GetCreateTime ( string path ) : long

Gets time when connetion was created

ReadData ( string path, Org.Apache.Zookeeper.Data.Stat stats, bool watch ) : byte[]

Fetches data from a given path in ZooKeeper

WriteData ( string path, byte data ) : void

Writes data for a given path

WriteData ( string path, byte data, int version ) : void

Writes data for a given path

ZooKeeperConnection ( string servers ) : System

Initializes a new instance of the ZooKeeperConnection class.

ZooKeeperConnection ( string servers, int sessionTimeout ) : System

Initializes a new instance of the ZooKeeperConnection class.

비공개 메소드들

메소드 설명
EnsuresNotDisposed ( ) : void

Ensures object wasn't disposed

메소드 상세

Connect() 공개 메소드

Connects to ZooKeeper server
public Connect ( IWatcher watcher ) : void
watcher IWatcher /// The watcher to be installed in ZooKeeper. ///
리턴 void

Create() 공개 메소드

Creates znode using given create mode for given path and writes given data to it
public Create ( string path, byte data, ZooKeeperNet.CreateMode mode ) : string
path string /// The given path. ///
data byte /// The data to write. ///
mode ZooKeeperNet.CreateMode /// The create mode. ///
리턴 string

Delete() 공개 메소드

Deletes znode for a given path
public Delete ( string path ) : void
path string /// The given path. ///
리턴 void

Dispose() 공개 메소드

Closes underlying ZooKeeper client
public Dispose ( ) : void
리턴 void

Exists() 공개 메소드

Checks whether znode for a given path exists.
public Exists ( string path, bool watch ) : bool
path string /// The given path. ///
watch bool /// Indicates whether should reinstall watcher in ZooKeeper. ///
리턴 bool

GetChildren() 공개 메소드

Gets all children for a given path
public GetChildren ( string path, bool watch ) : IList
path string /// The given path. ///
watch bool /// Indicates whether should reinstall watcher in ZooKeeper. ///
리턴 IList

GetCreateTime() 공개 메소드

Gets time when connetion was created
public GetCreateTime ( string path ) : long
path string /// The path. ///
리턴 long

ReadData() 공개 메소드

Fetches data from a given path in ZooKeeper
public ReadData ( string path, Org.Apache.Zookeeper.Data.Stat stats, bool watch ) : byte[]
path string /// The given path. ///
stats Org.Apache.Zookeeper.Data.Stat /// The statistics. ///
watch bool /// Indicates whether should reinstall watcher in ZooKeeper. ///
리턴 byte[]

WriteData() 공개 메소드

Writes data for a given path
public WriteData ( string path, byte data ) : void
path string /// The given path. ///
data byte /// The data to write. ///
리턴 void

WriteData() 공개 메소드

Writes data for a given path
public WriteData ( string path, byte data, int version ) : void
path string /// The given path. ///
data byte /// The data to write. ///
version int /// Expected version of data ///
리턴 void

ZooKeeperConnection() 공개 메소드

Initializes a new instance of the ZooKeeperConnection class.
public ZooKeeperConnection ( string servers ) : System
servers string /// The list of ZooKeeper servers. ///
리턴 System

ZooKeeperConnection() 공개 메소드

Initializes a new instance of the ZooKeeperConnection class.
public ZooKeeperConnection ( string servers, int sessionTimeout ) : System
servers string /// The list of ZooKeeper servers. ///
sessionTimeout int /// The session timeout. ///
리턴 System