net.spy.memcached.vbucket
Interface ConfigurationProvider

All Known Implementing Classes:
ConfigurationProviderHTTP

public interface ConfigurationProvider


Method Summary
 String getAnonymousAuthBucket()
          Retrieves a default bucket name i.e.
 Bucket getBucketConfiguration(String bucketname)
          Connects to the REST service and retrieves the bucket configuration from the first pool available
 void shutdown()
          Shutdowns a monitor connections to the REST service
 void subscribe(String bucketName, Reconfigurable rec)
          Subscribes for configuration updates
 void unsubscribe(String vbucketName, Reconfigurable rec)
          Unsubscribe from updates on a given bucket and given reconfigurable
 

Method Detail

getBucketConfiguration

Bucket getBucketConfiguration(String bucketname)
                              throws ConfigurationException
Connects to the REST service and retrieves the bucket configuration from the first pool available

Parameters:
bucketname - bucketname
Returns:
vbucket configuration
Throws:
ConfigurationException

subscribe

void subscribe(String bucketName,
               Reconfigurable rec)
               throws ConfigurationException
Subscribes for configuration updates

Parameters:
bucketName - bucket name to receive configuration for
rec - reconfigurable that will receive updates
Throws:
ConfigurationException

unsubscribe

void unsubscribe(String vbucketName,
                 Reconfigurable rec)
Unsubscribe from updates on a given bucket and given reconfigurable

Parameters:
vbucketName - bucket name
rec - reconfigurable

shutdown

void shutdown()
Shutdowns a monitor connections to the REST service


getAnonymousAuthBucket

String getAnonymousAuthBucket()
Retrieves a default bucket name i.e. 'default'

Returns: