public interface ConfigurationProvider
Modifier and Type | Method and Description |
---|---|
void |
finishResubscribe() |
java.lang.String |
getAnonymousAuthBucket()
Retrieves a default bucket name i.e.
|
java.lang.String |
getBucket()
Returns the current bucket name.
|
Bucket |
getBucketConfiguration(java.lang.String bucketname)
Connects to the REST service and retrieves the bucket configuration from
the first pool available.
|
Reconfigurable |
getReconfigurable()
Returns the current Reconfigurable object.
|
void |
markForResubscribe(java.lang.String bucketName,
Reconfigurable rec) |
void |
shutdown()
Shutdowns a monitor connections to the REST service.
|
void |
subscribe(java.lang.String bucketName,
Reconfigurable rec)
Subscribes for configuration updates.
|
void |
unsubscribe(java.lang.String vbucketName,
Reconfigurable rec)
Unsubscribe from updates on a given bucket and given reconfigurable.
|
void |
updateBaseListFromConfig(java.util.List<java.net.URI> baseList)
Update the configured baseList on bootstrap with a new one.
|
void |
updateBucket(java.lang.String config)
Updates the current bucket with a new JSON config string
|
void |
updateBucket(java.lang.String bucketname,
Bucket newBucket)
Update the bucket including configuration.
|
Bucket getBucketConfiguration(java.lang.String bucketname)
bucketname
- bucketnameConfigurationException
void updateBucket(java.lang.String bucketname, Bucket newBucket)
bucketname
- the name of the bucketnewBucket
- the new bucket including configvoid subscribe(java.lang.String bucketName, Reconfigurable rec)
bucketName
- bucket name to receive configuration forrec
- reconfigurable that will receive updatesConfigurationException
void markForResubscribe(java.lang.String bucketName, Reconfigurable rec)
void unsubscribe(java.lang.String vbucketName, Reconfigurable rec)
vbucketName
- bucket namerec
- reconfigurablevoid shutdown()
java.lang.String getAnonymousAuthBucket()
void finishResubscribe()
Reconfigurable getReconfigurable()
java.lang.String getBucket()
void updateBaseListFromConfig(java.util.List<java.net.URI> baseList)
baseList
- the list to replace with.void updateBucket(java.lang.String config)
config
- the raw JSON config to transform and store.Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.