From commits-return-760-apmail-tephra-commits-archive=tephra.apache.org@tephra.incubator.apache.org Fri Sep 22 01:02:14 2017 Return-Path: X-Original-To: apmail-tephra-commits-archive@minotaur.apache.org Delivered-To: apmail-tephra-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C9A98C7BC for ; Fri, 22 Sep 2017 01:02:14 +0000 (UTC) Received: (qmail 78893 invoked by uid 500); 22 Sep 2017 01:02:14 -0000 Delivered-To: apmail-tephra-commits-archive@tephra.apache.org Received: (qmail 78843 invoked by uid 500); 22 Sep 2017 01:02:14 -0000 Mailing-List: contact commits-help@tephra.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tephra.incubator.apache.org Delivered-To: mailing list commits@tephra.incubator.apache.org Received: (qmail 78826 invoked by uid 99); 22 Sep 2017 01:02:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Sep 2017 01:02:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C7A51D7634 for ; Fri, 22 Sep 2017 01:02:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.022 X-Spam-Level: X-Spam-Status: No, score=-3.022 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_MANYCOMMENTS=1.2, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id uPL_fCiTk__i for ; Fri, 22 Sep 2017 01:02:06 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 2AF3B61269 for ; Fri, 22 Sep 2017 01:01:59 +0000 (UTC) Received: (qmail 78456 invoked by uid 99); 22 Sep 2017 01:01:58 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Sep 2017 01:01:58 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4C946F5AAB; Fri, 22 Sep 2017 01:01:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: anew@apache.org To: commits@tephra.incubator.apache.org Date: Fri, 22 Sep 2017 01:02:35 -0000 Message-Id: In-Reply-To: <8a0e88280ecf400685675402c10765fb@git.apache.org> References: <8a0e88280ecf400685675402c10765fb@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [40/51] [abbrv] [partial] incubator-tephra git commit: Update site for release 0.13.0-incubating http://git-wip-us.apache.org/repos/asf/incubator-tephra/blob/4e1e5e9a/src/site/resources/apidocs-0.13.0-incubating/org/apache/tephra/TransactionCodec.html ---------------------------------------------------------------------- diff --git a/src/site/resources/apidocs-0.13.0-incubating/org/apache/tephra/TransactionCodec.html b/src/site/resources/apidocs-0.13.0-incubating/org/apache/tephra/TransactionCodec.html new file mode 100644 index 0000000..eacb510 --- /dev/null +++ b/src/site/resources/apidocs-0.13.0-incubating/org/apache/tephra/TransactionCodec.html @@ -0,0 +1,297 @@ + + + + + + +TransactionCodec (Apache Tephra 0.13.0-incubating API) + + + + + + + + + + + + +
+
org.apache.tephra
+

Class TransactionCodec

+
+
+ +
+
    +
  • +
    +
    +
    public class TransactionCodec
    +extends Object
    +
    Handles serialization and deserialization of Transaction instances to and from byte[].
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2017 The Apache Software Foundation. All rights reserved.

+ + http://git-wip-us.apache.org/repos/asf/incubator-tephra/blob/4e1e5e9a/src/site/resources/apidocs-0.13.0-incubating/org/apache/tephra/TransactionConflictException.html ---------------------------------------------------------------------- diff --git a/src/site/resources/apidocs-0.13.0-incubating/org/apache/tephra/TransactionConflictException.html b/src/site/resources/apidocs-0.13.0-incubating/org/apache/tephra/TransactionConflictException.html new file mode 100644 index 0000000..32bcdcf --- /dev/null +++ b/src/site/resources/apidocs-0.13.0-incubating/org/apache/tephra/TransactionConflictException.html @@ -0,0 +1,372 @@ + + + + + + +TransactionConflictException (Apache Tephra 0.13.0-incubating API) + + + + + + + + + + + + +
+
org.apache.tephra
+

Class TransactionConflictException

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2017 The Apache Software Foundation. All rights reserved.

+ + http://git-wip-us.apache.org/repos/asf/incubator-tephra/blob/4e1e5e9a/src/site/resources/apidocs-0.13.0-incubating/org/apache/tephra/TransactionContext.html ---------------------------------------------------------------------- diff --git a/src/site/resources/apidocs-0.13.0-incubating/org/apache/tephra/TransactionContext.html b/src/site/resources/apidocs-0.13.0-incubating/org/apache/tephra/TransactionContext.html new file mode 100644 index 0000000..b5bc171 --- /dev/null +++ b/src/site/resources/apidocs-0.13.0-incubating/org/apache/tephra/TransactionContext.html @@ -0,0 +1,500 @@ + + + + + + +TransactionContext (Apache Tephra 0.13.0-incubating API) + + + + + + + + + + + + +
+
org.apache.tephra
+

Class TransactionContext

+
+
+ +
+
    +
  • +
    +
    +
    public class TransactionContext
    +extends Object
    +
    Utility class that encapsulates the transaction life cycle over a given set of + transaction-aware datasets. It is not thread-safe for concurrent execution.
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addTransactionAware

        +
        public boolean addTransactionAware(TransactionAware txAware)
        +
        Adds a new transaction-aware to participate in the transaction.
        +
        +
        Parameters:
        +
        txAware - the new transaction-aware
        +
        +
      • +
      + + + +
        +
      • +

        removeTransactionAware

        +
        public boolean removeTransactionAware(TransactionAware txAware)
        +
        Removes a TransactionAware and withdraws from participation in the transaction. + Withdrawal is only allowed if there is no active transaction.
        +
        +
        Parameters:
        +
        txAware - the TransactionAware to be removed
        +
        Returns:
        +
        true if the given TransactionAware is removed; false otherwise.
        +
        Throws:
        +
        IllegalStateException - if there is an active transaction going on with this TransactionContext.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        start

        +
        public void start(int timeout)
        +           throws TransactionFailureException
        +
        Starts a new transaction. Calling this will initiate a new transaction using the TransactionSystemClient, + and pass the returned transaction to TransactionAware.startTx(Transaction) for each registered + TransactionAware. If an exception is encountered, the transaction will be aborted and a + TransactionFailureException wrapping the root cause will be thrown.
        +
        +
        Parameters:
        +
        timeout - the transaction timeout for the transaction
        +
        Throws:
        +
        TransactionFailureException - if an exception occurs starting the transaction with any registered + TransactionAware
        +
        +
      • +
      + + + + + + + +
        +
      • +

        abort

        +
        public void abort()
        +           throws TransactionFailureException
        +
        Aborts the given transaction, and rolls back all data set changes. If rollback fails, + the transaction is invalidated. If an exception is caught during rollback, the exception + is rethrown wrapped in a TransactionFailureException, after all remaining TransactionAwares have + completed rollback.
        +
        +
        Throws:
        +
        TransactionFailureException - for any exception that is encountered.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getCurrentTransaction

        +
        @Nullable
        +public Transaction getCurrentTransaction()
        +
        Returns the current transaction or null if no transaction is currently in progress.
        +
      • +
      + + + +
        +
      • +

        abort

        +
        public void abort(TransactionFailureException cause)
        +           throws TransactionFailureException
        +
        Aborts the given transaction, and rolls back all data set changes. If rollback fails, + the transaction is invalidated. If an exception is caught during rollback, the exception + is rethrown wrapped into a TransactionFailureException, after all remaining TransactionAwares have + completed rollback. If an existing exception is passed in, that exception is thrown in either + case, whether the rollback is successful or not. In other words, this method always throws the + first exception that it encounters.
        +
        +
        Parameters:
        +
        cause - the original exception that caused the abort
        +
        Throws:
        +
        TransactionFailureException - for any exception that is encountered.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2017 The Apache Software Foundation. All rights reserved.

+ + http://git-wip-us.apache.org/repos/asf/incubator-tephra/blob/4e1e5e9a/src/site/resources/apidocs-0.13.0-incubating/org/apache/tephra/TransactionCouldNotTakeSnapshotException.html ---------------------------------------------------------------------- diff --git a/src/site/resources/apidocs-0.13.0-incubating/org/apache/tephra/TransactionCouldNotTakeSnapshotException.html b/src/site/resources/apidocs-0.13.0-incubating/org/apache/tephra/TransactionCouldNotTakeSnapshotException.html new file mode 100644 index 0000000..95d12e4 --- /dev/null +++ b/src/site/resources/apidocs-0.13.0-incubating/org/apache/tephra/TransactionCouldNotTakeSnapshotException.html @@ -0,0 +1,265 @@ + + + + + + +TransactionCouldNotTakeSnapshotException (Apache Tephra 0.13.0-incubating API) + + + + + + + + + + + + +
+
org.apache.tephra
+

Class TransactionCouldNotTakeSnapshotException

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable
    +
    +
    +
    +
    public class TransactionCouldNotTakeSnapshotException
    +extends Exception
    +
    Throw when taking a snapshot fails.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TransactionCouldNotTakeSnapshotException

        +
        public TransactionCouldNotTakeSnapshotException(String message)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2017 The Apache Software Foundation. All rights reserved.

+ +