MediaWiki
REL1_39
ILoadBalancerForOwner.php
Go to the documentation of this file.
1
<?php
20
namespace
Wikimedia\Rdbms
;
21
22
use Exception;
23
33
interface
ILoadBalancerForOwner
extends
ILoadBalancer
{
35
public
const
STAGE_POSTCOMMIT_CALLBACKS
=
'stage-postcommit-callbacks'
;
37
public
const
STAGE_POSTROLLBACK_CALLBACKS
=
'stage-postrollback-callbacks'
;
38
67
public
function
__construct
( array $params );
68
76
public
function
disable
( $fname = __METHOD__ );
77
84
public
function
closeAll
( $fname = __METHOD__ );
85
92
public
function
commitAll
( $fname = __METHOD__ );
93
103
public
function
finalizePrimaryChanges
( $fname = __METHOD__ );
104
116
public
function
approvePrimaryChanges
( array $options, $fname = __METHOD__ );
117
131
public
function
beginPrimaryChanges
( $fname = __METHOD__ );
132
139
public
function
commitPrimaryChanges
( $fname = __METHOD__ );
140
148
public
function
runPrimaryTransactionIdleCallbacks
( $fname = __METHOD__ );
149
157
public
function
runPrimaryTransactionListenerCallbacks
( $fname = __METHOD__ );
158
166
public
function
rollbackPrimaryChanges
( $fname = __METHOD__ );
167
177
public
function
flushPrimarySessions
( $fname = __METHOD__ );
178
184
public
function
flushReplicaSnapshots
( $fname = __METHOD__ );
185
194
public
function
flushPrimarySnapshots
( $fname = __METHOD__ );
195
202
public
function
pendingPrimaryChangeCallers
();
203
210
public
function
forEachOpenConnection
( $callback, array $params = [] );
211
219
public
function
forEachOpenPrimaryConnection
( $callback, array $params = [] );
220
227
public
function
setLocalDomainPrefix
( $prefix );
228
241
public
function
reconfigure
( array $conf );
242
}
Wikimedia\Rdbms\ILoadBalancerForOwner
Internal interface for LoadBalancer methods used by LBFactory.
Definition
ILoadBalancerForOwner.php:33
Wikimedia\Rdbms\ILoadBalancerForOwner\flushPrimarySnapshots
flushPrimarySnapshots( $fname=__METHOD__)
Commit all primary DB transactions so as to flush any REPEATABLE-READ or SSI snapshots.
Wikimedia\Rdbms\ILoadBalancerForOwner\beginPrimaryChanges
beginPrimaryChanges( $fname=__METHOD__)
Flush any primary transaction snapshots and set DBO_TRX (if DBO_DEFAULT is set)
Wikimedia\Rdbms\ILoadBalancerForOwner\pendingPrimaryChangeCallers
pendingPrimaryChangeCallers()
Get the list of callers that have pending primary changes.
Wikimedia\Rdbms\ILoadBalancerForOwner\setLocalDomainPrefix
setLocalDomainPrefix( $prefix)
Set a new table prefix for the existing local domain ID for testing.
Wikimedia\Rdbms\ILoadBalancerForOwner\flushPrimarySessions
flushPrimarySessions( $fname=__METHOD__)
Release/destroy session-level named locks, table locks, and temp tables.
Wikimedia\Rdbms\ILoadBalancerForOwner\reconfigure
reconfigure(array $conf)
Reconfigure using the given config array.
Wikimedia\Rdbms\ILoadBalancerForOwner\commitPrimaryChanges
commitPrimaryChanges( $fname=__METHOD__)
Issue COMMIT on all open primary connections to flush changes and view snapshots.
Wikimedia\Rdbms\ILoadBalancerForOwner\finalizePrimaryChanges
finalizePrimaryChanges( $fname=__METHOD__)
Run pre-commit callbacks and defer execution of post-commit callbacks.
Wikimedia\Rdbms\ILoadBalancerForOwner\STAGE_POSTROLLBACK_CALLBACKS
const STAGE_POSTROLLBACK_CALLBACKS
Manager of ILoadBalancer instances is running post-rollback callbacks.
Definition
ILoadBalancerForOwner.php:37
Wikimedia\Rdbms\ILoadBalancerForOwner\runPrimaryTransactionListenerCallbacks
runPrimaryTransactionListenerCallbacks( $fname=__METHOD__)
Run all recurring post-COMMIT/ROLLBACK listener callbacks.
Wikimedia\Rdbms\ILoadBalancerForOwner\closeAll
closeAll( $fname=__METHOD__)
Close all open connections.
Wikimedia\Rdbms\ILoadBalancerForOwner\__construct
__construct(array $params)
Wikimedia\Rdbms\ILoadBalancerForOwner\rollbackPrimaryChanges
rollbackPrimaryChanges( $fname=__METHOD__)
Issue ROLLBACK only on primary, only if queries were done on connection.
Wikimedia\Rdbms\ILoadBalancerForOwner\forEachOpenPrimaryConnection
forEachOpenPrimaryConnection( $callback, array $params=[])
Call a function with each open connection object to a primary.
Wikimedia\Rdbms\ILoadBalancerForOwner\disable
disable( $fname=__METHOD__)
Close all connections and disable this load balancer.
Wikimedia\Rdbms\ILoadBalancerForOwner\flushReplicaSnapshots
flushReplicaSnapshots( $fname=__METHOD__)
Commit all replica DB transactions so as to flush any REPEATABLE-READ or SSI snapshots.
Wikimedia\Rdbms\ILoadBalancerForOwner\commitAll
commitAll( $fname=__METHOD__)
Commit transactions on all open connections.
Wikimedia\Rdbms\ILoadBalancerForOwner\STAGE_POSTCOMMIT_CALLBACKS
const STAGE_POSTCOMMIT_CALLBACKS
Manager of ILoadBalancer instances is running post-commit callbacks.
Definition
ILoadBalancerForOwner.php:35
Wikimedia\Rdbms\ILoadBalancerForOwner\runPrimaryTransactionIdleCallbacks
runPrimaryTransactionIdleCallbacks( $fname=__METHOD__)
Consume and run all pending post-COMMIT/ROLLBACK callbacks and commit dangling transactions.
Wikimedia\Rdbms\ILoadBalancerForOwner\approvePrimaryChanges
approvePrimaryChanges(array $options, $fname=__METHOD__)
Perform all pre-commit checks for things like replication safety.
Wikimedia\Rdbms\ILoadBalancerForOwner\forEachOpenConnection
forEachOpenConnection( $callback, array $params=[])
Call a function with each open connection object.
Wikimedia\Rdbms\ILoadBalancer
Create and track the database connections and transactions for a given database cluster.
Definition
ILoadBalancer.php:77
Wikimedia\Rdbms
Definition
ChronologyProtector.php:20
includes
libs
rdbms
loadbalancer
ILoadBalancerForOwner.php
Generated on Mon Dec 2 2024 06:23:38 for MediaWiki by
1.10.0