Class Node
java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.configserver.Node
A node in hosted Vespa.
This is immutable and all fields are guaranteed to be non-null. This should never leak any wire format types or
types from third-party libraries.
Use
builder() or builder(Node) to create instances of this.- Author:
- mpolden, jonmv
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for aNode.static enumKnown cluster types.static enumKnown nope environmentsstatic classA node eventstatic enumKnown node states with regards to service orchestrationstatic enumKnown node states -
Method Summary
Modifier and TypeMethodDescriptionAdditional hostnames available on this, usable by child nodesAdditional IP addresses available on this, usable by child nodesstatic Node.Builderbuilder()static Node.BuilderThe cluster ID of this, empty string if unallocatedThe cluster type of thisintcost()A number representing the cost of thiscom.yahoo.config.provision.DockerImageThe container image of this is currently runningThe last time this checked for a firmware updatecom.yahoo.component.VersionThe OS version this is currently runningcom.yahoo.component.VersionThe Vespa version this is currently runningbooleandown()Whether this node is currently downThe environment this runs inbooleanOptional<com.yahoo.config.provision.ApplicationId>The application this has been provisioned exclusively for, if anyintHow many times this has failedflavor()The flavor of thisgroup()The group of this node, empty string if unallocatedinthashCode()history()History of events affecting thiscom.yahoo.config.provision.HostNamehostname()The hostname of thisid()The cloud provider's unique ID for thisIP addresses of thisThe server model of this, if anyOptional<com.yahoo.config.provision.ApplicationId>owner()The application owning this, if anyOptional<com.yahoo.config.provision.HostName>The parent hostname of this, if anylongThe current reboot generationreports()Returns the reports of this node.Optional<com.yahoo.config.provision.TenantName>The tenant this has been reserved to, if anycom.yahoo.config.provision.NodeResourcesResources, such as CPU and memory, of thislongThe current restart generationbooleanretired()Whether this is retiredThe current service state of thisstate()Current state of thisThe most recent time this suspended, if anyHostname of the switch this is connected to, if anycom.yahoo.config.provision.NodeTypetype()The node type of thiscom.yahoo.config.provision.DockerImageThe wanted Docker imageThe wanted time this should check for a firmware updatecom.yahoo.component.VersionThe wanted OS versionlongThe wanted reboot generationlongThe wanted restart generationcom.yahoo.component.VersionThe wanted Vespa versionbooleanWhether this node has been requested to deprovisionbooleanWhether this node has been requested to rebuildbooleanWhether this node has been requested to retire
-
Method Details
-
id
The cloud provider's unique ID for this -
hostname
public com.yahoo.config.provision.HostName hostname()The hostname of this -
parentHostname
The parent hostname of this, if any -
state
Current state of this -
type
public com.yahoo.config.provision.NodeType type()The node type of this -
resources
public com.yahoo.config.provision.NodeResources resources()Resources, such as CPU and memory, of this -
owner
The application owning this, if any -
currentVersion
public com.yahoo.component.Version currentVersion()The Vespa version this is currently running -
wantedVersion
public com.yahoo.component.Version wantedVersion()The wanted Vespa version -
currentOsVersion
public com.yahoo.component.Version currentOsVersion()The OS version this is currently running -
wantedOsVersion
public com.yahoo.component.Version wantedOsVersion()The wanted OS version -
currentDockerImage
public com.yahoo.config.provision.DockerImage currentDockerImage()The container image of this is currently running -
wantedDockerImage
public com.yahoo.config.provision.DockerImage wantedDockerImage()The wanted Docker image -
currentFirmwareCheck
The last time this checked for a firmware update -
wantedFirmwareCheck
The wanted time this should check for a firmware update -
serviceState
The current service state of this -
suspendedSince
The most recent time this suspended, if any -
restartGeneration
public long restartGeneration()The current restart generation -
wantedRestartGeneration
public long wantedRestartGeneration()The wanted restart generation -
rebootGeneration
public long rebootGeneration()The current reboot generation -
wantedRebootGeneration
public long wantedRebootGeneration()The wanted reboot generation -
cost
public int cost()A number representing the cost of this -
failCount
public int failCount()How many times this has failed -
flavor
The flavor of this -
clusterId
The cluster ID of this, empty string if unallocated -
clusterType
The cluster type of this -
retired
public boolean retired()Whether this is retired -
group
The group of this node, empty string if unallocated -
wantToRetire
public boolean wantToRetire()Whether this node has been requested to retire -
wantToDeprovision
public boolean wantToDeprovision()Whether this node has been requested to deprovision -
wantToRebuild
public boolean wantToRebuild()Whether this node has been requested to rebuild -
down
public boolean down()Whether this node is currently down -
reservedTo
The tenant this has been reserved to, if any -
exclusiveTo
The application this has been provisioned exclusively for, if any -
reports
Returns the reports of this node. Key is the report ID. Value is untyped, but is typically a JSON string -
history
History of events affecting this -
ipAddresses
IP addresses of this -
additionalIpAddresses
Additional IP addresses available on this, usable by child nodes -
additionalHostnames
Additional hostnames available on this, usable by child nodes -
switchHostname
Hostname of the switch this is connected to, if any -
modelName
The server model of this, if any -
environment
The environment this runs in -
equals
-
hashCode
public int hashCode() -
builder
-
builder
-