Class AbstractBucketConfig

    • Method Detail

      • uuid

        public String uuid()
        Description copied from interface: BucketConfig
        Returns the UUID of the bucket, or null if the bucket does not have a UUID.

        The UUID is an opaque value assigned when the bucket is created. If the bucket is deleted and a new bucket is created with the same name, the new bucket will have a different UUID.

        Specified by:
        uuid in interface BucketConfig
        Returns:
        bucket UUID, or null.
      • name

        public String name()
        Description copied from interface: BucketConfig
        The name of the bucket.
        Specified by:
        name in interface BucketConfig
        Returns:
        name of the bucket.
      • uri

        public String uri()
        Description copied from interface: BucketConfig
        The HTTP Uri for this bucket configuration.
        Specified by:
        uri in interface BucketConfig
        Returns:
        the uri.
      • streamingUri

        public String streamingUri()
        Description copied from interface: BucketConfig
        The HTTP Streaming URI for this bucket.
        Specified by:
        streamingUri in interface BucketConfig
        Returns:
        the streaming uri.
      • nodes

        public List<NodeInfo> nodes()
        Description copied from interface: BucketConfig
        The list of nodes associated with this bucket.
        Specified by:
        nodes in interface BucketConfig
        Returns:
        the list of nodes.
      • password

        public String password()
        Description copied from interface: BucketConfig
        The password of the bucket/user.
        Specified by:
        password in interface BucketConfig
        Returns:
        the password of the bucket/user.
      • password

        public BucketConfig password​(String password)
        Description copied from interface: BucketConfig
        Setter to inject the password manually into the config.
        Specified by:
        password in interface BucketConfig
        Parameters:
        password - the password of the bucket/user to inject.
        Returns:
        the config for proper chaining.
      • username

        public String username()
        Description copied from interface: BucketConfig
        User authorized for the bucket access.
        Specified by:
        username in interface BucketConfig
        Returns:
        username of the user.
      • username

        public BucketConfig username​(String username)
        Description copied from interface: BucketConfig
        Set user authorized for the bucket access.
        Specified by:
        username in interface BucketConfig
        Parameters:
        username - the user authorized for bucket access
        Returns:
        the config for chaining
      • useAlternateNetwork

        public void useAlternateNetwork​(String useAlternateNetwork)
        Description copied from interface: BucketConfig
        Setter to set if external networking should be used or not.
        Specified by:
        useAlternateNetwork in interface BucketConfig
        Parameters:
        useAlternateNetwork - if an alternate network should be used.
      • serviceEnabled

        public boolean serviceEnabled​(ServiceType type)
        Description copied from interface: BucketConfig
        Check if the service is enabled on the bucket.
        Specified by:
        serviceEnabled in interface BucketConfig
        Parameters:
        type - the type to check.
        Returns:
        true if it is, false otherwise.