private void storeFreeList() throws IOException { FileOutputStream os = new FileOutputStream(getFreeFile()); DataOutputStream dos = new DataOutputStream(os); SequenceSet.Marshaller.INSTANCE.writePayload(freeList, dos); dos.close(); }
private void loadFreeList() throws IOException { freeList.clear(); FileInputStream is = new FileInputStream(getFreeFile()); DataInputStream dis = new DataInputStream(is); freeList = SequenceSet.Marshaller.INSTANCE.readPayload(dis); dis.close(); }
public void archive() throws IOException { if (loaded.get()) { throw new IllegalStateException("Cannot delete page file data when the page file is loaded"); } long timestamp = System.currentTimeMillis(); archive(getMainPageFile(), String.valueOf(timestamp)); archive(getFreeFile(), String.valueOf(timestamp)); archive(getRecoveryFile(), String.valueOf(timestamp)); }
/** * Deletes the files used by the PageFile object. This method can only be used when this object is not loaded. * * @throws IOException if the files cannot be deleted. * @throws IllegalStateException if this PageFile is loaded */ public void delete() throws IOException { if (loaded.get()) { throw new IllegalStateException("Cannot delete page file data when the page file is loaded"); } delete(getMainPageFile()); delete(getFreeFile()); delete(getRecoveryFile()); }
getFreeFile().delete(); startWriter(); if (trackingFreeDuringRecovery.get() != null) {
private void storeFreeList() throws IOException { FileOutputStream os = new FileOutputStream(getFreeFile()); DataOutputStream dos = new DataOutputStream(os); SequenceSet.Marshaller.INSTANCE.writePayload(freeList, dos); dos.close(); }
private void storeFreeList() throws IOException { FileOutputStream os = new FileOutputStream(getFreeFile()); DataOutputStream dos = new DataOutputStream(os); SequenceSet.Marshaller.INSTANCE.writePayload(freeList, dos); dos.close(); }
private void storeFreeList() throws IOException { FileOutputStream os = new FileOutputStream(getFreeFile()); DataOutputStream dos = new DataOutputStream(os); SequenceSet.Marshaller.INSTANCE.writePayload(freeList, dos); dos.close(); }
private void loadFreeList() throws IOException { freeList.clear(); FileInputStream is = new FileInputStream(getFreeFile()); DataInputStream dis = new DataInputStream(is); freeList = SequenceSet.Marshaller.INSTANCE.readPayload(dis); dis.close(); }
private void loadFreeList() throws IOException { freeList.clear(); FileInputStream is = new FileInputStream(getFreeFile()); DataInputStream dis = new DataInputStream(is); freeList = SequenceSet.Marshaller.INSTANCE.readPayload(dis); dis.close(); }
private void loadFreeList() throws IOException { freeList.clear(); FileInputStream is = new FileInputStream(getFreeFile()); DataInputStream dis = new DataInputStream(is); freeList = SequenceSet.Marshaller.INSTANCE.readPayload(dis); dis.close(); }
public void archive() throws IOException { if (loaded.get()) { throw new IllegalStateException("Cannot delete page file data when the page file is loaded"); } long timestamp = System.currentTimeMillis(); archive(getMainPageFile(), String.valueOf(timestamp)); archive(getFreeFile(), String.valueOf(timestamp)); archive(getRecoveryFile(), String.valueOf(timestamp)); }
public void archive() throws IOException { if (loaded.get()) { throw new IllegalStateException("Cannot delete page file data when the page file is loaded"); } long timestamp = System.currentTimeMillis(); archive(getMainPageFile(), String.valueOf(timestamp)); archive(getFreeFile(), String.valueOf(timestamp)); archive(getRecoveryFile(), String.valueOf(timestamp)); }
public void archive() throws IOException { if (loaded.get()) { throw new IllegalStateException("Cannot delete page file data when the page file is loaded"); } long timestamp = System.currentTimeMillis(); archive(getMainPageFile(), String.valueOf(timestamp)); archive(getFreeFile(), String.valueOf(timestamp)); archive(getRecoveryFile(), String.valueOf(timestamp)); }
/** * Deletes the files used by the PageFile object. This method can only be used when this object is not loaded. * * @throws IOException if the files cannot be deleted. * @throws IllegalStateException if this PageFile is loaded */ public void delete() throws IOException { if (loaded.get()) { throw new IllegalStateException("Cannot delete page file data when the page file is loaded"); } delete(getMainPageFile()); delete(getFreeFile()); delete(getRecoveryFile()); }
/** * Deletes the files used by the PageFile object. This method can only be used when this object is not loaded. * * @throws IOException if the files cannot be deleted. * @throws IllegalStateException if this PageFile is loaded */ public void delete() throws IOException { if (loaded.get()) { throw new IllegalStateException("Cannot delete page file data when the page file is loaded"); } delete(getMainPageFile()); delete(getFreeFile()); delete(getRecoveryFile()); }
/** * Deletes the files used by the PageFile object. This method can only be used when this object is not loaded. * * @throws IOException if the files cannot be deleted. * @throws IllegalStateException if this PageFile is loaded */ public void delete() throws IOException { if (loaded.get()) { throw new IllegalStateException("Cannot delete page file data when the page file is loaded"); } delete(getMainPageFile()); delete(getFreeFile()); delete(getRecoveryFile()); }
getFreeFile().delete(); startWriter(); if (trackingFreeDuringRecovery.get() != null) {
getFreeFile().delete(); startWriter(); if (trackingFreeDuringRecovery.get() != null) {
getFreeFile().delete(); startWriter(); if (trackingFreeDuringRecovery.get() != null) {