infoservice.agreement.paxos
Class PaxosObject

java.lang.Object
  extended by infoservice.agreement.paxos.PaxosObject
Direct Known Subclasses:
PaxosCommunicator, PaxosExecution, PaxosInstance, PaxosRejectManager, PaxosRound

public abstract class PaxosObject
extends java.lang.Object


Field Summary
private static IAgreementLog m_log
           
 
Constructor Summary
PaxosObject()
           
 
Method Summary
 void debug(java.lang.String a_msg)
          Logs a message at debug level
 void error(java.lang.String a_msg)
          Logs a message at error level
 void fatal(java.lang.String a_msg)
          Logs a message at fatal level
protected  IAgreementLog getLog()
          Returns the IAgreementLog associated to this PaxosObject
 void info(java.lang.String a_msg)
          Logs a message at info level
protected static void setLog(IAgreementLog a_log)
          Sets the logging instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_log

private static IAgreementLog m_log
Constructor Detail

PaxosObject

public PaxosObject()
Method Detail

setLog

protected static void setLog(IAgreementLog a_log)
Sets the logging instance. This is a write-once-method!

Parameters:
a_log - An IAgreementLog used to do the logging of all Paxos related instances

getLog

protected IAgreementLog getLog()
Returns the IAgreementLog associated to this PaxosObject

Returns:
The IAgreementLog associated to this PaxosObject

debug

public void debug(java.lang.String a_msg)
Logs a message at debug level

Parameters:
a_msg - The message to log

error

public void error(java.lang.String a_msg)
Logs a message at error level

Parameters:
a_msg - The message to log

fatal

public void fatal(java.lang.String a_msg)
Logs a message at fatal level

Parameters:
a_msg - The message to log

info

public void info(java.lang.String a_msg)
Logs a message at info level

Parameters:
a_msg - The message to log