Package com.iizix.txp.impl
Class TXProcessLogger
- java.lang.Object
- com.iizix.txp.impl.TXProcessLogger
- All Implemented Interfaces:
ITXPBasicLogger
,ITXProcessLogger
public class TXProcessLogger extends java.lang.Object implements ITXProcessLogger
- Author:
- Freggle
Constructor Summary
Constructors Constructor Description TXProcessLogger()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commitCompleted()
void
commitRequested()
void
completed()
void
created()
TXPException
error(java.lang.String message, java.lang.Throwable t)
protected TXPException
expand(java.lang.String m, java.lang.Throwable t)
TXPException
fatal(java.lang.String message, java.lang.Throwable t)
java.lang.String
info(java.lang.String message)
void
nodeAssociated(ITXPNode node, ITXPNode.State ns)
void
nodeDisassociated(ITXPNode node)
void
nodeTimedOut(ITXPNode node)
void
rollbackCompleted()
void
rollbackRequested()
ITXPNode.State
setLastNodeState(ITXPNode node, ITXPNode.State state)
ITXProcess.State
setState(ITXProcess.State state)
void
timedOut()
ITXPPolicy
usingLocalPolicy(ITXPPolicy policy)
TXPException
warning(java.lang.String message, java.lang.Throwable t)
Method Detail
expand
protected TXPException expand(java.lang.String m, java.lang.Throwable t)
fatal
public TXPException fatal(java.lang.String message, java.lang.Throwable t)
- Specified by:
fatal
in interfaceITXPBasicLogger
error
public TXPException error(java.lang.String message, java.lang.Throwable t)
- Specified by:
error
in interfaceITXPBasicLogger
warning
public TXPException warning(java.lang.String message, java.lang.Throwable t)
- Specified by:
warning
in interfaceITXPBasicLogger
info
public java.lang.String info(java.lang.String message)
- Specified by:
info
in interfaceITXPBasicLogger
created
public void created()
- Specified by:
created
in interfaceITXProcessLogger
usingLocalPolicy
public ITXPPolicy usingLocalPolicy(ITXPPolicy policy)
- Specified by:
usingLocalPolicy
in interfaceITXProcessLogger
nodeDisassociated
public void nodeDisassociated(ITXPNode node)
- Specified by:
nodeDisassociated
in interfaceITXProcessLogger
nodeAssociated
public void nodeAssociated(ITXPNode node, ITXPNode.State ns)
- Specified by:
nodeAssociated
in interfaceITXProcessLogger
setLastNodeState
public ITXPNode.State setLastNodeState(ITXPNode node, ITXPNode.State state)
- Specified by:
setLastNodeState
in interfaceITXProcessLogger
nodeTimedOut
public void nodeTimedOut(ITXPNode node)
- Specified by:
nodeTimedOut
in interfaceITXProcessLogger
commitRequested
public void commitRequested()
- Specified by:
commitRequested
in interfaceITXProcessLogger
commitCompleted
public void commitCompleted()
- Specified by:
commitCompleted
in interfaceITXProcessLogger
rollbackRequested
public void rollbackRequested()
- Specified by:
rollbackRequested
in interfaceITXProcessLogger
rollbackCompleted
public void rollbackCompleted()
- Specified by:
rollbackCompleted
in interfaceITXProcessLogger
setState
public ITXProcess.State setState(ITXProcess.State state)
- Specified by:
setState
in interfaceITXProcessLogger
completed
public void completed()
- Specified by:
completed
in interfaceITXProcessLogger
timedOut
public void timedOut()
- Specified by:
timedOut
in interfaceITXProcessLogger