|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CuratorFramework
Zookeeper framework-style client
| Method Summary | |
|---|---|
void |
blockUntilConnected()
Block until a connection to ZooKeeper is available. |
boolean |
blockUntilConnected(int maxWaitTime,
TimeUnit units)
Block until a connection to ZooKeeper is available or the maxWaitTime has been exceeded |
ExistsBuilder |
checkExists()
Start an exists builder |
void |
clearWatcherReferences(org.apache.zookeeper.Watcher watcher)
Curator can hold internal references to watchers that may inhibit garbage collection. |
void |
close()
Stop the client |
CreateBuilder |
create()
Start a create builder |
DeleteBuilder |
delete()
Start a delete builder |
GetACLBuilder |
getACL()
Start a get ACL builder |
GetChildrenBuilder |
getChildren()
Start a get children builder |
Listenable<ConnectionStateListener> |
getConnectionStateListenable()
Returns the listenable interface for the Connect State |
Listenable<CuratorListener> |
getCuratorListenable()
Returns the listenable interface for events |
GetDataBuilder |
getData()
Start a get data builder |
String |
getNamespace()
Return the current namespace or "" if none |
CuratorFrameworkState |
getState()
Returns the state of this instance |
Listenable<UnhandledErrorListener> |
getUnhandledErrorListenable()
Returns the listenable interface for unhandled errors |
org.apache.curator.CuratorZookeeperClient |
getZookeeperClient()
Return the managed zookeeper client |
CuratorTransaction |
inTransaction()
Start a transaction builder |
boolean |
isStarted()
Deprecated. use getState() instead |
org.apache.curator.utils.EnsurePath |
newNamespaceAwareEnsurePath(String path)
Allocates an ensure path instance that is namespace aware |
CuratorFramework |
nonNamespaceView()
Deprecated. use usingNamespace(java.lang.String) passing null |
SetACLBuilder |
setACL()
Start a set ACL builder |
SetDataBuilder |
setData()
Start a set data builder |
void |
start()
Start the client. |
SyncBuilder |
sync()
Start a sync builder. |
void |
sync(String path,
Object backgroundContextObject)
Deprecated. use sync() instead |
CuratorFramework |
usingNamespace(String newNamespace)
Returns a facade of the current instance that uses the specified namespace or no namespace if newNamespace is null. |
| Method Detail |
|---|
void start()
void close()
close in interface CloseableCuratorFrameworkState getState()
boolean isStarted()
getState() instead
CreateBuilder create()
DeleteBuilder delete()
ExistsBuilder checkExists()
The builder will return a Stat object as if org.apache.zookeeper.ZooKeeper.exists() were called. Thus, a null means that it does not exist and an actual Stat object means it does exist.
GetDataBuilder getData()
SetDataBuilder setData()
GetChildrenBuilder getChildren()
GetACLBuilder getACL()
SetACLBuilder setACL()
CuratorTransaction inTransaction()
void sync(String path,
Object backgroundContextObject)
sync() instead
path - the pathbackgroundContextObject - optional contextSyncBuilder sync()
Listenable<ConnectionStateListener> getConnectionStateListenable()
Listenable<CuratorListener> getCuratorListenable()
Listenable<UnhandledErrorListener> getUnhandledErrorListenable()
CuratorFramework nonNamespaceView()
usingNamespace(java.lang.String) passing null
CuratorFramework usingNamespace(String newNamespace)
newNamespace is null.
newNamespace - the new namespace or null for none
String getNamespace()
org.apache.curator.CuratorZookeeperClient getZookeeperClient()
org.apache.curator.utils.EnsurePath newNamespaceAwareEnsurePath(String path)
path - path to ensure
void clearWatcherReferences(org.apache.zookeeper.Watcher watcher)
watcher - the watcher
boolean blockUntilConnected(int maxWaitTime,
TimeUnit units)
throws InterruptedException
maxWaitTime - The maximum wait time. Specify a value <= 0 to wait indefinitelyunits - The time units for the maximum wait time.
InterruptedException - If interrupted while waiting
void blockUntilConnected()
throws InterruptedException
InterruptedException - If interrupted while waiting
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||