Class GetBucketConfigRequest

All Implemented Interfaces:
BootstrapMessage, CouchbaseMessage, CouchbaseRequest, BinaryRequest

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.
Since:
1.0
Author:
Michael Nitschinger
  • Constructor Details

    • GetBucketConfigRequest

      public GetBucketConfigRequest​(String bucket, String hostname)
      Creates a new GetBucketConfigRequest.
      Parameters:
      bucket - the name of the bucket.
      hostname - the hostname of the node.
  • Method Details

    • hostname

      public String hostname()
      Returns the hostname of the node from where the config should be loaded.
      Returns:
      the hostname.
    • partition

      public short partition()
      Description copied from interface: BinaryRequest
      The partition (vbucket) to use for this request.
      Specified by:
      partition in interface BinaryRequest
      Overrides:
      partition in class AbstractKeyValueRequest
      Returns:
      the partition to use.