Package com.yahoo.vespa.model.content
Class StorageGroup
- java.lang.Object
-
- com.yahoo.vespa.model.content.StorageGroup
-
public class StorageGroup extends java.lang.Object
A group of storage nodes/distributors.- Author:
- unknown, probably thomasg, bratseth has done things here recently
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StorageGroup.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
countNodes()
Returns the total number of nodes below this groupboolean
equals(java.lang.Object obj)
double
getCapacity()
void
getConfig(com.yahoo.vespa.config.content.StorDistributionConfig.Group.Builder builder)
java.util.Optional<java.lang.Boolean>
getCoreOnOOM()
java.util.Collection<com.yahoo.vespa.config.content.StorDistributionConfig.Group.Builder>
getGroupStructureConfig()
java.lang.String
getIndex()
Returns the index of this group, or null if it is the root groupjava.util.Optional<java.lang.Long>
getMmapNoCoreLimit()
java.lang.String
getName()
Returns the name of this group, or null if it is the root groupjava.util.List<StorageNode>
getNodes()
Returns the nodes of this, or an empty list of it is not a leaf groupjava.util.Optional<java.lang.String>
getNoVespaMalloc()
int
getNumberOfLeafGroups()
java.util.Optional<java.lang.String>
getPartitions()
java.util.List<StorageGroup>
getSubgroups()
Returns the subgroups of this, or an empty list if it is a leaf groupjava.util.Optional<java.lang.String>
getVespaMalloc()
java.util.Optional<java.lang.String>
getVespaMallocDebug()
java.util.Optional<java.lang.String>
getVespaMallocDebugStackTrace()
int
hashCode()
boolean
isHosted()
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)
java.util.List<StorageNode>
recursiveGetNodes()
Returns all the nodes below this groupboolean
useCpuSocketAffinity()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.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)
-
-