Package com.yahoo.config.provision
Enum Class NodeType
- All Implemented Interfaces:
Serializable
,Comparable<NodeType>
,Constable
The possible types of nodes in the node repository
- Author:
- bratseth
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionConfig server nodeHost of a config server nodeController nodeHost of a controller nodeHost of a tenant nodesNode serving the shared proxy layerHost of a proxy nodeNode assignable to a tenant to run application workloads -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether given node type can run on thishostType()
Returns the host type of thisboolean
either config server host or controller hostboolean
either config server or controllerboolean
isHost()
boolean
Returns whether this supports host sharingstatic NodeType
Returns the enum constant of this class with the specified name.static NodeType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
tenant
Node assignable to a tenant to run application workloads -
host
Host of a tenant nodes -
proxy
Node serving the shared proxy layer -
proxyhost
Host of a proxy node -
config
Config server node -
confighost
Host of a config server node -
controller
Controller node -
controllerhost
Host of a controller node
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isHost
public boolean isHost() -
isConfigServerLike
public boolean isConfigServerLike()either config server or controller -
isConfigServerHostLike
public boolean isConfigServerHostLike()either config server host or controller host -
isSharable
public boolean isSharable()Returns whether this supports host sharing -
description
-
childNodeType
- Returns:
NodeType
of the node(s) that run on this host- Throws:
IllegalStateException
- if this type is not a host
-
childNodeTypes
- Returns:
- all
NodeType
s that can run on this host - Throws:
IllegalStateException
- if this type is not a host
-
canRun
Returns whether given node type can run on this -
hostType
Returns the host type of this
-