com.atomikos.icatch.trmi
Interface TerminationServer

All Superinterfaces:
Remote

public interface TerminationServer
extends Remote

A termination server is terminates transactions on the client's request, and does this based on root ID for efficiency.


Method Summary
 void commit(String root)
          Commit the composite transaction.
 void rollback(String root)
          Rollback the current transaction.
 

Method Detail

commit

void commit(String root)
            throws HeurRollbackException,
                   HeurMixedException,
                   SysException,
                   SecurityException,
                   RollbackException,
                   RemoteException
Commit the composite transaction.

Parameters:
root - The root id to commit.
Throws:
HeurRollbackException - On heuristic rollback.
HeurMixedException - On heuristic mixed outcome.
SysException - For unexpected failures.
SecurityException - If calling thread does not have right to commit.
RollbackException - If the transaction was rolled back before prepare.
RemoteException - If comm. failure happens.

rollback

void rollback(String root)
              throws IllegalStateException,
                     SysException,
                     RemoteException
Rollback the current transaction.

Parameters:
root - The root id to rollback.
Throws:
IllegalStateException - If prepared or inactive.
SysException - If unexpected error.
RemoteException - On comm. failure.


Copyright © 2012. All Rights Reserved.