server/src/main/java/com/orientechnologies/orient/server/distributed/ODistributedConfiguration.java
public boolean isServerContainingAllClusters(final String server, Collection<String> clusters) {

    if (clusters == null || clusters.isEmpty())
      clusters = DEFAULT_CLUSTER_NAME;

    for (String cluster : clusters) {
      final List<String> serverList = getClusterConfiguration(cluster).field(SERVERS);
      if (serverList != null) {
        if (!serverList.contains(server))
          return false;
      }
    }
    return true;
  }
public boolean isServerContainingAllClusters(final String server, Collection<String> clusters) {

    if (clusters == null || clusters.isEmpty())
      clusters = DEFAULT_CLUSTER_NAME;

    for (String cluster : clusters) {
      final List<String> serverList = getClusterConfiguration(cluster).field(SERVERS);
      if (serverList != null) {
        if (!serverList.contains(server))
          return false;
      }
    }
    return true;
  }
Returns true if the local server has all the requested clusters.

@param server   Server name
@param clusters Collection of cluster names to find