-
Class Summary
| Class |
Description |
| BalanceBooks |
Simple example application that launches a number of concurrent clients, one per "account".
|
Package org.apache.tephra.examples Description
This package contains example applications for Tephra designed to illustrate sample Tephra usage
and provide out-of-the-box sample applications which can be run to test cluster functionality.
Currently the following applications are provided:
- BalanceBooks - this application runs a specified number of concurrent clients in separate
threads, which perform transactions to make withdrawals from each other's accounts and deposits to their own
accounts. At the end of the test, the total value of all account balances is verified to be equal to zero,
which confirms that transactional integrity was not violated.
Note that, for simplicity, the examples package is currently hardcoded to compile against a specific HBase
version (currently 2.0). In the future, we should provide Maven profiles to allow compiling the examples
against each of the supported HBase versions.