protected ClickHouseNode setManager(ClickHouseNodeManager m) {
        this.manager.getAndUpdate(v -> {
            boolean sameManager = Objects.equals(v, m);
            if (v != null && !sameManager) {
                v.update(ClickHouseNode.this, Status.STANDALONE);
            }
            return sameManager ? v : null;
        });
        if (m != null && manager.compareAndSet(null, m)) {
            m.update(ClickHouseNode.this, Status.MANAGED);
        }
        return this;
    }
Sets manager for this node.

@param m node manager
@return this node
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseNode.java