tephra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cht...@apache.org
Subject [23/51] [abbrv] [partial] incubator-tephra git commit: Site Update - Added release 0.12.0 - Fixed release 0.10.0 - Added latest Apache Big Data 2017 presentation slides - Update release guide
Date Fri, 04 Aug 2017 19:30:15 GMT
http://git-wip-us.apache.org/repos/asf/incubator-tephra/blob/72ca06bc/src/site/resources/apidocs-0.12.0-incubating/org/apache/tephra/distributed/TransactionService.html
----------------------------------------------------------------------
diff --git a/src/site/resources/apidocs-0.12.0-incubating/org/apache/tephra/distributed/TransactionService.html b/src/site/resources/apidocs-0.12.0-incubating/org/apache/tephra/distributed/TransactionService.html
new file mode 100644
index 0000000..721b149
--- /dev/null
+++ b/src/site/resources/apidocs-0.12.0-incubating/org/apache/tephra/distributed/TransactionService.html
@@ -0,0 +1,401 @@
+<!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 Fri Aug 04 12:03:00 PDT 2017 -->
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>TransactionService (Apache Tephra 0.12.0-incubating API)</title>
+<meta name="date" content="2017-08-04">
+<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="TransactionService (Apache Tephra 0.12.0-incubating 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/TransactionService.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/tephra/distributed/TransactionConverterUtils.html" title="class in org.apache.tephra.distributed"><span class="strong">Prev Class</span></a></li>
+<li><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html" title="class in org.apache.tephra.distributed"><span class="strong">Next Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../../index.html?org/apache/tephra/distributed/TransactionService.html" target="_top">Frames</a></li>
+<li><a href="TransactionService.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:&nbsp;</li>
+<li>Nested&nbsp;|&nbsp;</li>
+<li><a href="#fields_inherited_from_class_org.apache.tephra.inmemory.InMemoryTransactionService">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method_summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail:&nbsp;</li>
+<li>Field&nbsp;|&nbsp;</li>
+<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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.tephra.distributed</div>
+<h2 title="Class TransactionService" class="title">Class TransactionService</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>com.google.common.util.concurrent.AbstractService</li>
+<li>
+<ul class="inheritance">
+<li><a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html" title="class in org.apache.tephra.inmemory">org.apache.tephra.inmemory.InMemoryTransactionService</a></li>
+<li>
+<ul class="inheritance">
+<li>org.apache.tephra.distributed.TransactionService</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+<div class="description">
+<ul class="blockList">
+<li class="blockList">
+<dl>
+<dt>All Implemented Interfaces:</dt>
+<dd>com.google.common.util.concurrent.Service</dd>
+</dl>
+<hr>
+<br>
+<pre>public final class <span class="strong">TransactionService</span>
+extends <a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html" title="class in org.apache.tephra.inmemory">InMemoryTransactionService</a></pre>
+</li>
+</ul>
+</div>
+<div class="summary">
+<ul class="blockList">
+<li class="blockList">
+<!-- ======== NESTED CLASS SUMMARY ======== -->
+<ul class="blockList">
+<li class="blockList"><a name="nested_class_summary">
+<!--   -->
+</a>
+<h3>Nested Class Summary</h3>
+<ul class="blockList">
+<li class="blockList"><a name="nested_classes_inherited_from_class_com.google.common.util.concurrent.Service">
+<!--   -->
+</a>
+<h3>Nested classes/interfaces inherited from interface&nbsp;com.google.common.util.concurrent.Service</h3>
+<code>com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State</code></li>
+</ul>
+</li>
+</ul>
+<!-- =========== FIELD SUMMARY =========== -->
+<ul class="blockList">
+<li class="blockList"><a name="field_summary">
+<!--   -->
+</a>
+<h3>Field Summary</h3>
+<ul class="blockList">
+<li class="blockList"><a name="fields_inherited_from_class_org.apache.tephra.inmemory.InMemoryTransactionService">
+<!--   -->
+</a>
+<h3>Fields inherited from class&nbsp;org.apache.tephra.inmemory.<a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html" title="class in org.apache.tephra.inmemory">InMemoryTransactionService</a></h3>
+<code><a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html#address">address</a>, <a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html#ioThreads">ioThreads</a>, <a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html#maxReadBufferBytes">maxReadBufferBytes</a>, <a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html#port">port</a>, <a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html#threads">threads</a>, <a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html#txManager">txManager</a>, <a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html#txManagerProvider">txManagerProvider</a></code></li>
+</ul>
+</li>
+</ul>
+<!-- ======== 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">&nbsp;</span></caption>
+<tr>
+<th class="colOne" scope="col">Constructor and Description</th>
+</tr>
+<tr class="altColor">
+<td class="colOne"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionService.html#TransactionService(org.apache.hadoop.conf.Configuration,%20org.apache.twill.zookeeper.ZKClient,%20org.apache.twill.discovery.DiscoveryService,%20com.google.inject.Provider)">TransactionService</a></strong>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+                  org.apache.twill.zookeeper.ZKClient&nbsp;zkClient,
+                  org.apache.twill.discovery.DiscoveryService&nbsp;discoveryService,
+                  com.google.inject.Provider&lt;<a href="../../../../org/apache/tephra/TransactionManager.html" title="class in org.apache.tephra">TransactionManager</a>&gt;&nbsp;txManagerProvider)</code>&nbsp;</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">&nbsp;</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>protected void</code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionService.html#abort(java.lang.Throwable)">abort</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>protected void</code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionService.html#doStart()">doStart</a></strong>()</code>&nbsp;</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>protected void</code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionService.html#doStop()">doStop</a></strong>()</code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/net/InetSocketAddress.html?is-external=true" title="class or interface in java.net">InetSocketAddress</a></code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionService.html#getAddress()">getAddress</a></strong>()</code>&nbsp;</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code><a href="../../../../org/apache/tephra/TransactionManager.html" title="class in org.apache.tephra">TransactionManager</a></code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionService.html#getTransactionManager()">getTransactionManager</a></strong>()</code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>protected void</code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionService.html#internalStop()">internalStop</a></strong>()</code>&nbsp;</td>
+</tr>
+</table>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_org.apache.tephra.inmemory.InMemoryTransactionService">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;org.apache.tephra.inmemory.<a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html" title="class in org.apache.tephra.inmemory">InMemoryTransactionService</a></h3>
+<code><a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html#doRegister()">doRegister</a>, <a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html#undoRegister()">undoRegister</a></code></li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_com.google.common.util.concurrent.AbstractService">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;com.google.common.util.concurrent.AbstractService</h3>
+<code>addListener, isRunning, notifyFailed, notifyStarted, notifyStopped, start, startAndWait, state, stop, stopAndWait, toString</code></li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;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#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="TransactionService(org.apache.hadoop.conf.Configuration, org.apache.twill.zookeeper.ZKClient, org.apache.twill.discovery.DiscoveryService, com.google.inject.Provider)">
+<!--   -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>TransactionService</h4>
+<pre>@Inject
+public&nbsp;TransactionService(org.apache.hadoop.conf.Configuration&nbsp;conf,
+                         org.apache.twill.zookeeper.ZKClient&nbsp;zkClient,
+                         org.apache.twill.discovery.DiscoveryService&nbsp;discoveryService,
+                         com.google.inject.Provider&lt;<a href="../../../../org/apache/tephra/TransactionManager.html" title="class in org.apache.tephra">TransactionManager</a>&gt;&nbsp;txManagerProvider)</pre>
+</li>
+</ul>
+</li>
+</ul>
+<!-- ============ METHOD DETAIL ========== -->
+<ul class="blockList">
+<li class="blockList"><a name="method_detail">
+<!--   -->
+</a>
+<h3>Method Detail</h3>
+<a name="getAddress()">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getAddress</h4>
+<pre>protected&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/net/InetSocketAddress.html?is-external=true" title="class or interface in java.net">InetSocketAddress</a>&nbsp;getAddress()</pre>
+<dl>
+<dt><strong>Overrides:</strong></dt>
+<dd><code><a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html#getAddress()">getAddress</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html" title="class in org.apache.tephra.inmemory">InMemoryTransactionService</a></code></dd>
+</dl>
+</li>
+</ul>
+<a name="doStart()">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>doStart</h4>
+<pre>protected&nbsp;void&nbsp;doStart()</pre>
+<dl>
+<dt><strong>Overrides:</strong></dt>
+<dd><code><a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html#doStart()">doStart</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html" title="class in org.apache.tephra.inmemory">InMemoryTransactionService</a></code></dd>
+</dl>
+</li>
+</ul>
+<a name="doStop()">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>doStop</h4>
+<pre>protected&nbsp;void&nbsp;doStop()</pre>
+<dl>
+<dt><strong>Overrides:</strong></dt>
+<dd><code><a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html#doStop()">doStop</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/apache/tephra/inmemory/InMemoryTransactionService.html" title="class in org.apache.tephra.inmemory">InMemoryTransactionService</a></code></dd>
+</dl>
+</li>
+</ul>
+<a name="abort(java.lang.Throwable)">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>abort</h4>
+<pre>protected&nbsp;void&nbsp;abort(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</pre>
+</li>
+</ul>
+<a name="internalStop()">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>internalStop</h4>
+<pre>protected&nbsp;void&nbsp;internalStop()</pre>
+</li>
+</ul>
+<a name="getTransactionManager()">
+<!--   -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>getTransactionManager</h4>
+<pre><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>
+public&nbsp;<a href="../../../../org/apache/tephra/TransactionManager.html" title="class in org.apache.tephra">TransactionManager</a>&nbsp;getTransactionManager()</pre>
+</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/TransactionService.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/tephra/distributed/TransactionConverterUtils.html" title="class in org.apache.tephra.distributed"><span class="strong">Prev Class</span></a></li>
+<li><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html" title="class in org.apache.tephra.distributed"><span class="strong">Next Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../../index.html?org/apache/tephra/distributed/TransactionService.html" target="_top">Frames</a></li>
+<li><a href="TransactionService.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:&nbsp;</li>
+<li>Nested&nbsp;|&nbsp;</li>
+<li><a href="#fields_inherited_from_class_org.apache.tephra.inmemory.InMemoryTransactionService">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method_summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail:&nbsp;</li>
+<li>Field&nbsp;|&nbsp;</li>
+<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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 &#169; 2017 <a href="http://www.apache.org">The Apache Software Foundation</a>. All rights reserved.</small></p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-tephra/blob/72ca06bc/src/site/resources/apidocs-0.12.0-incubating/org/apache/tephra/distributed/TransactionServiceClient.html
----------------------------------------------------------------------
diff --git a/src/site/resources/apidocs-0.12.0-incubating/org/apache/tephra/distributed/TransactionServiceClient.html b/src/site/resources/apidocs-0.12.0-incubating/org/apache/tephra/distributed/TransactionServiceClient.html
new file mode 100644
index 0000000..b9aeb02
--- /dev/null
+++ b/src/site/resources/apidocs-0.12.0-incubating/org/apache/tephra/distributed/TransactionServiceClient.html
@@ -0,0 +1,645 @@
+<!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 Fri Aug 04 12:03:00 PDT 2017 -->
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>TransactionServiceClient (Apache Tephra 0.12.0-incubating API)</title>
+<meta name="date" content="2017-08-04">
+<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="TransactionServiceClient (Apache Tephra 0.12.0-incubating 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/TransactionServiceClient.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/tephra/distributed/TransactionService.html" title="class in org.apache.tephra.distributed"><span class="strong">Prev Class</span></a></li>
+<li><a href="../../../../org/apache/tephra/distributed/TransactionServiceThriftClient.html" title="class in org.apache.tephra.distributed"><span class="strong">Next Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../../index.html?org/apache/tephra/distributed/TransactionServiceClient.html" target="_top">Frames</a></li>
+<li><a href="TransactionServiceClient.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:&nbsp;</li>
+<li>Nested&nbsp;|&nbsp;</li>
+<li>Field&nbsp;|&nbsp;</li>
+<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method_summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail:&nbsp;</li>
+<li>Field&nbsp;|&nbsp;</li>
+<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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.tephra.distributed</div>
+<h2 title="Class TransactionServiceClient" class="title">Class TransactionServiceClient</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>org.apache.tephra.distributed.TransactionServiceClient</li>
+</ul>
+</li>
+</ul>
+<div class="description">
+<ul class="blockList">
+<li class="blockList">
+<dl>
+<dt>All Implemented Interfaces:</dt>
+<dd><a href="../../../../org/apache/tephra/TransactionSystemClient.html" title="interface in org.apache.tephra">TransactionSystemClient</a></dd>
+</dl>
+<hr>
+<br>
+<pre>public class <span class="strong">TransactionServiceClient</span>
+extends <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>
+implements <a href="../../../../org/apache/tephra/TransactionSystemClient.html" title="interface in org.apache.tephra">TransactionSystemClient</a></pre>
+<div class="block">A tx service client</div>
+</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">&nbsp;</span></caption>
+<tr>
+<th class="colOne" scope="col">Constructor and Description</th>
+</tr>
+<tr class="altColor">
+<td class="colOne"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html#TransactionServiceClient(org.apache.hadoop.conf.Configuration,%20org.apache.tephra.distributed.ThriftClientProvider)">TransactionServiceClient</a></strong>(org.apache.hadoop.conf.Configuration&nbsp;config,
+                        <a href="../../../../org/apache/tephra/distributed/ThriftClientProvider.html" title="interface in org.apache.tephra.distributed">ThriftClientProvider</a>&nbsp;clientProvider)</code>
+<div class="block">Create from a configuration.</div>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colOne"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html#TransactionServiceClient(org.apache.hadoop.conf.Configuration,%20org.apache.tephra.distributed.ThriftClientProvider,%20java.lang.String)">TransactionServiceClient</a></strong>(org.apache.hadoop.conf.Configuration&nbsp;config,
+                        <a href="../../../../org/apache/tephra/distributed/ThriftClientProvider.html" title="interface in org.apache.tephra.distributed">ThriftClientProvider</a>&nbsp;clientProvider,
+                        <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>&nbsp;clientId)</code>
+<div class="block">Create from a configuration.</div>
+</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">&nbsp;</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>void</code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html#abort(org.apache.tephra.Transaction)">abort</a></strong>(<a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra">Transaction</a>&nbsp;tx)</code>
+<div class="block">Makes transaction visible.</div>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>boolean</code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html#canCommit(org.apache.tephra.Transaction,%20java.util.Collection)">canCommit</a></strong>(<a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra">Transaction</a>&nbsp;tx,
+         <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;byte[]&gt;&nbsp;changeIds)</code>
+<div class="block">Checks if transaction with the set of changes can be committed.</div>
+</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code><a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra">Transaction</a></code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html#checkpoint(org.apache.tephra.Transaction)">checkpoint</a></strong>(<a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra">Transaction</a>&nbsp;tx)</code>
+<div class="block">Performs a checkpoint operation on the current transaction, returning a new Transaction instance with the
+ updated state.</div>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>boolean</code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html#commit(org.apache.tephra.Transaction)">commit</a></strong>(<a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra">Transaction</a>&nbsp;tx)</code>
+<div class="block">Makes transaction visible.</div>
+</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>static void</code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html#doMain(boolean,%20org.apache.hadoop.conf.Configuration)">doMain</a></strong>(boolean&nbsp;verbose,
+      org.apache.hadoop.conf.Configuration&nbsp;conf)</code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>int</code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html#getInvalidSize()">getInvalidSize</a></strong>()</code>&nbsp;</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a></code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html#getSnapshotInputStream()">getSnapshotInputStream</a></strong>()</code>
+<div class="block">Retrieves the state of the transaction manager and send it as a stream.</div>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>boolean</code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html#invalidate(long)">invalidate</a></strong>(long&nbsp;tx)</code>
+<div class="block">Makes transaction invalid.</div>
+</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>static void</code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html#main(java.lang.String[])">main</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>[]&nbsp;args)</code>
+<div class="block">Utility to be used for basic verification of transaction system availability and functioning</div>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html#resetState()">resetState</a></strong>()</code>
+<div class="block">Resets the state of the transaction manager.</div>
+</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code><a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra">Transaction</a></code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html#startLong()">startLong</a></strong>()</code>
+<div class="block">Starts new long transaction.</div>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code><a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra">Transaction</a></code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html#startShort()">startShort</a></strong>()</code>
+<div class="block">Starts new short transaction.</div>
+</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code><a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra">Transaction</a></code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html#startShort(int)">startShort</a></strong>(int&nbsp;timeout)</code>
+<div class="block">Starts new short transaction.</div>
+</td>
+</tr>
+<tr class="rowColor">
+<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/tephra/distributed/TransactionServiceClient.html#status()">status</a></strong>()</code>
+<div class="block">Return the status of the transaction Manager</div>
+</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>boolean</code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html#truncateInvalidTx(java.util.Set)">truncateInvalidTx</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<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>&gt;&nbsp;invalidTxIds)</code>
+<div class="block">Removes the given transaction ids from the invalid list.</div>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>boolean</code></td>
+<td class="colLast"><code><strong><a href="../../../../org/apache/tephra/distributed/TransactionServiceClient.html#truncateInvalidTxBefore(long)">truncateInvalidTxBefore</a></strong>(long&nbsp;time)</code>
+<div class="block">Removes all transaction ids started before the given time from invalid list.</div>
+</td>
+</tr>
+</table>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;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="TransactionServiceClient(org.apache.hadoop.conf.Configuration, org.apache.tephra.distributed.ThriftClientProvider)">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>TransactionServiceClient</h4>
+<pre>public&nbsp;TransactionServiceClient(org.apache.hadoop.conf.Configuration&nbsp;config,
+                        <a href="../../../../org/apache/tephra/distributed/ThriftClientProvider.html" title="interface in org.apache.tephra.distributed">ThriftClientProvider</a>&nbsp;clientProvider)</pre>
+<div class="block">Create from a configuration. This will first attempt to find a zookeeper for service discovery.
+ This constructor can be used if Guice dependency injection is not used. JVM name will be used for the client id.</div>
+<dl><dt><span class="strong">Parameters:</span></dt><dd><code>config</code> - a configuration containing the zookeeper properties</dd></dl>
+</li>
+</ul>
+<a name="TransactionServiceClient(org.apache.hadoop.conf.Configuration, org.apache.tephra.distributed.ThriftClientProvider, java.lang.String)">
+<!--   -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>TransactionServiceClient</h4>
+<pre>@Inject
+public&nbsp;TransactionServiceClient(org.apache.hadoop.conf.Configuration&nbsp;config,
+                               <a href="../../../../org/apache/tephra/distributed/ThriftClientProvider.html" title="interface in org.apache.tephra.distributed">ThriftClientProvider</a>&nbsp;clientProvider,
+                               <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>&nbsp;clientId)</pre>
+<div class="block">Create from a configuration. This will first attempt to find a zookeeper
+ for service discovery. Otherwise it will look for the port in the
+ config and use localhost.</div>
+<dl><dt><span class="strong">Parameters:</span></dt><dd><code>config</code> - a configuration containing the zookeeper properties</dd><dd><code>clientId</code> - id of the client that identifies it when it starts a transaction</dd></dl>
+</li>
+</ul>
+</li>
+</ul>
+<!-- ============ METHOD DETAIL ========== -->
+<ul class="blockList">
+<li class="blockList"><a name="method_detail">
+<!--   -->
+</a>
+<h3>Method Detail</h3>
+<a name="main(java.lang.String[])">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>main</h4>
+<pre>public static&nbsp;void&nbsp;main(<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>[]&nbsp;args)
+                 throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
+<div class="block">Utility to be used for basic verification of transaction system availability and functioning</div>
+<dl><dt><span class="strong">Parameters:</span></dt><dd><code>args</code> - arguments list, accepts single option "-v" that makes it to print out more details about started tx</dd>
+<dt><span class="strong">Throws:</span></dt>
+<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd></dl>
+</li>
+</ul>
+<a name="doMain(boolean, org.apache.hadoop.conf.Configuration)">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>doMain</h4>
+<pre>public static&nbsp;void&nbsp;doMain(boolean&nbsp;verbose,
+          org.apache.hadoop.conf.Configuration&nbsp;conf)
+                   throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
+<dl><dt><span class="strong">Throws:</span></dt>
+<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd></dl>
+</li>
+</ul>
+<a name="startLong()">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>startLong</h4>
+<pre>public&nbsp;<a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra">Transaction</a>&nbsp;startLong()</pre>
+<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#startLong()">TransactionSystemClient</a></code></strong></div>
+<div class="block">Starts new long transaction.</div>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#startLong()">startLong</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html" title="interface in org.apache.tephra">TransactionSystemClient</a></code></dd>
+<dt><span class="strong">Returns:</span></dt><dd>instance of <a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra"><code>Transaction</code></a></dd></dl>
+</li>
+</ul>
+<a name="startShort()">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>startShort</h4>
+<pre>public&nbsp;<a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra">Transaction</a>&nbsp;startShort()</pre>
+<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#startShort()">TransactionSystemClient</a></code></strong></div>
+<div class="block">Starts new short transaction.</div>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#startShort()">startShort</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html" title="interface in org.apache.tephra">TransactionSystemClient</a></code></dd>
+<dt><span class="strong">Returns:</span></dt><dd>instance of <a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra"><code>Transaction</code></a></dd></dl>
+</li>
+</ul>
+<a name="startShort(int)">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>startShort</h4>
+<pre>public&nbsp;<a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra">Transaction</a>&nbsp;startShort(int&nbsp;timeout)</pre>
+<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#startShort(int)">TransactionSystemClient</a></code></strong></div>
+<div class="block">Starts new short transaction.</div>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#startShort(int)">startShort</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html" title="interface in org.apache.tephra">TransactionSystemClient</a></code></dd>
+<dt><span class="strong">Parameters:</span></dt><dd><code>timeout</code> - the timeout for the transaction</dd>
+<dt><span class="strong">Returns:</span></dt><dd>instance of <a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra"><code>Transaction</code></a></dd></dl>
+</li>
+</ul>
+<a name="canCommit(org.apache.tephra.Transaction, java.util.Collection)">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>canCommit</h4>
+<pre>public&nbsp;boolean&nbsp;canCommit(<a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra">Transaction</a>&nbsp;tx,
+                <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;byte[]&gt;&nbsp;changeIds)
+                  throws <a href="../../../../org/apache/tephra/TransactionNotInProgressException.html" title="class in org.apache.tephra">TransactionNotInProgressException</a></pre>
+<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#canCommit(org.apache.tephra.Transaction,%20java.util.Collection)">TransactionSystemClient</a></code></strong></div>
+<div class="block">Checks if transaction with the set of changes can be committed. E.g. it can check conflicts with other changes and
+ refuse commit if there are conflicts. It is assumed that no other changes will be done in between this method call
+ and <a href="../../../../org/apache/tephra/TransactionSystemClient.html#commit(org.apache.tephra.Transaction)"><code>TransactionSystemClient.commit(Transaction)</code></a> which may check conflicts again to avoid races.
+ <p/>
+ Since we do conflict detection at commit time as well, this may seem redundant. The idea is to check for conflicts
+ before we persist changes to avoid rollback in case of conflicts as much as possible.
+ NOTE: in some situations we may want to skip this step to save on RPC with a risk of many rollback ops. So by
+       default we take safe path.</div>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#canCommit(org.apache.tephra.Transaction,%20java.util.Collection)">canCommit</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html" title="interface in org.apache.tephra">TransactionSystemClient</a></code></dd>
+<dt><span class="strong">Parameters:</span></dt><dd><code>tx</code> - transaction to verify</dd><dd><code>changeIds</code> - ids of changes made by transaction</dd>
+<dt><span class="strong">Returns:</span></dt><dd>true if transaction can be committed otherwise false</dd>
+<dt><span class="strong">Throws:</span></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionNotInProgressException.html" title="class in org.apache.tephra">TransactionNotInProgressException</a></code></dd></dl>
+</li>
+</ul>
+<a name="commit(org.apache.tephra.Transaction)">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>commit</h4>
+<pre>public&nbsp;boolean&nbsp;commit(<a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra">Transaction</a>&nbsp;tx)
+               throws <a href="../../../../org/apache/tephra/TransactionNotInProgressException.html" title="class in org.apache.tephra">TransactionNotInProgressException</a></pre>
+<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#commit(org.apache.tephra.Transaction)">TransactionSystemClient</a></code></strong></div>
+<div class="block">Makes transaction visible. It will again check conflicts of changes submitted previously with
+ <a href="../../../../org/apache/tephra/TransactionSystemClient.html#canCommit(org.apache.tephra.Transaction,%20java.util.Collection)"><code>TransactionSystemClient.canCommit(Transaction, java.util.Collection)</code></a></div>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#commit(org.apache.tephra.Transaction)">commit</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html" title="interface in org.apache.tephra">TransactionSystemClient</a></code></dd>
+<dt><span class="strong">Parameters:</span></dt><dd><code>tx</code> - transaction to make visible.</dd>
+<dt><span class="strong">Returns:</span></dt><dd>true if transaction can be committed otherwise false</dd>
+<dt><span class="strong">Throws:</span></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionNotInProgressException.html" title="class in org.apache.tephra">TransactionNotInProgressException</a></code></dd></dl>
+</li>
+</ul>
+<a name="abort(org.apache.tephra.Transaction)">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>abort</h4>
+<pre>public&nbsp;void&nbsp;abort(<a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra">Transaction</a>&nbsp;tx)</pre>
+<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#abort(org.apache.tephra.Transaction)">TransactionSystemClient</a></code></strong></div>
+<div class="block">Makes transaction visible. You should call it only when all changes of this tx are undone.
+ NOTE: it will not throw <a href="../../../../org/apache/tephra/TransactionNotInProgressException.html" title="class in org.apache.tephra"><code>TransactionNotInProgressException</code></a> if transaction has timed out.</div>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#abort(org.apache.tephra.Transaction)">abort</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html" title="interface in org.apache.tephra">TransactionSystemClient</a></code></dd>
+<dt><span class="strong">Parameters:</span></dt><dd><code>tx</code> - transaction to make visible.</dd></dl>
+</li>
+</ul>
+<a name="invalidate(long)">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>invalidate</h4>
+<pre>public&nbsp;boolean&nbsp;invalidate(long&nbsp;tx)</pre>
+<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#invalidate(long)">TransactionSystemClient</a></code></strong></div>
+<div class="block">Makes transaction invalid. You should call it if not all changes of this tx could be undone.
+ NOTE: it will not throw <a href="../../../../org/apache/tephra/TransactionNotInProgressException.html" title="class in org.apache.tephra"><code>TransactionNotInProgressException</code></a> if transaction has timed out.</div>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#invalidate(long)">invalidate</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html" title="interface in org.apache.tephra">TransactionSystemClient</a></code></dd>
+<dt><span class="strong">Parameters:</span></dt><dd><code>tx</code> - transaction id to invalidate.</dd>
+<dt><span class="strong">Returns:</span></dt><dd>true if transaction has been successfully invalidated</dd></dl>
+</li>
+</ul>
+<a name="checkpoint(org.apache.tephra.Transaction)">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>checkpoint</h4>
+<pre>public&nbsp;<a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra">Transaction</a>&nbsp;checkpoint(<a href="../../../../org/apache/tephra/Transaction.html" title="class in org.apache.tephra">Transaction</a>&nbsp;tx)
+                       throws <a href="../../../../org/apache/tephra/TransactionNotInProgressException.html" title="class in org.apache.tephra">TransactionNotInProgressException</a></pre>
+<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#checkpoint(org.apache.tephra.Transaction)">TransactionSystemClient</a></code></strong></div>
+<div class="block">Performs a checkpoint operation on the current transaction, returning a new Transaction instance with the
+ updated state.  A checkpoint operation assigns a new write pointer for the current transaction.</div>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#checkpoint(org.apache.tephra.Transaction)">checkpoint</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html" title="interface in org.apache.tephra">TransactionSystemClient</a></code></dd>
+<dt><span class="strong">Parameters:</span></dt><dd><code>tx</code> - the current transaction to checkpoint</dd>
+<dt><span class="strong">Returns:</span></dt><dd>an updated transaction instance with the new write pointer</dd>
+<dt><span class="strong">Throws:</span></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionNotInProgressException.html" title="class in org.apache.tephra">TransactionNotInProgressException</a></code></dd></dl>
+</li>
+</ul>
+<a name="getSnapshotInputStream()">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getSnapshotInputStream</h4>
+<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;getSnapshotInputStream()
+                                   throws <a href="../../../../org/apache/tephra/TransactionCouldNotTakeSnapshotException.html" title="class in org.apache.tephra">TransactionCouldNotTakeSnapshotException</a></pre>
+<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#getSnapshotInputStream()">TransactionSystemClient</a></code></strong></div>
+<div class="block">Retrieves the state of the transaction manager and send it as a stream. The snapshot will not be persisted.</div>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#getSnapshotInputStream()">getSnapshotInputStream</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html" title="interface in org.apache.tephra">TransactionSystemClient</a></code></dd>
+<dt><span class="strong">Returns:</span></dt><dd>an input stream containing an encoded snapshot of the transaction manager</dd>
+<dt><span class="strong">Throws:</span></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionCouldNotTakeSnapshotException.html" title="class in org.apache.tephra">TransactionCouldNotTakeSnapshotException</a></code></dd></dl>
+</li>
+</ul>
+<a name="status()">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>status</h4>
+<pre>public&nbsp;<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>&nbsp;status()</pre>
+<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#status()">TransactionSystemClient</a></code></strong></div>
+<div class="block">Return the status of the transaction Manager</div>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#status()">status</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html" title="interface in org.apache.tephra">TransactionSystemClient</a></code></dd>
+<dt><span class="strong">Returns:</span></dt><dd>a String which denotes the status of txManager</dd></dl>
+</li>
+</ul>
+<a name="resetState()">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>resetState</h4>
+<pre>public&nbsp;void&nbsp;resetState()</pre>
+<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#resetState()">TransactionSystemClient</a></code></strong></div>
+<div class="block">Resets the state of the transaction manager.</div>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#resetState()">resetState</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html" title="interface in org.apache.tephra">TransactionSystemClient</a></code></dd>
+</dl>
+</li>
+</ul>
+<a name="truncateInvalidTx(java.util.Set)">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>truncateInvalidTx</h4>
+<pre>public&nbsp;boolean&nbsp;truncateInvalidTx(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<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>&gt;&nbsp;invalidTxIds)</pre>
+<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#truncateInvalidTx(java.util.Set)">TransactionSystemClient</a></code></strong></div>
+<div class="block">Removes the given transaction ids from the invalid list.</div>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#truncateInvalidTx(java.util.Set)">truncateInvalidTx</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html" title="interface in org.apache.tephra">TransactionSystemClient</a></code></dd>
+<dt><span class="strong">Parameters:</span></dt><dd><code>invalidTxIds</code> - transaction ids</dd>
+<dt><span class="strong">Returns:</span></dt><dd>true if invalid list got changed, false otherwise</dd></dl>
+</li>
+</ul>
+<a name="truncateInvalidTxBefore(long)">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>truncateInvalidTxBefore</h4>
+<pre>public&nbsp;boolean&nbsp;truncateInvalidTxBefore(long&nbsp;time)
+                                throws <a href="../../../../org/apache/tephra/InvalidTruncateTimeException.html" title="class in org.apache.tephra">InvalidTruncateTimeException</a></pre>
+<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#truncateInvalidTxBefore(long)">TransactionSystemClient</a></code></strong></div>
+<div class="block">Removes all transaction ids started before the given time from invalid list.</div>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#truncateInvalidTxBefore(long)">truncateInvalidTxBefore</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html" title="interface in org.apache.tephra">TransactionSystemClient</a></code></dd>
+<dt><span class="strong">Parameters:</span></dt><dd><code>time</code> - time in milliseconds</dd>
+<dt><span class="strong">Returns:</span></dt><dd>true if invalid list got changed, false otherwise</dd>
+<dt><span class="strong">Throws:</span></dt>
+<dd><code><a href="../../../../org/apache/tephra/InvalidTruncateTimeException.html" title="class in org.apache.tephra">InvalidTruncateTimeException</a></code> - if there are any in-progress transactions started before given time</dd></dl>
+</li>
+</ul>
+<a name="getInvalidSize()">
+<!--   -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>getInvalidSize</h4>
+<pre>public&nbsp;int&nbsp;getInvalidSize()</pre>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code><a href="../../../../org/apache/tephra/TransactionSystemClient.html#getInvalidSize()">getInvalidSize</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/tephra/TransactionSystemClient.html" title="interface in org.apache.tephra">TransactionSystemClient</a></code></dd>
+<dt><span class="strong">Returns:</span></dt><dd>the size of invalid list</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/TransactionServiceClient.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/tephra/distributed/TransactionService.html" title="class in org.apache.tephra.distributed"><span class="strong">Prev Class</span></a></li>
+<li><a href="../../../../org/apache/tephra/distributed/TransactionServiceThriftClient.html" title="class in org.apache.tephra.distributed"><span class="strong">Next Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../../index.html?org/apache/tephra/distributed/TransactionServiceClient.html" target="_top">Frames</a></li>
+<li><a href="TransactionServiceClient.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:&nbsp;</li>
+<li>Nested&nbsp;|&nbsp;</li>
+<li>Field&nbsp;|&nbsp;</li>
+<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method_summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail:&nbsp;</li>
+<li>Field&nbsp;|&nbsp;</li>
+<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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 &#169; 2017 <a href="http://www.apache.org">The Apache Software Foundation</a>. All rights reserved.</small></p>
+</body>
+</html>


Mime
View raw message