Campustream 1.0
A social network MQP for WPI
KetamaPureRing Class Reference
Inheritance diagram for KetamaPureRing:
HashRing HashRing IDistributionStrategy IDistributionStrategy IDistributionStrategy IDistributionStrategy

Public Member Functions

 __construct ()
 generateKey ($value)
 __construct ()
 generateKey ($value)

Data Fields

const DEFAULT_REPLICAS = 160

Protected Member Functions

 addNodeToRing (&$ring, $node, $totalNodes, $replicas, $weightRatio)
 wrapAroundStrategy ($upper, $lower, $ringKeysCount)
 addNodeToRing (&$ring, $node, $totalNodes, $replicas, $weightRatio)
 wrapAroundStrategy ($upper, $lower, $ringKeysCount)

Detailed Description

Definition at line 2024 of file predis.php.


Constructor & Destructor Documentation

__construct ( )

Definition at line 2027 of file predis.php.

__construct ( )

Definition at line 2027 of file predis.php.


Member Function Documentation

addNodeToRing ( &$  ring,
node,
totalNodes,
replicas,
weightRatio 
) [protected]

Reimplemented from HashRing.

Definition at line 2031 of file predis.php.

addNodeToRing ( &$  ring,
node,
totalNodes,
replicas,
weightRatio 
) [protected]

Reimplemented from HashRing.

Definition at line 2031 of file predis.php.

generateKey ( value)

Reimplemented from HashRing.

Definition at line 2043 of file predis.php.

generateKey ( value)

Reimplemented from HashRing.

Definition at line 2043 of file predis.php.

wrapAroundStrategy ( upper,
lower,
ringKeysCount 
) [protected]

Reimplemented from HashRing.

Definition at line 2048 of file predis.php.

wrapAroundStrategy ( upper,
lower,
ringKeysCount 
) [protected]

Reimplemented from HashRing.

Definition at line 2048 of file predis.php.


Field Documentation

const DEFAULT_REPLICAS = 160

Reimplemented from HashRing.

Definition at line 2025 of file predis.php.


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