|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.curator.framework.imps.CuratorFrameworkImpl
public class CuratorFrameworkImpl
| Constructor Summary | |
|---|---|
|
CuratorFrameworkImpl(CuratorFrameworkFactory.Builder builder)
|
protected |
CuratorFrameworkImpl(CuratorFrameworkImpl parent)
|
| 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 |
protected void |
internalSync(CuratorFrameworkImpl impl,
String path,
Object context)
|
CuratorTransaction |
inTransaction()
Start a transaction builder |
boolean |
isStarted()
Return true if the client is started, not closed, etc. |
org.apache.curator.utils.EnsurePath |
newNamespaceAwareEnsurePath(String path)
Allocates an ensure path instance that is namespace aware |
CuratorFramework |
nonNamespaceView()
Returns a facade of the current instance that does _not_ automatically pre-pend the namespace to all paths |
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 context)
Perform a sync on the given path - syncs are always in the background |
CuratorFramework |
usingNamespace(String newNamespace)
Returns a facade of the current instance that uses the specified namespace or no namespace if newNamespace is null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CuratorFrameworkImpl(CuratorFrameworkFactory.Builder builder)
protected CuratorFrameworkImpl(CuratorFrameworkImpl parent)
| Method Detail |
|---|
public void clearWatcherReferences(org.apache.zookeeper.Watcher watcher)
CuratorFramework
clearWatcherReferences in interface CuratorFrameworkwatcher - the watcherpublic CuratorFrameworkState getState()
CuratorFramework
getState in interface CuratorFrameworkpublic boolean isStarted()
CuratorFramework
isStarted in interface CuratorFramework
public boolean blockUntilConnected(int maxWaitTime,
TimeUnit units)
throws InterruptedException
CuratorFramework
blockUntilConnected in interface CuratorFrameworkmaxWaitTime - The maximum wait time. Specify a value <= 0 to wait indefinitelyunits - The time units for the maximum wait time.
InterruptedException - If interrupted while waiting
public void blockUntilConnected()
throws InterruptedException
CuratorFramework
blockUntilConnected in interface CuratorFrameworkInterruptedException - If interrupted while waitingpublic void start()
CuratorFramework
start in interface CuratorFrameworkpublic void close()
CuratorFramework
close in interface Closeableclose in interface CuratorFrameworkpublic CuratorFramework nonNamespaceView()
CuratorFramework
nonNamespaceView in interface CuratorFrameworkpublic String getNamespace()
CuratorFramework
getNamespace in interface CuratorFrameworkpublic CuratorFramework usingNamespace(String newNamespace)
CuratorFrameworknewNamespace is null.
usingNamespace in interface CuratorFrameworknewNamespace - the new namespace or null for none
public CreateBuilder create()
CuratorFramework
create in interface CuratorFrameworkpublic DeleteBuilder delete()
CuratorFramework
delete in interface CuratorFrameworkpublic ExistsBuilder checkExists()
CuratorFrameworkThe 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.
checkExists in interface CuratorFrameworkpublic GetDataBuilder getData()
CuratorFramework
getData in interface CuratorFrameworkpublic SetDataBuilder setData()
CuratorFramework
setData in interface CuratorFrameworkpublic GetChildrenBuilder getChildren()
CuratorFramework
getChildren in interface CuratorFrameworkpublic GetACLBuilder getACL()
CuratorFramework
getACL in interface CuratorFrameworkpublic SetACLBuilder setACL()
CuratorFramework
setACL in interface CuratorFrameworkpublic CuratorTransaction inTransaction()
CuratorFramework
inTransaction in interface CuratorFrameworkpublic Listenable<ConnectionStateListener> getConnectionStateListenable()
CuratorFramework
getConnectionStateListenable in interface CuratorFrameworkpublic Listenable<CuratorListener> getCuratorListenable()
CuratorFramework
getCuratorListenable in interface CuratorFrameworkpublic Listenable<UnhandledErrorListener> getUnhandledErrorListenable()
CuratorFramework
getUnhandledErrorListenable in interface CuratorFramework
public void sync(String path,
Object context)
CuratorFramework
sync in interface CuratorFrameworkpath - the pathcontext - optional contextpublic SyncBuilder sync()
CuratorFramework
sync in interface CuratorFramework
protected void internalSync(CuratorFrameworkImpl impl,
String path,
Object context)
public org.apache.curator.CuratorZookeeperClient getZookeeperClient()
CuratorFramework
getZookeeperClient in interface CuratorFrameworkpublic org.apache.curator.utils.EnsurePath newNamespaceAwareEnsurePath(String path)
CuratorFramework
newNamespaceAwareEnsurePath in interface CuratorFrameworkpath - path to ensure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||