public NodeType hostType() {
        if (isHost()) return this;
        for (NodeType type : values()) {
            if (type.canRun(this)) return type;
        }
        throw new IllegalStateException("No host of " + this + " exists");
    }
Returns the host type of this
config-provisioning/src/main/java/com/yahoo/config/provision/NodeType.java