public interface CuratorFramework
extends java.io.Closeable
Modifier and Type | Method and Description |
---|---|
ExistsBuilder |
checkExists()
Start an exists builder
|
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
|
java.lang.String |
getNamespace()
Return the current namespace or "" if none
|
Listenable<UnhandledErrorListener> |
getUnhandledErrorListenable()
Returns the listenable interface for unhandled errors
|
CuratorZookeeperClient |
getZookeeperClient()
Return the managed zookeeper client
|
CuratorTransaction |
inTransaction()
Start a transaction builder
|
boolean |
isStarted()
Return true if the client is started, not closed, etc.
|
EnsurePath |
newNamespaceAwareEnsurePath(java.lang.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.
|
void |
sync(java.lang.String path,
java.lang.Object backgroundContextObject)
Perform a sync on the given path - syncs are always in the background
|
CuratorFramework |
usingNamespace(java.lang.String newNamespace)
Returns a facade of the current instance that uses the specified namespace
or no namespace if
newNamespace is null . |
void start()
void close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
boolean isStarted()
CreateBuilder create()
DeleteBuilder delete()
ExistsBuilder checkExists()
GetDataBuilder getData()
SetDataBuilder setData()
GetChildrenBuilder getChildren()
GetACLBuilder getACL()
SetACLBuilder setACL()
CuratorTransaction inTransaction()
void sync(java.lang.String path, java.lang.Object backgroundContextObject)
path
- the pathbackgroundContextObject
- optional contextListenable<ConnectionStateListener> getConnectionStateListenable()
Listenable<CuratorListener> getCuratorListenable()
Listenable<UnhandledErrorListener> getUnhandledErrorListenable()
CuratorFramework nonNamespaceView()
CuratorFramework usingNamespace(java.lang.String newNamespace)
newNamespace
is null
.newNamespace
- the new namespace or null for nonejava.lang.String getNamespace()
CuratorZookeeperClient getZookeeperClient()
EnsurePath newNamespaceAwareEnsurePath(java.lang.String path)
path
- path to ensure