org.openorb.ots.Admin
Class Manager

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.openorb.ots.ManagerPOA
          extended by org.openorb.ots.Admin.Manager
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, ManagerOperations

public class Manager
extends ManagerPOA

This class is a manager for the OpenORB OTS.

Author:
Jerome Daniel

Constructor Summary
Manager(org.omg.PortableServer.POA poa)
           
 
Method Summary
 Control[] currentTransactions(ManagerCallback callback)
          Return all the controls for current transactions.
 java.util.List getControls()
           
static void notifyCommit(XID xid)
          This function is used to receive notification for a transaction commit.
static void notifyHeuristic(XID xid, HeuristicKind heuristic)
          This function is used to receive notification for an heuristic decision.
 void notifyNewTransaction(Control ctrl, XID xid)
          This function is used to receive notification for a new transaction.
static void notifyRollback(XID xid)
          This function is used to receive notification for a transaction rollback.
 
Methods inherited from class org.openorb.ots.ManagerPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Manager

public Manager(org.omg.PortableServer.POA poa)
Method Detail

getControls

public java.util.List getControls()

currentTransactions

public Control[] currentTransactions(ManagerCallback callback)
Return all the controls for current transactions. By this way, it is possible to get access to the coordinator or the terminator to mage transacton management.


notifyNewTransaction

public void notifyNewTransaction(Control ctrl,
                                 XID xid)
This function is used to receive notification for a new transaction.


notifyCommit

public static void notifyCommit(XID xid)
This function is used to receive notification for a transaction commit.


notifyRollback

public static void notifyRollback(XID xid)
This function is used to receive notification for a transaction rollback.


notifyHeuristic

public static void notifyHeuristic(XID xid,
                                   HeuristicKind heuristic)
This function is used to receive notification for an heuristic decision.