Class TransLogger

    • Constructor Summary

      Constructors 
      Constructor Description
      TransLogger()
      Create a logger for begin-commit/abort-end
      TransLogger​(org.slf4j.Logger logger)
      Create a logger, either just begin-commit/abort-end or all steps
      TransLogger​(org.slf4j.Logger logger, boolean all)
      Create a logger, either just begin-commit/abort-end or all steps
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void abort​(Transaction transaction)
      Abort a transaction (undo the effect of a transaction)
      void attach​(SysTransState systemState)
      Set the current thread to be in the transaction.
      void begin​(Transaction transaction)
      Start a transaction; return an identifier for this components use.
      void cleanStart()
      Indicate that no recovery is being done (the journal thinks everything was completed last time)
      void commit​(Transaction transaction)
      Commit a transaction (make durable).
      void commitEnd​(Transaction transaction)
      Signal all commits on all components are done and replay from the journal will not happen.
      java.nio.ByteBuffer commitPrepare​(Transaction transaction)
      Prepare for a commit.
      void complete​(Transaction transaction)
      Finalization - the coordinator will not mention the transaction again.
      SysTransState detach()
      Detach this component from the transaction of the current thread and return some internal state that can be used in a future call of TransactionalComponent.attach(SysTransState)
      void finishRecovery()
      End of the recovery phase
      ComponentId getComponentId()
      Every component instance must supplied a unique number.
      boolean promote​(Transaction transaction)
      Promote a component in a transaction.
      void recover​(java.nio.ByteBuffer ref)
      Notification that ref was really committed and is being recovered.
      void shutdown()
      Shutdown component, aborting any in-progress transactions.
      void startRecovery()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait