public String toString(boolean verbose) {
        StringBuilder sb = new StringBuilder();

        if (version != 0) {
            sb.append(" version:").append(version);
        }

        if (!state.equals(State.UP)) {
            sb.append(" cluster:").append(state.serialize());
        }

        if (distributionBits != 16) {
            sb.append(" bits:").append(distributionBits);
        }

        sb.append(distributorNodes.toString(verbose));
        sb.append(storageNodes.toString(verbose));

        if (!sb.isEmpty()) { // Remove first space if not empty
            sb.deleteCharAt(0);
        }
        return sb.toString();
    }
Returns the serialized form of this cluster state
vdslib/src/main/java/com/yahoo/vdslib/state/ClusterState.java