Class StorageGroup


  • public class StorageGroup
    extends java.lang.Object
    A group of storage nodes/distributors.
    Author:
    unknown, probably thomasg, bratseth has done things here recently
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of this group, or null if it is the root group
      • getSubgroups

        public java.util.List<StorageGroup> getSubgroups()
        Returns the subgroups of this, or an empty list if it is a leaf group
      • getNodes

        public java.util.List<StorageNode> getNodes()
        Returns the nodes of this, or an empty list of it is not a leaf group
      • isHosted

        public boolean isHosted()
      • getIndex

        public java.lang.String getIndex()
        Returns the index of this group, or null if it is the root group
      • getPartitions

        public java.util.Optional<java.lang.String> getPartitions()
      • useCpuSocketAffinity

        public boolean useCpuSocketAffinity()
      • getMmapNoCoreLimit

        public java.util.Optional<java.lang.Long> getMmapNoCoreLimit()
      • getCoreOnOOM

        public java.util.Optional<java.lang.Boolean> getCoreOnOOM()
      • getNoVespaMalloc

        public java.util.Optional<java.lang.String> getNoVespaMalloc()
      • getVespaMalloc

        public java.util.Optional<java.lang.String> getVespaMalloc()
      • getVespaMallocDebug

        public java.util.Optional<java.lang.String> getVespaMallocDebug()
      • getVespaMallocDebugStackTrace

        public java.util.Optional<java.lang.String> getVespaMallocDebugStackTrace()
      • recursiveGetNodes

        public java.util.List<StorageNode> recursiveGetNodes()
        Returns all the nodes below this group
      • getGroupStructureConfig

        public java.util.Collection<com.yahoo.vespa.config.content.StorDistributionConfig.Group.Builder> getGroupStructureConfig()
      • getConfig

        public void getConfig​(com.yahoo.vespa.config.content.StorDistributionConfig.Group.Builder builder)
      • getNumberOfLeafGroups

        public int getNumberOfLeafGroups()
      • getCapacity

        public double getCapacity()
      • countNodes

        public int countNodes()
        Returns the total number of nodes below this group
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • provisionHosts

        public static java.util.Map<HostResource,​com.yahoo.config.provision.ClusterMembership> provisionHosts​(NodesSpecification nodesSpecification,
                                                                                                                    java.lang.String clusterIdString,
                                                                                                                    HostSystem hostSystem,
                                                                                                                    com.yahoo.config.application.api.DeployLogger logger)