ExternalStoreDB Class Reference
[ExternalStorage]

DB accessable external objects. More...

List of all members.

Public Member Functions

getLoadBalancer ($cluster)
getSlave ($cluster)
getMaster ($cluster)
 getTable (&$db)
 fetchFromURL ($url)
 Fetch data from given URL.
fetchBlob ($cluster, $id, $itemID)
 Fetch a blob item out of the database; a cache of the last-loaded blob will be kept so that multiple loads out of a multi-item blob can avoid redundant database access and decompression.
 store ($cluster, $data)
 Insert a data item into a given cluster.


Detailed Description

DB accessable external objects.

Definition at line 27 of file ExternalStoreDB.php.


Member Function Documentation

& ExternalStoreDB::fetchBlob ( cluster,
id,
itemID 
)

Fetch a blob item out of the database; a cache of the last-loaded blob will be kept so that multiple loads out of a multi-item blob can avoid redundant database access and decompression.

Parameters:
$cluster 
$id 
$itemID 
Returns:
mixed
Access:
private

Definition at line 87 of file ExternalStoreDB.php.

References $dbr, $dbw, $wgExternalBlobCache, getMaster(), getSlave(), getTable(), wfDebug(), and wfDebugLog().

Referenced by fetchFromURL().

ExternalStoreDB::fetchFromURL ( url  ) 

Fetch data from given URL.

Parameters:
string $url An url of the form DB://cluster/id or DB://cluster/id/itemid for concatened storage.

Definition at line 59 of file ExternalStoreDB.php.

References $path, $url, and fetchBlob().

& ExternalStoreDB::getLoadBalancer ( cluster  ) 

Todo:
Document.

Definition at line 30 of file ExternalStoreDB.php.

References wfGetLBFactory().

Referenced by getMaster(), and getSlave().

& ExternalStoreDB::getMaster ( cluster  ) 

Todo:
Document.

Definition at line 41 of file ExternalStoreDB.php.

References $lb, and getLoadBalancer().

Referenced by fetchBlob(), and store().

& ExternalStoreDB::getSlave ( cluster  ) 

Todo:
Document.

Definition at line 35 of file ExternalStoreDB.php.

References $lb, and getLoadBalancer().

Referenced by fetchBlob().

ExternalStoreDB::getTable ( &$  db  ) 

Todo:
Document.

Definition at line 47 of file ExternalStoreDB.php.

References $db.

Referenced by fetchBlob(), and store().

ExternalStoreDB::store ( cluster,
data 
)

Insert a data item into a given cluster.

Parameters:
$cluster String: the cluster name
$data String: the data item
Returns:
string URL

Definition at line 124 of file ExternalStoreDB.php.

References $dbw, getMaster(), and getTable().


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

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