Sets this cluster equal to the specified cluster

@param cluster a cluster, not this or null
761828
void set(GvmCluster<S,K> cluster) {
		if (cluster == this) throw new IllegalArgumentException("cannot set cluster to itself");
		
		m0 = cluster.m0;
		clusters.space.setTo(m1, cluster.m1);
		clusters.space.setTo(m2, cluster.m2);
		var = cluster.var;
	}
958385
public void setClusterLogging(java.util.Collection<LogSetup> clusterLogging) {
        if (clusterLogging == null) {
            this.clusterLogging = null;
            return;
        }

        this.clusterLogging = new java.util.ArrayList<LogSetup>(clusterLogging);
    }
468029
public void setClusterSubnetGroups(java.util.Collection<ClusterSubnetGroup> clusterSubnetGroups) {
        if (clusterSubnetGroups == null) {
            this.clusterSubnetGroups = null;
            return;
        }

        this.clusterSubnetGroups = new com.amazonaws.internal.SdkInternalList<ClusterSubnetGroup>(clusterSubnetGroups);
    }
590324
public void setShards(java.util.Collection<Shard> shards) {
        if (shards == null) {
            this.shards = null;
            return;
        }

        this.shards = new com.amazonaws.internal.SdkInternalList<Shard>(shards);
    }
200802
public void setRegions(java.util.Collection<String> regions) {
        if (regions == null) {
            this.regions = null;
            return;
        }

        this.regions = new java.util.ArrayList<String>(regions);
    }
74240
public void init(Cluster cluster, Map<String, Node> nodeIdToNode) {
        _cluster = cluster;
        _nodeIdToNode = nodeIdToNode;
    }
243447
public FailureDetectorConfig setCluster(Cluster cluster) {
        Utils.notNull(cluster);
        this.cluster = cluster;
        /*
         * FIXME: this is the hacky way to refresh the admin connection
         * verifier, but it'll just work. The clean way to do so is to have a
         * centralized metadata management, and all references of cluster object
         * point to that.
         */
        if(this.connectionVerifier instanceof AdminConnectionVerifier) {
            ((AdminConnectionVerifier) connectionVerifier).setCluster(cluster);
        }
        return this;
    }
281852
public void setGroups(java.util.Collection<Group> groups) {
        if (groups == null) {
            this.groups = null;
            return;
        }

        this.groups = new java.util.ArrayList<Group>(groups);
    }
933526
void setClusterId(String newClusterId) {
        assert lock.isHeldByCurrentThread() : "Called without holding cluster service lock!";
        assert clusterId == null : "Cluster ID should be null: " + clusterId;
        clusterId = newClusterId;
    }
725393
public static final void clusterName(String name)
    {
        if (tc.isEntryEnabled())
            Tr.entry(tc, "clusterName", name);

        _clusterName = name;

        if (tc.isEntryEnabled())
            Tr.exit(tc, "clusterName");
    }
462652
public void setClusterNodes(java.util.Collection<ClusterNode> clusterNodes) {
        if (clusterNodes == null) {
            this.clusterNodes = null;
            return;
        }

        this.clusterNodes = new com.amazonaws.internal.SdkInternalList<ClusterNode>(clusterNodes);
    }
319805
public void process( List<List<SquareNode>> clusters ) {
		grids.reset();
		for (int i = 0; i < clusters.size(); i++) {
			if( checkPreconditions(clusters.get(i)))
				processCluster(clusters.get(i));
		}
	}
433574
@Override
    public void setPartitions(Partitions partitions) {

        boolean reconfigurePartitions = false;

        synchronized (stateLock) {
            if (this.partitions != null) {
                reconfigurePartitions = true;
            }
            this.partitions = partitions;
            this.connectionFactory.setPartitions(partitions);
        }

        if (reconfigurePartitions) {
            reconfigurePartitions();
        }
    }
15655
public ORecordIteratorCluster<REC> setRange(final long iFrom, final long iEnd) {
		firstClusterPosition = iFrom;
		rangeTo = iEnd;
		current.clusterPosition = firstClusterPosition;
		return this;
	}
875149
public void setCores(java.util.Collection<Core> cores) {
        if (cores == null) {
            this.cores = null;
            return;
        }

        this.cores = new java.util.ArrayList<Core>(cores);
    }
974648
public void setPartitions(java.util.Collection<Partition> partitions) {
        if (partitions == null) {
            this.partitions = null;
            return;
        }

        this.partitions = new java.util.ArrayList<Partition>(partitions);
    }
799700
public void buildCluster(String secured) {
        if (secured == null) {
            this.cluster = Cluster.builder().addContactPoint(this.host).build();
            this.cluster.getConfiguration().getQueryOptions()
                    .setConsistencyLevel(ConsistencyLevel.ONE);
        } else {
            try {
                this.cluster = Cluster.builder().addContactPoint(this.host).withCredentials("user", "pass").withSSL().build();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }