MediaWiki  REL1_19
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.
 shutdown ()
 Notify the ChronologyProtector that the LBFactory is done calling shutdownLB() for now.
 shutdownLB ($lb)
 Notify the ChronologyProtector that the LoadBalancer is about to shut down.

Public Attributes

 $shutdownPos = array()
 $startupPos

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 300 of file LBFactory.php.


Member Function Documentation

Initialise a LoadBalancer to give it appropriate chronology protection.

Parameters:
$lbLoadBalancer

Definition at line 309 of file LBFactory.php.

References $lb, and wfDebug().

Here is the call graph for this function:

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

May commit chronology data to persistent storage.

Definition at line 360 of file LBFactory.php.

References wfDebug().

Here is the call graph for this function:

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

Saves replication positions.

Parameters:
$lbLoadBalancer

Definition at line 334 of file LBFactory.php.

References $lb, and wfDebug().

Here is the call graph for this function:


Member Data Documentation

ChronologyProtector::$shutdownPos = array()

Definition at line 302 of file LBFactory.php.

ChronologyProtector::$startupPos

Definition at line 301 of file LBFactory.php.


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