public void saveClusterFile(MesosCluster cluster){
  String clusterId=cluster.getClusterId();
  File dotMinimesosDir=getMinimesosDir();
  try {
    FileUtils.forceMkdir(dotMinimesosDir);
    String clusterIdPath=dotMinimesosDir.getAbsolutePath() + "/" + MINIMESOS_FILE_PROPERTY;
    Files.write(Paths.get(clusterIdPath),clusterId.getBytes());
    LOGGER.debug("Writing cluster ID " + clusterId + " to "+ clusterIdPath);
  }
 catch (  IOException ie) {
    LOGGER.error("Could not write .minimesos folder",ie);
    throw new RuntimeException(ie);
  }
}

public void saveClusterFile ( MesosCluster cluster ) { String clusterId = cluster . getClusterId ( ) ; File dotMinimesosDir = getMinimesosDir ( ) ; try { FileUtils . forceMkdir ( dotMinimesosDir ) ; String clusterIdPath = dotMinimesosDir . getAbsolutePath ( ) + "/" + MINIMESOS_FILE_PROPERTY ; Files . write ( Paths . get ( clusterIdPath ) , clusterId . getBytes ( ) ) ; LOGGER . debug ( "Writing cluster ID " + clusterId + " to " + clusterIdPath ) ; } catch ( IOException ie ) { LOGGER . error ( "Could not write .minimesos folder" , ie ) ; throw new RuntimeException ( ie ) ; } }
writes cluster id to file
