/** * Locate an application conf json in the FS. This includes a check to verify * that the file is there. * * @param clustername name of the cluster * @return the path to the spec. * @throws IOException IO problems * @throws SliderException if the path isn't there */ public Path locateInstanceDefinition(String clustername) throws IOException, SliderException { Path clusterDirectory = buildClusterDirPath(clustername); Path appConfPath = new Path(clusterDirectory, Filenames.APPCONF); verifyClusterSpecExists(clustername, appConfPath); return appConfPath; }
/** * Locate an application conf json in the FS. This includes a check to verify * that the file is there. * * @param clustername name of the cluster * @return the path to the spec. * @throws IOException IO problems * @throws SliderException if the path isn't there */ public Path locateInstanceDefinition(String clustername) throws IOException, SliderException { Path clusterDirectory = buildClusterDirPath(clustername); Path appConfPath = new Path(clusterDirectory, Filenames.APPCONF); verifyClusterSpecExists(clustername, appConfPath); return appConfPath; }