NodeLocator Interface Reference

Inherited by ArrayModNodeLocator, and KetamaNodeLocator.

List of all members.

Public Member Functions

Collection< MemcachedNodegetAll ()
Iterator< MemcachedNodegetSequence (String k)

Package Functions

MemcachedNode getPrimary (String k)


Detailed Description

Interface for locating a node by hash value.

Member Function Documentation

Collection<MemcachedNode> getAll (  ) 

Get all memcached nodes. This is useful for broadcasting messages.

Implemented in ArrayModNodeLocator, and KetamaNodeLocator.

MemcachedNode getPrimary ( String  k  )  [package]

Get the primary location for the given key.

Parameters:
k the object key
Returns:
the QueueAttachment containing the primary storage for a key

Implemented in ArrayModNodeLocator.

Iterator<MemcachedNode> getSequence ( String  k  ) 

Get an iterator over the sequence of nodes that make up the backup locations for a given key.

Parameters:
k the object key
Returns:
the sequence of backup nodes.

Implemented in ArrayModNodeLocator, and KetamaNodeLocator.


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

Generated on Sat May 26 06:43:37 2012 for Project Wonder by  doxygen 1.5.8