public void createClusterConfigRootDirs() throws ConfigurationException {
  clusterConfigDir=new File(ClusterConfiguration.getClusterConfigRootDirName(clusterHomeName));
  clusterConfigRootDir=new File(getClusterConfigRootDirName(clusterHomeName));
  if (!clusterConfigDir.exists()) {
    logger.debug("Creating new 'cluster' directory: " + clusterConfigDir.getAbsolutePath());
    clusterConfigDir.mkdirs();
  }
  if (!clusterConfigDir.isDirectory() || !clusterConfigDir.canWrite()) {
    throw new ConfigurationException("'cluster' directory invalid or unreadable: " + clusterConfigDir.getAbsolutePath());
  }
  if (!clusterConfigRootDir.exists()) {
    logger.debug("Creating new cluster configuration directory: " + clusterConfigRootDir.getAbsolutePath());
    clusterConfigRootDir.mkdirs();
  }
  if (!clusterConfigRootDir.isDirectory() || !clusterConfigRootDir.canWrite()) {
    throw new ConfigurationException("cluster configuration directory invalid or unreadable: " + clusterConfigRootDir.getAbsolutePath());
  }
}

public void createClusterConfigRootDirs ( ) throws ConfigurationException { clusterConfigDir = new File ( ClusterConfiguration . getClusterConfigRootDirName ( clusterHomeName ) ) ; clusterConfigRootDir = new File ( getClusterConfigRootDirName ( clusterHomeName ) ) ; if ( ! clusterConfigDir . exists ( ) ) { logger . debug ( "Creating new 'cluster' directory: " + clusterConfigDir . getAbsolutePath ( ) ) ; clusterConfigDir . mkdirs ( ) ; } if ( ! clusterConfigDir . isDirectory ( ) || ! clusterConfigDir . canWrite ( ) ) { throw new ConfigurationException ( "'cluster' directory invalid or unreadable: " + clusterConfigDir . getAbsolutePath ( ) ) ; } if ( ! clusterConfigRootDir . exists ( ) ) { logger . debug ( "Creating new cluster configuration directory: " + clusterConfigRootDir . getAbsolutePath ( ) ) ; clusterConfigRootDir . mkdirs ( ) ; } if ( ! clusterConfigRootDir . isDirectory ( ) || ! clusterConfigRootDir . canWrite ( ) ) { throw new ConfigurationException ( "cluster configuration directory invalid or unreadable: " + clusterConfigRootDir . getAbsolutePath ( ) ) ; } }
creates the directory hierarchy for the root of a cluster configuration
