Class DefaultBucketInfo

  • All Implemented Interfaces:
    BucketInfo

    public class DefaultBucketInfo
    extends Object
    implements BucketInfo
    Default implementation of BucketInfo.
    Since:
    2.0
    Author:
    Michael Nitschinger
    • Method Detail

      • name

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

        public BucketType type()
        Description copied from interface: BucketInfo
        The type of the bucket.
        Specified by:
        type in interface BucketInfo
        Returns:
        the bucket type.
      • nodeCount

        public int nodeCount()
        Description copied from interface: BucketInfo
        The number of nodes on the bucket.
        Specified by:
        nodeCount in interface BucketInfo
        Returns:
        number of nodes.
      • replicaCount

        public int replicaCount()
        Description copied from interface: BucketInfo
        The number of replicas configured.
        Specified by:
        replicaCount in interface BucketInfo
        Returns:
        number of replicas configured.
      • nodeList

        public List<InetAddress> nodeList()
        Description copied from interface: BucketInfo
        Returns a list of nodes that is interacting with the bucket.
        Specified by:
        nodeList in interface BucketInfo
        Returns:
        the list of nodes.
      • raw

        public JsonObject raw()
        Description copied from interface: BucketInfo
        Raw JSON server response for advanced analysis.
        Specified by:
        raw in interface BucketInfo
        Returns:
        the raw JSON bucket info.