org.openorb.ots.log
Class Reader
public
class
Reader
extends Object
This class is used to read logs.
Author: Jerome Daniel
Method Summary |
void | close()
This operation is used to close this log reader |
boolean | free_resources(XID xid, Vector resources)
This operation returns all free resources ( not prepared, not committed, not rolledback )
for this transaction XID.
|
int | is_any_rollback(XID xid)
Return 0 if no rollback found for a resource, 1 if a rollback is found and 2 if
the rollback is not found with transaction begin |
boolean | prepared_resources(XID xid, Vector resources)
This operation returns all prepared resources ( not committed, not rolledback )
for this transaction XID. |
int | prepare_vote(XID xid)
This operation returns the prepare vote found in this log for the asked XID |
String | previous_log()
Return the previous log name or NULL if none. |
boolean | registered_resources(XID xid, Vector resources)
This operation returns all registered resources for this transaction XID. |
Status | transaction_status(XID xid)
This operation returns the transaction status found in this log for the asked XID |
XID[] | uncompleted_transactions()
Return all uncompleted transactions found into this log |
public Reader(String log_name, ORB orb, Logger logger)
Constructor
public void close()
This operation is used to close this log reader
public boolean free_resources(
XID xid, Vector resources)
This operation returns all free resources ( not prepared, not committed, not rolledback )
for this transaction XID.
It also returns TRUE if the begin transaction was found into this log.
public int is_any_rollback(
XID xid)
Return 0 if no rollback found for a resource, 1 if a rollback is found and 2 if
the rollback is not found with transaction begin
public boolean prepared_resources(
XID xid, Vector resources)
This operation returns all prepared resources ( not committed, not rolledback )
for this transaction XID. It also returns TRUE if the begin transaction was
found into this log.
public int prepare_vote(
XID xid)
This operation returns the prepare vote found in this log for the asked XID
public String previous_log()
Return the previous log name or NULL if none.
public boolean registered_resources(
XID xid, Vector resources)
This operation returns all registered resources for this transaction XID. It also
returns TRUE if the begin transaction was found into this log.
This operation returns the transaction status found in this log for the asked XID
public
XID[] uncompleted_transactions()
Return all uncompleted transactions found into this log