summaryrefslogtreecommitdiffstats
path: root/config-provisioning/src/main/java/com/yahoo/config/provision/NodeType.java
blob: 875fa83c0bb0ef7d692d735a70606aa4def5884d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.provision;

/**
 * The possible types of nodes in the node repository
 * 
 * @author bratseth
 */
public enum NodeType {

    /** A host of a set of (docker) tenant nodes */
    host(true),

    /** Nodes running the shared proxy layer */
    proxy(false),

    /** A node to be assigned to a tenant to run application workloads */
    tenant(false),

    /** A config server */
    config(false),

    /** A host of a (docker) config server node */
    confighost(true);

    private boolean isDockerHost;

    NodeType(boolean isDockerHost) {
        this.isDockerHost = isDockerHost;
    }

    public boolean isDockerHost() {
        return isDockerHost;
    }
}