/** * write the Done record to the Howl Log * @param xaDnRec the Done Record * @param xaCmTx the XACommittingTx * @throws LogException could not log the record * @throws IOException * @throws InterruptedException */ public void howlDoneLog(byte [][] xaDnRec, XACommittingTx xaCmTx) throws LogException, IOException, InterruptedException { if (TraceTm.recovery.isDebugEnabled()) { TraceTm.recovery.debug("Done howl log"); } xaLog.putDone(xaDnRec, xaCmTx); }
/** * write the Done record to the Howl Log * @param xaDnRec the Done Record * @param xaCmTx the XACommittingTx * @throws LogException could not log the record * @throws IOException * @throws InterruptedException */ public void howlDoneLog(byte [][] xaDnRec, XACommittingTx xaCmTx) throws LogException, IOException, InterruptedException { if (TraceTm.recovery.isDebugEnabled()) { TraceTm.recovery.debug("Done howl log"); } xaLog.putDone(xaDnRec, xaCmTx); }
public void commit(Xid xid, Object logMark) throws LogException { //the data is theoretically unnecessary but is included to help with debugging and because HOWL currently requires it. byte[][] data = new byte[4][]; data[0] = new byte[]{COMMIT}; data[1] = intToBytes(xid.getFormatId()); data[2] = xid.getGlobalTransactionId(); data[3] = xid.getBranchQualifier(); try { logger.putDone(data, (XACommittingTx) logMark); // logger.putDone(null, (XACommittingTx) logMark); } catch (LogClosedException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (LogRecordSizeException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (LogFileOverflowException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (InterruptedException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (IOException e) { throw new LogException(e); } }
public void commit(Xid xid, Object logMark) throws LogException { //the data is theoretically unnecessary but is included to help with debugging and because HOWL currently requires it. byte[][] data = new byte[4][]; data[0] = new byte[]{COMMIT}; data[1] = intToBytes(xid.getFormatId()); data[2] = xid.getGlobalTransactionId(); data[3] = xid.getBranchQualifier(); try { logger.putDone(data, (XACommittingTx) logMark); // logger.putDone(null, (XACommittingTx) logMark); } catch (LogClosedException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (LogRecordSizeException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (LogFileOverflowException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (InterruptedException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (IOException e) { throw new LogException(e); } }
public void rollback(Xid xid, Object logMark) throws LogException { //the data is theoretically unnecessary but is included to help with debugging and because HOWL currently requires it. byte[][] data = new byte[4][]; data[0] = new byte[]{ROLLBACK}; data[1] = intToBytes(xid.getFormatId()); data[2] = xid.getGlobalTransactionId(); data[3] = xid.getBranchQualifier(); try { logger.putDone(data, (XACommittingTx) logMark); // logger.putDone(null, (XACommittingTx) logMark); } catch (LogClosedException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (LogRecordSizeException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (LogFileOverflowException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (InterruptedException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (IOException e) { throw new LogException(e); } }
public void rollback(Xid xid, Object logMark) throws LogException { //the data is theoretically unnecessary but is included to help with debugging and because HOWL currently requires it. byte[][] data = new byte[4][]; data[0] = new byte[]{ROLLBACK}; data[1] = intToBytes(xid.getFormatId()); data[2] = xid.getGlobalTransactionId(); data[3] = xid.getBranchQualifier(); try { logger.putDone(data, (XACommittingTx) logMark); // logger.putDone(null, (XACommittingTx) logMark); } catch (LogClosedException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (LogRecordSizeException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (LogFileOverflowException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (InterruptedException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (IOException e) { throw new LogException(e); } }
public void rollback(Xid xid, Object logMark) throws LogException { //the data is theoretically unnecessary but is included to help with debugging and because HOWL currently requires it. byte[][] data = new byte[4][]; data[0] = new byte[]{ROLLBACK}; data[1] = intToBytes(xid.getFormatId()); data[2] = xid.getGlobalTransactionId(); data[3] = xid.getBranchQualifier(); try { logger.putDone(data, (XACommittingTx) logMark); // logger.putDone(null, (XACommittingTx) logMark); } catch (LogClosedException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (LogRecordSizeException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (LogFileOverflowException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (InterruptedException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (IOException e) { throw new LogException(e); } }
public void commit(Xid xid, Object logMark) throws LogException { //the data is theoretically unnecessary but is included to help with debugging and because HOWL currently requires it. byte[][] data = new byte[4][]; data[0] = new byte[]{COMMIT}; data[1] = intToBytes(xid.getFormatId()); data[2] = xid.getGlobalTransactionId(); data[3] = xid.getBranchQualifier(); try { logger.putDone(data, (XACommittingTx) logMark); // logger.putDone(null, (XACommittingTx) logMark); } catch (LogClosedException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (LogRecordSizeException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (LogFileOverflowException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (InterruptedException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (IOException e) { throw new LogException(e); } }
public void commit(Xid xid, Object logMark) throws LogException { //the data is theoretically unnecessary but is included to help with debugging and because HOWL currently requires it. byte[][] data = new byte[4][]; data[0] = new byte[]{COMMIT}; data[1] = intToBytes(xid.getFormatId()); data[2] = xid.getGlobalTransactionId(); data[3] = xid.getBranchQualifier(); try { logger.putDone(data, (XACommittingTx) logMark); // logger.putDone(null, (XACommittingTx) logMark); } catch (LogClosedException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (LogRecordSizeException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (LogFileOverflowException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (InterruptedException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (IOException e) { throw new LogException(e); } }
public void rollback(Xid xid, Object logMark) throws LogException { //the data is theoretically unnecessary but is included to help with debugging and because HOWL currently requires it. byte[][] data = new byte[4][]; data[0] = new byte[]{ROLLBACK}; data[1] = intToBytes(xid.getFormatId()); data[2] = xid.getGlobalTransactionId(); data[3] = xid.getBranchQualifier(); try { logger.putDone(data, (XACommittingTx) logMark); // logger.putDone(null, (XACommittingTx) logMark); } catch (LogClosedException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (LogRecordSizeException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (LogFileOverflowException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (InterruptedException e) { throw (IllegalStateException) new IllegalStateException().initCause(e); } catch (IOException e) { throw new LogException(e); } }