org.openorb.ots.log
Class LogMonitor

java.lang.Object
  extended by org.openorb.ots.log.LogMonitor

public class LogMonitor
extends java.lang.Object

The log monitor is able to get information from logs a transaction. This monitor is useful for transaction managment and transaction recovery.

Author:
Jerome Daniel

Constructor Summary
LogMonitor(org.omg.CORBA.ORB orb, org.apache.avalon.framework.logger.Logger logger)
          Constructor
 
Method Summary
 Resource[] free_resources(XID xid)
          Return all free resources ( not prepared, not committed, not rolledback ) for a transaction.
 boolean is_any_rollback(XID xid)
          Return true if one resource has rolledback
 Vote prepare_vote(XID xid)
          Return a vote result after a prepare.
 Resource[] prepared_resources(XID xid)
          Return all prepared resources ( not committed, not rolledback ) for a transaction.
 Resource[] registered_resources(XID xid)
          Return all registered resources for a transaction.
 Status transaction_status(XID xid)
          Return a transaction status
 XID[] uncompleted_transactions()
          Return all uncompleted transactions XIDs.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogMonitor

public LogMonitor(org.omg.CORBA.ORB orb,
                  org.apache.avalon.framework.logger.Logger logger)
Constructor

Method Detail

transaction_status

public Status transaction_status(XID xid)
Return a transaction status


uncompleted_transactions

public XID[] uncompleted_transactions()
Return all uncompleted transactions XIDs.


registered_resources

public Resource[] registered_resources(XID xid)
Return all registered resources for a transaction.


prepared_resources

public Resource[] prepared_resources(XID xid)
Return all prepared resources ( not committed, not rolledback ) for a transaction.


free_resources

public Resource[] free_resources(XID xid)
Return all free resources ( not prepared, not committed, not rolledback ) for a transaction.


prepare_vote

public Vote prepare_vote(XID xid)
Return a vote result after a prepare.


is_any_rollback

public boolean is_any_rollback(XID xid)
Return true if one resource has rolledback