public class GetBucketConfigRequest extends AbstractKeyValueRequest implements BootstrapMessage
Request which fetches a bucket configuration through carrier publication.
Note that it is not advisable to send such a request from outside of the core. It is used by the configuration handling mechanism to regularly and on bootstrap load new configurations.
DEFAULT_PARTITION
Constructor and Description |
---|
GetBucketConfigRequest(String bucket,
InetAddress hostname)
Creates a new
GetBucketConfigRequest . |
Modifier and Type | Method and Description |
---|---|
InetAddress |
hostname()
Returns the hostname of the node from where the config should be loaded.
|
short |
partition()
The partition (vbucket) to use for this request.
|
key, keyBytes, opaque, partition
bucket, creationTime, incrementRetryCount, observable, password, retryCount, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bucket, incrementRetryCount, observable, password, retryCount
creationTime
public GetBucketConfigRequest(String bucket, InetAddress hostname)
Creates a new GetBucketConfigRequest
.
bucket
- the name of the bucket.hostname
- the hostname of the node.public InetAddress hostname()
Returns the hostname of the node from where the config should be loaded.
public short partition()
BinaryRequest
The partition (vbucket) to use for this request.
partition
in interface BinaryRequest
partition
in class AbstractKeyValueRequest
Copyright © 2016 Couchbase, Inc.. All rights reserved.