private void checkPutEnabled() throws LogClosedException { if (replayNeeded) throw new LogClosedException("replay() must be called prior to put(); activeMark [0x" + Long.toHexString(super.getActiveMark()) + "]"); }
private void checkPutEnabled() throws LogClosedException { if (replayNeeded) throw new LogClosedException("replay() must be called prior to put(); activeMark [0x" + Long.toHexString(super.getActiveMark()) + "]"); }
private void checkPutEnabled() throws LogClosedException { if (replayNeeded) throw new LogClosedException("replay() must be called prior to put(); activeMark [0x" + Long.toHexString(super.getActiveMark()) + "]"); }
/** * Sets the LogFile marking mode. * * <p>passes call to LogFileManager * * @param autoMark true to indicate automatic marking. */ public void setAutoMark(boolean autoMark) throws InvalidLogKeyException, LogClosedException, LogFileOverflowException, IOException, InterruptedException { synchronized(this) { if (this.isClosed) throw new LogClosedException(); } lfmgr.setAutoMark(autoMark); }
/** * Sets the LogFile marking mode. * * <p>passes call to LogFileManager * * @param autoMark true to indicate automatic marking. */ public void setAutoMark(boolean autoMark) throws InvalidLogKeyException, LogClosedException, LogFileOverflowException, IOException, InterruptedException { synchronized(this) { if (this.isClosed) throw new LogClosedException(); } lfmgr.setAutoMark(autoMark); }
/** * Sets the LogFile marking mode. * * <p>passes call to LogFileManager * * @param autoMark true to indicate automatic marking. */ public void setAutoMark(boolean autoMark) throws InvalidLogKeyException, LogClosedException, LogFileOverflowException, IOException, InterruptedException { synchronized(this) { if (this.isClosed) throw new LogClosedException(); } lfmgr.setAutoMark(autoMark); }
/** * Sets the LogFile marking mode. * * <p>passes call to LogFileManager * * @param autoMark true to indicate automatic marking. */ public void setAutoMark(boolean autoMark) throws InvalidLogKeyException, LogClosedException, LogFileOverflowException, IOException, InterruptedException { synchronized(this) { if (this.isClosed) throw new LogClosedException(); } lfmgr.setAutoMark(autoMark); }
throw new LogClosedException("log is closed");
throw new LogClosedException("log is closed");
throw new LogClosedException("log is closed");
throw new LogClosedException("log is closed");
/** * Sub-classes call this method to write log records with * a specific record type. * * @param type a record type defined in LogRecordType. * @param data record data to be logged. * @param sync boolean indicating whether call should * wait for data to be written to physical disk. * * @return a log key that can be used to reference * the record. */ protected long put(short type, byte[][] data, boolean sync) throws LogClosedException, LogRecordSizeException, LogFileOverflowException, InterruptedException, IOException { synchronized(this) { if (isClosed) throw new LogClosedException(); } // QUESTION: should we deal with exceptions here? long key = bmgr.put(type, data, sync); lfmgr.setCurrentKey(key); return key; }
/** * Sub-classes call this method to write log records with * a specific record type. * * @param type a record type defined in LogRecordType. * @param data record data to be logged. * @param sync boolean indicating whether call should * wait for data to be written to physical disk. * * @return a log key that can be used to reference * the record. */ protected long put(short type, byte[][] data, boolean sync) throws LogClosedException, LogRecordSizeException, LogFileOverflowException, InterruptedException, IOException { synchronized(this) { if (isClosed) throw new LogClosedException(); } // QUESTION: should we deal with exceptions here? long key = bmgr.put(type, data, sync); lfmgr.setCurrentKey(key); return key; }
/** * Sub-classes call this method to write log records with * a specific record type. * * @param type a record type defined in LogRecordType. * @param data record data to be logged. * @param sync boolean indicating whether call should * wait for data to be written to physical disk. * * @return a log key that can be used to reference * the record. */ protected long put(short type, byte[][] data, boolean sync) throws LogClosedException, LogRecordSizeException, LogFileOverflowException, InterruptedException, IOException { synchronized(this) { if (isClosed) throw new LogClosedException(); } // QUESTION: should we deal with exceptions here? long key = bmgr.put(type, data, sync); lfmgr.setCurrentKey(key); return key; }
/** * Sub-classes call this method to write log records with * a specific record type. * * @param type a record type defined in LogRecordType. * @param data record data to be logged. * @param sync boolean indicating whether call should * wait for data to be written to physical disk. * * @return a log key that can be used to reference * the record. */ protected long put(short type, byte[][] data, boolean sync) throws LogClosedException, LogRecordSizeException, LogFileOverflowException, InterruptedException, IOException { synchronized(this) { if (isClosed) throw new LogClosedException(); } // QUESTION: should we deal with exceptions here? long key = bmgr.put(type, data, sync); lfmgr.setCurrentKey(key); return key; }
super.replay(xaListener, getActiveMark(), true); // replay CTRL records also } catch (InvalidLogKeyException e) { throw new LogClosedException(e); LogClosedException lce = new LogClosedException(xaListener.replayException); throw lce;
super.replay(xaListener, getActiveMark(), true); // replay CTRL records also } catch (InvalidLogKeyException e) { throw new LogClosedException(e); LogClosedException lce = new LogClosedException(xaListener.replayException); throw lce;
super.replay(xaListener, getActiveMark(), true); // replay CTRL records also } catch (InvalidLogKeyException e) { throw new LogClosedException(e); LogClosedException lce = new LogClosedException(xaListener.replayException); throw lce;