| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (version 1.7.0_80) on Sat Apr 08 11:09:16 PDT 2017 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>ForwardingZKClient (Apache Twill 0.11.0 API)</title> |
| <meta name="date" content="2017-04-08"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="ForwardingZKClient (Apache Twill 0.11.0 API)"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ForwardingZKClient.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/twill/zookeeper/ACLData.html" title="interface in org.apache.twill.zookeeper"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClientService.html" title="class in org.apache.twill.zookeeper"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/twill/zookeeper/ForwardingZKClient.html" target="_top">Frames</a></li> |
| <li><a href="ForwardingZKClient.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.twill.zookeeper</div> |
| <h2 title="Class ForwardingZKClient" class="title">Class ForwardingZKClient</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../org/apache/twill/zookeeper/AbstractZKClient.html" title="class in org.apache.twill.zookeeper">org.apache.twill.zookeeper.AbstractZKClient</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.twill.zookeeper.ForwardingZKClient</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="../../../../org/apache/twill/zookeeper/ZKClient.html" title="interface in org.apache.twill.zookeeper">ZKClient</a></dd> |
| </dl> |
| <dl> |
| <dt>Direct Known Subclasses:</dt> |
| <dd><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClientService.html" title="class in org.apache.twill.zookeeper">ForwardingZKClientService</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public abstract class <span class="strong">ForwardingZKClient</span> |
| extends <a href="../../../../org/apache/twill/zookeeper/AbstractZKClient.html" title="class in org.apache.twill.zookeeper">AbstractZKClient</a></pre> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier</th> |
| <th class="colLast" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected </code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#ForwardingZKClient(org.apache.twill.zookeeper.ZKClient)">ForwardingZKClient</a></strong>(<a href="../../../../org/apache/twill/zookeeper/ZKClient.html" title="interface in org.apache.twill.zookeeper">ZKClient</a> delegate)</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#addConnectionWatcher(org.apache.zookeeper.Watcher)">addConnectionWatcher</a></strong>(org.apache.zookeeper.Watcher watcher)</code> |
| <div class="block">Adds a <code>Watcher</code> that will be called whenever connection state change.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper">OperationFuture</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#create(java.lang.String,%20byte[],%20org.apache.zookeeper.CreateMode,%20boolean,%20java.lang.Iterable)">create</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, |
| byte[] data, |
| org.apache.zookeeper.CreateMode createMode, |
| boolean createParent, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><org.apache.zookeeper.data.ACL> acl)</code> |
| <div class="block">Creates a path in zookeeper, with given data and create mode.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper">OperationFuture</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#delete(java.lang.String,%20int)">delete</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> deletePath, |
| int version)</code> |
| <div class="block">Deletes the node of the given path that match the given version.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper">OperationFuture</a><org.apache.zookeeper.data.Stat></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#exists(java.lang.String,%20org.apache.zookeeper.Watcher)">exists</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, |
| org.apache.zookeeper.Watcher watcher)</code> |
| <div class="block">Checks if the given path exists and leave a watcher on the node for watching creation/deletion/data changes |
| on the node.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper">OperationFuture</a><<a href="../../../../org/apache/twill/zookeeper/ACLData.html" title="interface in org.apache.twill.zookeeper">ACLData</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#getACL(java.lang.String)">getACL</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)</code> |
| <div class="block">Retrieves the Stat and ACL being set at the given path.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper">OperationFuture</a><<a href="../../../../org/apache/twill/zookeeper/NodeChildren.html" title="interface in org.apache.twill.zookeeper">NodeChildren</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#getChildren(java.lang.String,%20org.apache.zookeeper.Watcher)">getChildren</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, |
| org.apache.zookeeper.Watcher watcher)</code> |
| <div class="block">Gets the list of children nodes under the given path and leave a watcher on the node for watching node |
| deletion and children nodes creation/deletion.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#getConnectString()">getConnectString</a></strong>()</code> |
| <div class="block">Returns the connection string used for connecting to Zookeeper.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper">OperationFuture</a><<a href="../../../../org/apache/twill/zookeeper/NodeData.html" title="interface in org.apache.twill.zookeeper">NodeData</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#getData(java.lang.String,%20org.apache.zookeeper.Watcher)">getData</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, |
| org.apache.zookeeper.Watcher watcher)</code> |
| <div class="block">Gets the data stored in the given path and leave a watcher on the node for watching deletion/data changes on |
| the node.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html" title="interface in org.apache.twill.zookeeper">ZKClient</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#getDelegate()">getDelegate</a></strong>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#getSessionId()">getSessionId</a></strong>()</code> |
| <div class="block">Returns the current Zookeeper session ID of this client.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper">OperationFuture</a><org.apache.zookeeper.data.Stat></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#setACL(java.lang.String,%20java.lang.Iterable,%20int)">setACL</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><org.apache.zookeeper.data.ACL> acl, |
| int version)</code> |
| <div class="block">Sets the ACL of the given path if the path exists and version matched.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper">OperationFuture</a><org.apache.zookeeper.data.Stat></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#setData(java.lang.String,%20byte[],%20int)">setData</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> dataPath, |
| byte[] data, |
| int version)</code> |
| <div class="block">Sets the data for the given path that match the given version.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_org.apache.twill.zookeeper.AbstractZKClient"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.twill.zookeeper.<a href="../../../../org/apache/twill/zookeeper/AbstractZKClient.html" title="class in org.apache.twill.zookeeper">AbstractZKClient</a></h3> |
| <code><a href="../../../../org/apache/twill/zookeeper/AbstractZKClient.html#create(java.lang.String,%20byte[],%20org.apache.zookeeper.CreateMode)">create</a>, <a href="../../../../org/apache/twill/zookeeper/AbstractZKClient.html#create(java.lang.String,%20byte[],%20org.apache.zookeeper.CreateMode,%20boolean)">create</a>, <a href="../../../../org/apache/twill/zookeeper/AbstractZKClient.html#create(java.lang.String,%20byte[],%20org.apache.zookeeper.CreateMode,%20java.lang.Iterable)">create</a>, <a href="../../../../org/apache/twill/zookeeper/AbstractZKClient.html#delete(java.lang.String)">delete</a>, <a href="../../../../org/apache/twill/zookeeper/AbstractZKClient.html#exists(java.lang.String)">exists</a>, <a href="../../../../org/apache/twill/zookeeper/AbstractZKClient.html#getChildren(java.lang.String)">getChildren</a>, <a href="../../../../org/apache/twill/zookeeper/AbstractZKClient.html#getData(java.lang.String)">getData</a>, <a href="../../../../org/apache/twill/zookeeper/AbstractZKClient.html#setACL(java.lang.String,%20java.lang.Iterable)">setACL</a>, <a href="../../../../org/apache/twill/zookeeper/AbstractZKClient.html#setData(java.lang.String,%20byte[])">setData</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="ForwardingZKClient(org.apache.twill.zookeeper.ZKClient)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>ForwardingZKClient</h4> |
| <pre>protected ForwardingZKClient(<a href="../../../../org/apache/twill/zookeeper/ZKClient.html" title="interface in org.apache.twill.zookeeper">ZKClient</a> delegate)</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getDelegate()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDelegate</h4> |
| <pre>public final <a href="../../../../org/apache/twill/zookeeper/ZKClient.html" title="interface in org.apache.twill.zookeeper">ZKClient</a> getDelegate()</pre> |
| </li> |
| </ul> |
| <a name="getSessionId()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSessionId</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a> getSessionId()</pre> |
| <div class="block"><strong>Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#getSessionId()">ZKClient</a></code></strong></div> |
| <div class="block">Returns the current Zookeeper session ID of this client. |
| If this ZKClient is not connected, <code>null</code> is returned.</div> |
| </li> |
| </ul> |
| <a name="getConnectString()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getConnectString</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getConnectString()</pre> |
| <div class="block"><strong>Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#getConnectString()">ZKClient</a></code></strong></div> |
| <div class="block">Returns the connection string used for connecting to Zookeeper.</div> |
| </li> |
| </ul> |
| <a name="addConnectionWatcher(org.apache.zookeeper.Watcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addConnectionWatcher</h4> |
| <pre>public <a href="../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a> addConnectionWatcher(org.apache.zookeeper.Watcher watcher)</pre> |
| <div class="block"><strong>Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#addConnectionWatcher(org.apache.zookeeper.Watcher)">ZKClient</a></code></strong></div> |
| <div class="block">Adds a <code>Watcher</code> that will be called whenever connection state change.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>watcher</code> - The watcher to set.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>A <a href="../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common"><code>Cancellable</code></a> for removing the watcher</dd></dl> |
| </li> |
| </ul> |
| <a name="create(java.lang.String, byte[], org.apache.zookeeper.CreateMode, boolean, java.lang.Iterable)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>create</h4> |
| <pre>public <a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper">OperationFuture</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> create(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, |
| <a href="http://docs.oracle.com/javase/7/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</a> |
| byte[] data, |
| org.apache.zookeeper.CreateMode createMode, |
| boolean createParent, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><org.apache.zookeeper.data.ACL> acl)</pre> |
| <div class="block"><strong>Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#create(java.lang.String,%20byte[],%20org.apache.zookeeper.CreateMode,%20boolean,%20java.lang.Iterable)">ZKClient</a></code></strong></div> |
| <div class="block">Creates a path in zookeeper, with given data and create mode.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - Path to be created</dd><dd><code>data</code> - Data to be stored in the node, or <code>null</code> if no data to store.</dd><dd><code>createMode</code> - The <code>CreateMode</code> for the node.</dd><dd><code>createParent</code> - If <code>true</code> and parent nodes are missing, it will create all parent nodes as normal |
| persistent node with the ACL <code>ZooDefs.Ids.OPEN_ACL_UNSAFE</code> |
| before creating the request node.</dd><dd><code>acl</code> - Set of <code>ACL</code> to be set for the node being created.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>A <a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper"><code>OperationFuture</code></a> that will be completed when the |
| creation is done. If there is error during creation, it will be reflected as error in the future.</dd></dl> |
| </li> |
| </ul> |
| <a name="exists(java.lang.String, org.apache.zookeeper.Watcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>exists</h4> |
| <pre>public <a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper">OperationFuture</a><org.apache.zookeeper.data.Stat> exists(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, |
| <a href="http://docs.oracle.com/javase/7/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</a> |
| org.apache.zookeeper.Watcher watcher)</pre> |
| <div class="block"><strong>Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#exists(java.lang.String,%20org.apache.zookeeper.Watcher)">ZKClient</a></code></strong></div> |
| <div class="block">Checks if the given path exists and leave a watcher on the node for watching creation/deletion/data changes |
| on the node.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - The path to check for existence.</dd><dd><code>watcher</code> - Watcher for watching changes, or <code>null</code> if no watcher to set.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>A <a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper"><code>OperationFuture</code></a> that will be completed when the exists check is done. If the path |
| does exists, the node <code>Stat</code> is set into the future. If the path doesn't exists, |
| a <code>null</code> value is set into the future.</dd></dl> |
| </li> |
| </ul> |
| <a name="getChildren(java.lang.String, org.apache.zookeeper.Watcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getChildren</h4> |
| <pre>public <a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper">OperationFuture</a><<a href="../../../../org/apache/twill/zookeeper/NodeChildren.html" title="interface in org.apache.twill.zookeeper">NodeChildren</a>> getChildren(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, |
| <a href="http://docs.oracle.com/javase/7/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</a> |
| org.apache.zookeeper.Watcher watcher)</pre> |
| <div class="block"><strong>Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#getChildren(java.lang.String,%20org.apache.zookeeper.Watcher)">ZKClient</a></code></strong></div> |
| <div class="block">Gets the list of children nodes under the given path and leave a watcher on the node for watching node |
| deletion and children nodes creation/deletion.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - The path to fetch for children nodes</dd><dd><code>watcher</code> - Watcher for watching changes, or <code>null</code> if no watcher to set.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>A <a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper"><code>OperationFuture</code></a> that will be completed when the getChildren call is done, with the result |
| given as <a href="../../../../org/apache/twill/zookeeper/NodeChildren.html" title="interface in org.apache.twill.zookeeper"><code>NodeChildren</code></a>. If there is error, it will be reflected as error in the future.</dd></dl> |
| </li> |
| </ul> |
| <a name="getData(java.lang.String, org.apache.zookeeper.Watcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getData</h4> |
| <pre>public <a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper">OperationFuture</a><<a href="../../../../org/apache/twill/zookeeper/NodeData.html" title="interface in org.apache.twill.zookeeper">NodeData</a>> getData(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, |
| <a href="http://docs.oracle.com/javase/7/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</a> |
| org.apache.zookeeper.Watcher watcher)</pre> |
| <div class="block"><strong>Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#getData(java.lang.String,%20org.apache.zookeeper.Watcher)">ZKClient</a></code></strong></div> |
| <div class="block">Gets the data stored in the given path and leave a watcher on the node for watching deletion/data changes on |
| the node.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - The path to get data from.</dd><dd><code>watcher</code> - Watcher for watching changes, or <code>null</code> if no watcher to set.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>A <a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper"><code>OperationFuture</code></a> that will be completed when the getData call is done, with the result |
| given as <a href="../../../../org/apache/twill/zookeeper/NodeData.html" title="interface in org.apache.twill.zookeeper"><code>NodeData</code></a>. If there is error, it will be reflected as error in the future.</dd></dl> |
| </li> |
| </ul> |
| <a name="setData(java.lang.String, byte[], int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setData</h4> |
| <pre>public <a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper">OperationFuture</a><org.apache.zookeeper.data.Stat> setData(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> dataPath, |
| byte[] data, |
| int version)</pre> |
| <div class="block"><strong>Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#setData(java.lang.String,%20byte[],%20int)">ZKClient</a></code></strong></div> |
| <div class="block">Sets the data for the given path that match the given version. If the version given is <code>-1</code>, it matches |
| any version.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>dataPath</code> - The path to set data to.</dd><dd><code>data</code> - Data to be set.</dd><dd><code>version</code> - Matching version.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>A <a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper"><code>OperationFuture</code></a> that will be completed when the setData call is done, with node <code>Stat</code> |
| given as the future result. If there is error, it will be reflected as error in the future.</dd></dl> |
| </li> |
| </ul> |
| <a name="delete(java.lang.String, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>delete</h4> |
| <pre>public <a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper">OperationFuture</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> delete(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> deletePath, |
| int version)</pre> |
| <div class="block"><strong>Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#delete(java.lang.String,%20int)">ZKClient</a></code></strong></div> |
| <div class="block">Deletes the node of the given path that match the given version. If the version given is <code>-1</code>, it matches |
| any version.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>deletePath</code> - The path to set data to.</dd><dd><code>version</code> - Matching version.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>A <a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper"><code>OperationFuture</code></a> that will be completed when the setData call is done, with node path |
| given as the future result. If there is error, it will be reflected as error in the future.</dd></dl> |
| </li> |
| </ul> |
| <a name="getACL(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getACL</h4> |
| <pre>public <a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper">OperationFuture</a><<a href="../../../../org/apache/twill/zookeeper/ACLData.html" title="interface in org.apache.twill.zookeeper">ACLData</a>> getACL(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)</pre> |
| <div class="block"><strong>Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#getACL(java.lang.String)">ZKClient</a></code></strong></div> |
| <div class="block">Retrieves the Stat and ACL being set at the given path.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - The path to get information from.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>A <a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper"><code>OperationFuture</code></a> that will be completed when the getACL call is done, with the result given as |
| <a href="../../../../org/apache/twill/zookeeper/ACLData.html" title="interface in org.apache.twill.zookeeper"><code>ACLData</code></a>. If there is error, it will be reflected as error in the future.</dd></dl> |
| </li> |
| </ul> |
| <a name="setACL(java.lang.String, java.lang.Iterable, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>setACL</h4> |
| <pre>public <a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper">OperationFuture</a><org.apache.zookeeper.data.Stat> setACL(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><org.apache.zookeeper.data.ACL> acl, |
| int version)</pre> |
| <div class="block"><strong>Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#setACL(java.lang.String,%20java.lang.Iterable,%20int)">ZKClient</a></code></strong></div> |
| <div class="block">Sets the ACL of the given path if the path exists and version matched.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - The path to have ACL being set.</dd><dd><code>acl</code> - ACL to set to.</dd><dd><code>version</code> - Version of the node.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>A <a href="../../../../org/apache/twill/zookeeper/OperationFuture.html" title="interface in org.apache.twill.zookeeper"><code>OperationFuture</code></a> that will be completed when the setACL call is done, with the node <code>Stat</code> |
| available as the future result. If there is error, it will be reflected as error in the future.</dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ForwardingZKClient.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/twill/zookeeper/ACLData.html" title="interface in org.apache.twill.zookeeper"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClientService.html" title="class in org.apache.twill.zookeeper"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/twill/zookeeper/ForwardingZKClient.html" target="_top">Frames</a></li> |
| <li><a href="ForwardingZKClient.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2013-2016 <a href="http://www.apache.org">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |