Package com.yahoo.vespa.model.content
Class StorageGroup
- java.lang.Object
-
- com.yahoo.vespa.model.content.StorageGroup
-
public class StorageGroup extends 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(boolean includeRetired)
Returns the total number of nodes below this groupboolean
equals(Object obj)
double
getCapacity()
void
getConfig(com.yahoo.vespa.config.content.StorDistributionConfig.Group.Builder builder)
Optional<Boolean>
getCoreOnOOM()
Collection<com.yahoo.vespa.config.content.StorDistributionConfig.Group.Builder>
getGroupStructureConfig()
String
getIndex()
Returns the index of this group, or null if it is the root groupOptional<Long>
getMmapNoCoreLimit()
String
getName()
Returns the name of this group, or null if it is the root groupList<StorageNode>
getNodes()
Returns the nodes of this, or an empty list of it is not a leaf groupOptional<String>
getNoVespaMalloc()
int
getNumberOfLeafGroups()
Optional<String>
getPartitions()
List<StorageGroup>
getSubgroups()
Returns the subgroups of this, or an empty list if it is a leaf groupOptional<String>
getVespaMalloc()
Optional<String>
getVespaMallocDebug()
Optional<String>
getVespaMallocDebugStackTrace()
int
hashCode()
boolean
isHosted()
static Map<HostResource,com.yahoo.config.provision.ClusterMembership>
provisionHosts(NodesSpecification nodesSpecification, String clusterIdString, HostSystem hostSystem, com.yahoo.config.application.api.DeployLogger logger)
List<StorageNode>
recursiveGetNodes()
Returns all the nodes below this groupboolean
useCpuSocketAffinity()
-
-
-
Method Detail
-
getName
public String getName()
Returns the name of this group, or null if it is the root group
-
getSubgroups
public List<StorageGroup> getSubgroups()
Returns the subgroups of this, or an empty list if it is a leaf group
-
getNodes
public 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 String getIndex()
Returns the index of this group, or null if it is the root group
-
useCpuSocketAffinity
public boolean useCpuSocketAffinity()
-
recursiveGetNodes
public List<StorageNode> recursiveGetNodes()
Returns all the nodes below this group
-
getGroupStructureConfig
public 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(boolean includeRetired)
Returns the total number of nodes below this group
-
provisionHosts
public static Map<HostResource,com.yahoo.config.provision.ClusterMembership> provisionHosts(NodesSpecification nodesSpecification, String clusterIdString, HostSystem hostSystem, com.yahoo.config.application.api.DeployLogger logger)
-
-