void createPaxosDir() throws IOException { if (!getPaxosDir().mkdirs()) { throw new IOException("Could not create paxos dir: " + getPaxosDir()); } }
/** * @return the path for the file which contains persisted data for the * paxos-like recovery process for the given log segment. */ File getPaxosFile(long segmentTxId) { return new File(getPaxosDir(), String.valueOf(segmentTxId)); }
/** * Remove any log files and associated paxos files which are older than * the given txid. */ void purgeDataOlderThan(long minTxIdToKeep) throws IOException { purgeMatching(sd.getCurrentDir(), CURRENT_DIR_PURGE_REGEXES, minTxIdToKeep); purgeMatching(getPaxosDir(), PAXOS_DIR_PURGE_REGEXES, minTxIdToKeep); }
void createPaxosDir() throws IOException { if (!getPaxosDir().mkdirs()) { throw new IOException("Could not create paxos dir: " + getPaxosDir()); } }
void createPaxosDir() throws IOException { if (!getPaxosDir().mkdirs()) { throw new IOException("Could not create paxos dir: " + getPaxosDir()); } }
/** * @return the path for the file which contains persisted data for the * paxos-like recovery process for the given log segment. */ File getPaxosFile(long segmentTxId) { return new File(getPaxosDir(), String.valueOf(segmentTxId)); }
/** * @return the path for the file which contains persisted data for the * paxos-like recovery process for the given log segment. */ File getPaxosFile(long segmentTxId) { return new File(getPaxosDir(), String.valueOf(segmentTxId)); }
/** * Remove any log files and associated paxos files which are older than * the given txid. */ void purgeDataOlderThan(long minTxIdToKeep) throws IOException { purgeMatching(sd.getCurrentDir(), CURRENT_DIR_PURGE_REGEXES, minTxIdToKeep); purgeMatching(getPaxosDir(), PAXOS_DIR_PURGE_REGEXES, minTxIdToKeep); }
/** * Remove any log files and associated paxos files which are older than * the given txid. */ void purgeDataOlderThan(long minTxIdToKeep) throws IOException { purgeMatching(sd.getCurrentDir(), CURRENT_DIR_PURGE_REGEXES, minTxIdToKeep); purgeMatching(getPaxosDir(), PAXOS_DIR_PURGE_REGEXES, minTxIdToKeep); }