| <!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 (1.8.0_221) on Wed Jan 29 15:38:00 PST 2020 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>ForwardingZKClient (Apache Twill 0.14.0 API)</title> |
| <meta name="date" content="2020-01-29"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="ForwardingZKClient (Apache Twill 0.14.0 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <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="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClientService.html" title="class in org.apache.twill.zookeeper"><span class="typeNameLink">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="https://docs.oracle.com/javase/8/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="typeNameLabel">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="memberSummary" 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><span class="memberNameLink"><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#ForwardingZKClient-org.apache.twill.zookeeper.ZKClient-">ForwardingZKClient</a></span>(<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="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" 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><span class="memberNameLink"><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#addConnectionWatcher-org.apache.zookeeper.Watcher-">addConnectionWatcher</a></span>(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 id="i1" 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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#create-java.lang.String-byte:A-org.apache.zookeeper.CreateMode-boolean-java.lang.Iterable-">create</a></span>(<a href="https://docs.oracle.com/javase/8/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="https://docs.oracle.com/javase/8/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 id="i2" 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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#delete-java.lang.String-int-">delete</a></span>(<a href="https://docs.oracle.com/javase/8/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 id="i3" 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><span class="memberNameLink"><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#exists-java.lang.String-org.apache.zookeeper.Watcher-">exists</a></span>(<a href="https://docs.oracle.com/javase/8/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 id="i4" 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><span class="memberNameLink"><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#getACL-java.lang.String-">getACL</a></span>(<a href="https://docs.oracle.com/javase/8/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 id="i5" 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><span class="memberNameLink"><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#getChildren-java.lang.String-org.apache.zookeeper.Watcher-">getChildren</a></span>(<a href="https://docs.oracle.com/javase/8/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 id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#getConnectString--">getConnectString</a></span>()</code> |
| <div class="block">Returns the connection string used for connecting to Zookeeper.</div> |
| </td> |
| </tr> |
| <tr id="i7" 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><span class="memberNameLink"><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#getData-java.lang.String-org.apache.zookeeper.Watcher-">getData</a></span>(<a href="https://docs.oracle.com/javase/8/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 id="i8" 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><span class="memberNameLink"><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#getDelegate--">getDelegate</a></span>()</code> </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#getSessionId--">getSessionId</a></span>()</code> |
| <div class="block">Returns the current Zookeeper session ID of this client.</div> |
| </td> |
| </tr> |
| <tr id="i10" 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><span class="memberNameLink"><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#setACL-java.lang.String-java.lang.Iterable-int-">setACL</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, |
| <a href="https://docs.oracle.com/javase/8/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 id="i11" 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><span class="memberNameLink"><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#setData-java.lang.String-byte:A-int-">setData</a></span>(<a href="https://docs.oracle.com/javase/8/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-byte:A-org.apache.zookeeper.CreateMode-">create</a>, <a href="../../../../org/apache/twill/zookeeper/AbstractZKClient.html#create-java.lang.String-byte:A-org.apache.zookeeper.CreateMode-boolean-">create</a>, <a href="../../../../org/apache/twill/zookeeper/AbstractZKClient.html#create-java.lang.String-byte:A-org.apache.zookeeper.CreateMode-java.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-java.lang.Iterable-">setACL</a>, <a href="../../../../org/apache/twill/zookeeper/AbstractZKClient.html#setData-java.lang.String-byte:A-">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="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" 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="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a> getSessionId()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#getSessionId--">ZKClient</a></code></span></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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getConnectString()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#getConnectString--">ZKClient</a></code></span></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"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#addConnectionWatcher-org.apache.zookeeper.Watcher-">ZKClient</a></code></span></div> |
| <div class="block">Adds a <code>Watcher</code> that will be called whenever connection state change.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>watcher</code> - The watcher to set.</dd> |
| <dt><span class="returnLabel">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:A-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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> create(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, |
| <a href="https://docs.oracle.com/javase/8/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="https://docs.oracle.com/javase/8/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"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#create-java.lang.String-byte:A-org.apache.zookeeper.CreateMode-boolean-java.lang.Iterable-">ZKClient</a></code></span></div> |
| <div class="block">Creates a path in zookeeper, with given data and create mode.</div> |
| <dl> |
| <dt><span class="paramLabel">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="returnLabel">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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, |
| <a href="https://docs.oracle.com/javase/8/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"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#exists-java.lang.String-org.apache.zookeeper.Watcher-">ZKClient</a></code></span></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="paramLabel">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="returnLabel">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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, |
| <a href="https://docs.oracle.com/javase/8/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"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#getChildren-java.lang.String-org.apache.zookeeper.Watcher-">ZKClient</a></code></span></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="paramLabel">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="returnLabel">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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, |
| <a href="https://docs.oracle.com/javase/8/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"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#getData-java.lang.String-org.apache.zookeeper.Watcher-">ZKClient</a></code></span></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="paramLabel">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="returnLabel">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:A-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="https://docs.oracle.com/javase/8/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"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#setData-java.lang.String-byte:A-int-">ZKClient</a></code></span></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="paramLabel">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="returnLabel">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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> delete(<a href="https://docs.oracle.com/javase/8/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"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#delete-java.lang.String-int-">ZKClient</a></code></span></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="paramLabel">Parameters:</span></dt> |
| <dd><code>deletePath</code> - The path to set data to.</dd> |
| <dd><code>version</code> - Matching version.</dd> |
| <dt><span class="returnLabel">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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#getACL-java.lang.String-">ZKClient</a></code></span></div> |
| <div class="block">Retrieves the Stat and ACL being set at the given path.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>path</code> - The path to get information from.</dd> |
| <dt><span class="returnLabel">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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, |
| <a href="https://docs.oracle.com/javase/8/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"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/twill/zookeeper/ZKClient.html#setACL-java.lang.String-java.lang.Iterable-int-">ZKClient</a></code></span></div> |
| <div class="block">Sets the ACL of the given path if the path exists and version matched.</div> |
| <dl> |
| <dt><span class="paramLabel">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="returnLabel">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> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <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="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/twill/zookeeper/ForwardingZKClientService.html" title="class in org.apache.twill.zookeeper"><span class="typeNameLink">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-2020 <a href="http://www.apache.org">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |