/** * Make the persistent directory * @throws IOException IO failure */ public void mkPersistDir() throws IOException { coreFS.getFileSystem().mkdirs(persistDir); }
/** * Make the persistent directory * @throws IOException IO failure */ public void mkPersistDir() throws IOException { coreFS.getFileSystem().mkdirs(persistDir); }
public ConfPersister(CoreFileSystem coreFS, Path persistDir) { this.coreFS = coreFS; this.persistDir = persistDir; internal = new Path(persistDir, Filenames.INTERNAL); resources = new Path(persistDir, Filenames.RESOURCES); app_conf = new Path(persistDir, Filenames.APPCONF); writelock = new Path(persistDir, Filenames.WRITELOCK); readlock = new Path(persistDir, Filenames.READLOCK); fileSystem = coreFS.getFileSystem(); }
public ConfPersister(CoreFileSystem coreFS, Path persistDir) { this.coreFS = coreFS; this.persistDir = persistDir; internal = new Path(persistDir, Filenames.INTERNAL); resources = new Path(persistDir, Filenames.RESOURCES); app_conf = new Path(persistDir, Filenames.APPCONF); writelock = new Path(persistDir, Filenames.WRITELOCK); readlock = new Path(persistDir, Filenames.READLOCK); fileSystem = coreFS.getFileSystem(); }
FileSystem fs = getFileSystem(); Path path = new Path(getBaseApplicationPath(), SliderKeys.CLUSTER_DIRECTORY); log.debug("Looking for all persisted application at {}", path.toString());
FileSystem fs = getFileSystem(); Path path = new Path(getBaseApplicationPath(), SliderKeys.CLUSTER_DIRECTORY); log.debug("Looking for all persisted application at {}", path.toString());
IOException, LockAcquireFailedException { if (!coreFS.getFileSystem().exists(persistDir)) {
IOException, LockAcquireFailedException { if (!coreFS.getFileSystem().exists(persistDir)) {