public synchronized Map<String,Map<String,TungstenProperties>> loadClusterConfiguration(ResourceType resourceType) throws ConfigurationException {
  if (getClusterHome() == null) {
    throw new ConfigurationException("No cluster.home found from which to configure cluster resources.");
  }
  Map<String,Map<String,TungstenProperties>> clusterConfigurations=new HashMap<String,Map<String,TungstenProperties>>();
  File cluster=getDir(getClusterConfigRootDirName(getClusterHome()));
  for (  File foundFile : cluster.listFiles()) {
    if (foundFile.isDirectory()) {
      Map<String,TungstenProperties> clusterConfig=loadConfiguration(foundFile.getName(),resourceType);
      clusterConfigurations.put(foundFile.getName(),clusterConfig);
    }
  }
  return clusterConfigurations;
}

public synchronized Map < String , Map < String , TungstenProperties > > loadClusterConfiguration ( ResourceType resourceType ) throws ConfigurationException { if ( getClusterHome ( ) == null ) { throw new ConfigurationException ( "No cluster.home found from which to configure cluster resources." ) ; } Map < String , Map < String , TungstenProperties > > clusterConfigurations = new HashMap < String , Map < String , TungstenProperties > > ( ) ; File cluster = getDir ( getClusterConfigRootDirName ( getClusterHome ( ) ) ) ; for ( File foundFile : cluster . listFiles ( ) ) { if ( foundFile . isDirectory ( ) ) { Map < String , TungstenProperties > clusterConfig = loadConfiguration ( foundFile . getName ( ) , resourceType ) ; clusterConfigurations . put ( foundFile . getName ( ) , clusterConfig ) ; } } return clusterConfigurations ; }
loads a set of resource configurations from the appropriate directory according to tungsten resource conventions . the cluster directory hierarchy looks like this : { clusterhome } / cluster / { clustername } / { resourcetype }
