Package | Description |
---|---|
net.jini.core.transaction |
These are the transaction abstraction's interfaces and classes.
|
net.jini.core.transaction.server |
These are the default transaction semantics for participant/manager interaction.
|
org.apache.river.mahalo |
Provides implementations of the
TransactionManager service.
|
org.apache.river.outrigger |
This is an implementation of a JavaSpaces technology-enabled service.
|
Modifier and Type | Method and Description |
---|---|
static Transaction.Created |
TransactionFactory.create(TransactionManager mgr,
long leaseTime)
Create a new top-level transaction.
|
Modifier and Type | Interface and Description |
---|---|
interface |
NestableTransactionManager
The interface used for managers of the two-phase commit protocol for
nestable transactions.
|
Modifier and Type | Field and Description |
---|---|
TransactionManager |
ServerTransaction.mgr
The transaction manager.
|
Modifier and Type | Method and Description |
---|---|
void |
TransactionParticipant.abort(TransactionManager mgr,
long id)
Requests that the participant roll back any changes for the specified
transaction and unlock any resources locked by the transaction.
|
void |
TransactionParticipant.commit(TransactionManager mgr,
long id)
Requests that the participant make all of its
PREPARED
changes for the specified transaction visible outside of the
transaction and unlock any resources locked by the transaction. |
int |
TransactionParticipant.prepare(TransactionManager mgr,
long id)
Requests that the participant prepare itself to commit the transaction,
and to vote on the outcome of the transaction.
|
int |
TransactionParticipant.prepareAndCommit(TransactionManager mgr,
long id)
A combination of
prepare and commit , which
can be used by the manager when there is just one participant left to
prepare and all other participants (if any) have responded with
NOTCHANGED . |
Constructor and Description |
---|
ServerTransaction(TransactionManager mgr,
long id)
Simple constructor.
|
Modifier and Type | Interface and Description |
---|---|
interface |
TxnManager
Encapsulates the interface of an implementation of
a
TransactionManager . |
Modifier and Type | Class and Description |
---|---|
(package private) class |
ActivatableMahaloImpl
Convenience class intended for use with the
ServiceStarter framework to start
an implementation of Mahalo that is activatable, and which will
log its state information to persistent storage. |
(package private) class |
NonActivatableMahaloImpl
Convenience class intended for use with the
ServiceStarter framework to start
an implementation of Mahalo that is not activatable, but which
will log its state information to persistent storage. |
(package private) class |
TransientMahaloImpl
Convenience class intended for use with the
ServiceStarter framework to start
a transient (non-activatable, non-persistent) implementation
of Mahalo. |
(package private) class |
TxnManagerImpl
An implementation of the Jini Transaction Specification.
|
(package private) class |
TxnMgrProxy
A
TxnMgrProxy is a proxy for the
transaction manager service. |
(package private) static class |
TxnMgrProxy.ConstrainableTxnMgrProxy
A subclass of TxnMgrProxy that implements RemoteMethodControl.
|
Modifier and Type | Field and Description |
---|---|
private TransactionManager |
SettlerTask.txnmgr |
Modifier and Type | Method and Description |
---|---|
TransactionManager |
TxnManagerImpl.manager()
Returns a reference to the
TransactionManager
interface. |
TransactionManager |
TxnManager.manager()
Returns a reference to the
TransactionManager
interface. |
Constructor and Description |
---|
SettlerTask(java.util.concurrent.ExecutorService manager,
WakeupManager wm,
TransactionManager txnmgr,
long tid)
Constructs a
SettlerTask . |
TxnManagerTransaction(TransactionManager mgr,
LogManager logmgr,
long id,
java.util.concurrent.ExecutorService threadpool,
WakeupManager wm,
TxnSettler settler,
Uuid uuid)
Constructs a
TxnManagerTransaction |
Modifier and Type | Field and Description |
---|---|
private TransactionManager |
TxnTable.Key.manager
The manager for the transaction
|
Modifier and Type | Method and Description |
---|---|
(package private) TransactionManager |
Txn.getManager()
Return the manager associated with this transaction.
|
Modifier and Type | Method and Description |
---|---|
void |
ParticipantProxy.abort(TransactionManager mgr,
long id) |
void |
OutriggerServerWrapper.abort(TransactionManager mgr,
long id) |
void |
OutriggerServerImpl.abort(TransactionManager mgr,
long id) |
private UnmarshalException |
OutriggerServerImpl.brokenTxn(TransactionManager mgr,
long id,
Exception nested)
Create, log, and throw a new UnmarshalException to represent
a transaction recovery failure
|
void |
ParticipantProxy.commit(TransactionManager mgr,
long id) |
void |
OutriggerServerWrapper.commit(TransactionManager mgr,
long id) |
void |
OutriggerServerImpl.commit(TransactionManager mgr,
long id) |
(package private) Txn |
TxnTable.get(TransactionManager manager,
long id)
Given a
TransactionManager , manager , and a
transaction id, return the associated Txn , or
null if there is no Txn for this manager/id
pair. |
private Txn |
OutriggerServerImpl.getTxn(TransactionManager mgr,
long id)
Look in the table for the
Txn object for the given
manager/id pair. |
int |
ParticipantProxy.prepare(TransactionManager mgr,
long id) |
int |
OutriggerServerWrapper.prepare(TransactionManager mgr,
long id) |
int |
OutriggerServerImpl.prepare(TransactionManager mgr,
long id) |
int |
ParticipantProxy.prepareAndCommit(TransactionManager mgr,
long id) |
int |
OutriggerServerWrapper.prepareAndCommit(TransactionManager mgr,
long id) |
int |
OutriggerServerImpl.prepareAndCommit(TransactionManager mgr,
long id) |
(package private) void |
TxnTable.remove(TransactionManager manager,
long id)
Remove the mapping for the given
TransactionManager , id
pair. |
Constructor and Description |
---|
Key(TransactionManager manager,
long id,
boolean prepared)
Create a new key from the specified manager and id.
|
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.