// 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 host of a (docker) proxy node */
    proxyhost(true),

    /** 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;
    }
}

// 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 node to be assigned to a tenant to run application workloads */
    tenant(false, "Tenant node"),

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

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

    /** A host of a (docker) proxy node */
    proxyhost(true, "Proxy docker host"),

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

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

    private final boolean isDockerHost;
    private final String description;

    NodeType(boolean isDockerHost, String description) {
        this.isDockerHost = isDockerHost;
        this.description = description;
    }

    public boolean isDockerHost() {
        return isDockerHost;
    }

    public String description() {
        return description;
    }

}

Add descriptive name to each node type
Add descriptive name to each node type
