org.openorb.ots.log
Class Writer

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

public class Writer
extends java.lang.Object

This class is a log writer to save information about transaction processing.

Author:
Jerome Daniel

Method Summary
 void begin_transaction_sub(Control control)
          Add a log for transaction beginning for a sub coordinator Log is : TR_BEGIN : int xid : string
 void begin_transaction(Control control)
          Add a log for transaction beginning Log is : TR_BEGIN : int xid : string
 void changeLog()
          At 0:0, the log must be changed.
 void commit_begin(XID xid)
          Add a log for transaction commit beginning Log is : TR_COMMIT_BEGIN : int xid : string
 void commit_end(XID xid, Status status)
          Add a log for transaction commit ending Log is : TR_COMMIT_END : int xid : string status : int
 void commit_one_phase_begin(XID xid, Resource resource)
          Add a log for transaction one phase commit begin Log is : TR_COMMIT_ONE : int xid : string resource : ior
 void commit_resource(XID xid, Resource resource)
          Add a log for transaction commit resource Log is : TR_COMMIT_RESOURCE : int xid : string resource : ior
 void completed(XID xid)
          Add a log for transaction completion ( abort or commit ) Log is : TR_COMPLETED : int xid : string
static Writer getOut()
           
static void newWriter(org.omg.CORBA.ORB orb, boolean recovery, org.apache.avalon.framework.logger.Logger logger)
           
 void prepare_begin(XID xid)
          Add a log for transaction prepare beginning Log is : TR_PREPARE_BEGIN : int xid : string
 void prepare_end(XID xid, Status status, Vote vote)
          Add a log for transaction prepare ending Log is : TR_PREPARE_END : int xid : string status : int vote : int
 void prepare_resource(XID xid, Resource resource, Vote vote)
          Add a log for transaction resource prepare Log is : TR_PREPARE_RESOURCE : int xid : string resource : ior vote : int
 void previous_log(java.lang.String previous_log_name)
          Add a log for a previous log.
 void recovery_completed()
           
 void recovery()
          Add a log for a recovery.
 void register_resource(XID xid, Resource resource)
          Add a log for transaction resource registration Log is : TR_REGISTER : int xid : string resource : ior
 void rollback_begin(XID xid)
          Add a log for transaction rollback beginning Log is : TR_ROLLBACK_BEGIN : int xid : string
 void rollback_end(XID xid, Status status)
          Add a log for transaction rollback ending Log is : TR_ROLLBACK_END : int xid : string status : int
 void rollback_only(XID xid)
          Add a log for a rollback only invocation Log is : TR_ROLLBACK_ONLY : int xid : string
 void rollback_resource(XID xid, Resource resource)
          Add a log for transaction rollback Log is : TR_ROLLBACK_RESOURCE : int xid : string resource : ior
 void uncompleted(XID xid)
          Add a log for transaction uncompletion ( when we change log ) Log is : TR_UNCOMPLETED : int xid : string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOut

public static Writer getOut()

recovery_completed

public void recovery_completed()

begin_transaction

public void begin_transaction(Control control)
Add a log for transaction beginning Log is : TR_BEGIN : int xid : string


begin_transaction_sub

public void begin_transaction_sub(Control control)
Add a log for transaction beginning for a sub coordinator Log is : TR_BEGIN : int xid : string


rollback_only

public void rollback_only(XID xid)
Add a log for a rollback only invocation Log is : TR_ROLLBACK_ONLY : int xid : string


register_resource

public void register_resource(XID xid,
                              Resource resource)
Add a log for transaction resource registration Log is : TR_REGISTER : int xid : string resource : ior


commit_resource

public void commit_resource(XID xid,
                            Resource resource)
Add a log for transaction commit resource Log is : TR_COMMIT_RESOURCE : int xid : string resource : ior


commit_end

public void commit_end(XID xid,
                       Status status)
Add a log for transaction commit ending Log is : TR_COMMIT_END : int xid : string status : int


commit_begin

public void commit_begin(XID xid)
Add a log for transaction commit beginning Log is : TR_COMMIT_BEGIN : int xid : string


commit_one_phase_begin

public void commit_one_phase_begin(XID xid,
                                   Resource resource)
Add a log for transaction one phase commit begin Log is : TR_COMMIT_ONE : int xid : string resource : ior


rollback_end

public void rollback_end(XID xid,
                         Status status)
Add a log for transaction rollback ending Log is : TR_ROLLBACK_END : int xid : string status : int


rollback_begin

public void rollback_begin(XID xid)
Add a log for transaction rollback beginning Log is : TR_ROLLBACK_BEGIN : int xid : string


rollback_resource

public void rollback_resource(XID xid,
                              Resource resource)
Add a log for transaction rollback Log is : TR_ROLLBACK_RESOURCE : int xid : string resource : ior


prepare_resource

public void prepare_resource(XID xid,
                             Resource resource,
                             Vote vote)
Add a log for transaction resource prepare Log is : TR_PREPARE_RESOURCE : int xid : string resource : ior vote : int


prepare_begin

public void prepare_begin(XID xid)
Add a log for transaction prepare beginning Log is : TR_PREPARE_BEGIN : int xid : string


prepare_end

public void prepare_end(XID xid,
                        Status status,
                        Vote vote)
Add a log for transaction prepare ending Log is : TR_PREPARE_END : int xid : string status : int vote : int


completed

public void completed(XID xid)
Add a log for transaction completion ( abort or commit ) Log is : TR_COMPLETED : int xid : string


uncompleted

public void uncompleted(XID xid)
Add a log for transaction uncompletion ( when we change log ) Log is : TR_UNCOMPLETED : int xid : string


recovery

public void recovery()
Add a log for a recovery. It means that everything above is no more needed for a next recovery Log is : TR_RECOVERY : int


previous_log

public void previous_log(java.lang.String previous_log_name)
Add a log for a previous log. Log is : TR_PREVIOUS_LOG : int previous log name : string


changeLog

public void changeLog()
At 0:0, the log must be changed. This operation closes the current log, creates a new one.


newWriter

public static void newWriter(org.omg.CORBA.ORB orb,
                             boolean recovery,
                             org.apache.avalon.framework.logger.Logger logger)