public static void dumpClusterToFile ( String outputDirName , String fileName , Cluster cluster ) { if ( outputDirName != null ) { File outputDir = new File ( outputDirName ) ; if ( ! outputDir . exists ( ) ) { Utils . mkdirs ( outputDir ) ; } try { FileUtils . writeStringToFile ( new File ( outputDirName , fileName ) , new ClusterMapper ( ) . writeCluster ( cluster ) ) ; } catch ( IOException e ) { logger . error ( "IOException during dumpClusterToFile: " + e ) ; } } }
Prints a cluster xml to a file .