distributed/src/main/java/com/orientechnologies/orient/server/distributed/impl/ODatabaseDocumentDistributed.java
public Map<String, Set<String>> getActiveClusterMap() {
    if (distributedManager.isOffline() || !distributedManager.isNodeOnline(distributedManager.getLocalNodeName(), getName())
        || OScenarioThreadLocal.INSTANCE.isRunModeDistributed()) {
      return super.getActiveClusterMap();
    }
    Map<String, Set<String>> result = new HashMap<>();
    ODistributedConfiguration cfg = getDistributedConfiguration();

    for (String server : distributedManager.getActiveServers()) {
      if (getClustersOnServer(cfg, server).contains("*")) {
        //TODO check this!!!
        result.put(server, getStorage().getClusterNames());
      } else {
        result.put(server, getClustersOnServer(cfg, server));
      }
    }
    return result;
  }
public Map<String, Set<String>> getActiveClusterMap() {
    if (distributedManager.isOffline() || !distributedManager.isNodeOnline(distributedManager.getLocalNodeName(), getName())
        || OScenarioThreadLocal.INSTANCE.isRunModeDistributed()) {
      return super.getActiveClusterMap();
    }
    Map<String, Set<String>> result = new HashMap<>();
    ODistributedConfiguration cfg = getDistributedConfiguration();

    for (String server : distributedManager.getActiveServers()) {
      if (getClustersOnServer(cfg, server).contains("*")) {
        //TODO check this!!!
        result.put(server, getStorage().getClusterNames());
      } else {
        result.put(server, getClustersOnServer(cfg, server));
      }
    }
    return result;
  }
public Map < String , Set < String > > getActiveClusterMap ( ) { if ( distributedManager . isOffline ( ) || ! distributedManager . isNodeOnline ( distributedManager . getLocalNodeName ( ) , getName ( ) ) || OScenarioThreadLocal . INSTANCE . isRunModeDistributed ( ) ) { return super . getActiveClusterMap ( ) ; } Map < String , Set < String > > result = new HashMap <> ( ) ; ODistributedConfiguration cfg = getDistributedConfiguration ( ) ; for ( String server : distributedManager . getActiveServers ( ) ) { if ( getClustersOnServer ( cfg , server ) . contains ( "*" ) ) { //TODO check this!!! result . put ( server , getStorage ( ) . getClusterNames ( ) ) ; } else { result . put ( server , getClustersOnServer ( cfg , server ) ) ; } } return result ; }
returns the cluster map for current deploy. The keys of the map are node names, the values contain names of clusters (data
files) available on the single node.

@return the cluster map for current deploy
returns the cluster map for current deploy . The keys of the map are node names the values contain names of clusters ( data files ) available on the single node .