ChronologyProtector Class Reference

Class for ensuring a consistent ordering of events as seen by the user, despite replication. More...

List of all members.

Public Member Functions

 initLB ($lb)
 Initialise a LoadBalancer to give it appropriate chronology protection.
 shutdownLB ($lb)
 Notify the ChronologyProtector that the LoadBalancer is about to shut down.
 shutdown ()
 Notify the ChronologyProtector that the LBFactory is done calling shutdownLB() for now.

Public Attributes

 $startupPos
 $shutdownPos = array()


Detailed Description

Class for ensuring a consistent ordering of events as seen by the user, despite replication.

Kind of like Hawking's [[Chronology Protection Agency]].

Definition at line 204 of file LBFactory.php.


Member Function Documentation

ChronologyProtector::initLB ( lb  ) 

Initialise a LoadBalancer to give it appropriate chronology protection.

Parameters:
LoadBalancer $lb

Definition at line 213 of file LBFactory.php.

References $lb, and wfDebug().

ChronologyProtector::shutdown (  ) 

Notify the ChronologyProtector that the LBFactory is done calling shutdownLB() for now.

May commit chronology data to persistent storage.

Definition at line 264 of file LBFactory.php.

References wfDebug().

ChronologyProtector::shutdownLB ( lb  ) 

Notify the ChronologyProtector that the LoadBalancer is about to shut down.

Saves replication positions.

Parameters:
LoadBalancer $lb

Definition at line 238 of file LBFactory.php.

References $db, $lb, and wfDebug().


Member Data Documentation

ChronologyProtector::$shutdownPos = array()

Definition at line 206 of file LBFactory.php.

ChronologyProtector::$startupPos

Definition at line 205 of file LBFactory.php.


The documentation for this class was generated from the following file:

Generated on Sat Sep 5 02:08:34 2009 for MediaWiki by  doxygen 1.5.9