GigaSpaces XAP 10.0.1 API

net.jini.core.transaction.server
Interface ExtendedTransactionManager

All Superinterfaces:
Remote, TransactionConstants, TransactionManager
All Known Subinterfaces:
TxnManager
All Known Implementing Classes:
LocalTransactionManager, TxnManagerImpl, TxnMgrProxy

public interface ExtendedTransactionManager
extends TransactionManager

additional apis for transaction manager


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.jini.core.transaction.server.TransactionManager
TransactionManager.Created
 
Field Summary
 
Fields inherited from interface net.jini.core.transaction.server.TransactionConstants
ABORTED, ACTIVE, COMMITTED, NOTCHANGED, PREPARED, VOTING
 
Method Summary
 void abort(Object xid)
           
 void abort(Object xid, long waitFor)
           
 void commit(Object xid)
           
 void commit(Object xid, long waitFor)
           
 TransactionManager.Created create(Object xid, long lease)
           
 boolean disJoin(long id, TransactionParticipant preparedPart)
          Remove a participant that was joined for a first time. called when a call to a participant returned empty so we can spare calling commit or abort on it, usually used in embedded mahalo
 int getState(Object id)
           
 void join(long id, TransactionParticipant part, long crashCount, int partitionId, String clusterName)
           
 void join(long id, TransactionParticipant part, long crashCount, ServerTransaction userXtnObject)
          Deprecated. 
 void join(long id, TransactionParticipant part, long crashCount, ServerTransaction userXtnObject, int partitionId, String clusterName, Object clusterProxy)
           
 void join(Object id, TransactionParticipant part, long crashCount)
           
 void join(Object id, TransactionParticipant part, long crashCount, int partitionId, String clusterName)
           
 void join(Object id, TransactionParticipant part, long crashCount, ServerTransaction userXtnObject)
          Deprecated. 
 void join(Object id, TransactionParticipant part, long crashCount, ServerTransaction userXtnObject, int partitionId, String clusterName, Object clusterProxy)
           
 int prepare(Object xid)
          prepare the underlying xtn designated by the rendered xid
 
Methods inherited from interface net.jini.core.transaction.server.TransactionManager
abort, abort, commit, commit, create, getState, getTransactionManagerId, join, needParticipantsJoin
 

Method Detail

disJoin

boolean disJoin(long id,
                TransactionParticipant preparedPart)
                throws UnknownTransactionException,
                       RemoteException
Remove a participant that was joined for a first time. called when a call to a participant returned empty so we can spare calling commit or abort on it, usually used in embedded mahalo

Parameters:
part - The joining TransactionParticpant
Returns:
true if participant disjoined
Throws:
UnknownTransactionException
RemoteException
See Also:
TransactionParticipant

commit

void commit(Object xid)
            throws UnknownTransactionException,
                   CannotCommitException,
                   RemoteException
Throws:
UnknownTransactionException
CannotCommitException
RemoteException

commit

void commit(Object xid,
            long waitFor)
            throws UnknownTransactionException,
                   CannotCommitException,
                   TimeoutExpiredException,
                   RemoteException
Throws:
UnknownTransactionException
CannotCommitException
TimeoutExpiredException
RemoteException

abort

void abort(Object xid)
           throws UnknownTransactionException,
                  CannotAbortException,
                  RemoteException
Throws:
UnknownTransactionException
CannotAbortException
RemoteException

abort

void abort(Object xid,
           long waitFor)
           throws UnknownTransactionException,
                  CannotAbortException,
                  TimeoutExpiredException,
                  RemoteException
Throws:
UnknownTransactionException
CannotAbortException
TimeoutExpiredException
RemoteException

prepare

int prepare(Object xid)
            throws CannotCommitException,
                   UnknownTransactionException,
                   RemoteException
prepare the underlying xtn designated by the rendered xid

Parameters:
xid -
Returns:
Throws:
UnknownTransactionException
RemoteException
CannotCommitException

join

void join(Object id,
          TransactionParticipant part,
          long crashCount)
          throws UnknownTransactionException,
                 CannotJoinException,
                 CrashCountException,
                 RemoteException
Throws:
UnknownTransactionException
CannotJoinException
CrashCountException
RemoteException

create

TransactionManager.Created create(Object xid,
                                  long lease)
                                  throws LeaseDeniedException,
                                         RemoteException
Throws:
LeaseDeniedException
RemoteException

getState

int getState(Object id)
             throws UnknownTransactionException,
                    RemoteException
Throws:
UnknownTransactionException
RemoteException

join

@Deprecated
void join(long id,
                     TransactionParticipant part,
                     long crashCount,
                     ServerTransaction userXtnObject)
          throws UnknownTransactionException,
                 CannotJoinException,
                 CrashCountException,
                 RemoteException
Deprecated. 

Throws:
UnknownTransactionException
CannotJoinException
CrashCountException
RemoteException

join

@Deprecated
void join(Object id,
                     TransactionParticipant part,
                     long crashCount,
                     ServerTransaction userXtnObject)
          throws UnknownTransactionException,
                 CannotJoinException,
                 CrashCountException,
                 RemoteException
Deprecated. 

Throws:
UnknownTransactionException
CannotJoinException
CrashCountException
RemoteException

join

void join(long id,
          TransactionParticipant part,
          long crashCount,
          int partitionId,
          String clusterName)
          throws UnknownTransactionException,
                 CannotJoinException,
                 CrashCountException,
                 RemoteException
Throws:
UnknownTransactionException
CannotJoinException
CrashCountException
RemoteException

join

void join(Object id,
          TransactionParticipant part,
          long crashCount,
          int partitionId,
          String clusterName)
          throws UnknownTransactionException,
                 CannotJoinException,
                 CrashCountException,
                 RemoteException
Throws:
UnknownTransactionException
CannotJoinException
CrashCountException
RemoteException

join

void join(long id,
          TransactionParticipant part,
          long crashCount,
          ServerTransaction userXtnObject,
          int partitionId,
          String clusterName,
          Object clusterProxy)
          throws UnknownTransactionException,
                 CannotJoinException,
                 CrashCountException,
                 RemoteException
Throws:
UnknownTransactionException
CannotJoinException
CrashCountException
RemoteException

join

void join(Object id,
          TransactionParticipant part,
          long crashCount,
          ServerTransaction userXtnObject,
          int partitionId,
          String clusterName,
          Object clusterProxy)
          throws UnknownTransactionException,
                 CannotJoinException,
                 CrashCountException,
                 RemoteException
Throws:
UnknownTransactionException
CannotJoinException
CrashCountException
RemoteException

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.