/** * @see org.apache.activeio.journal.Journal#setJournalEventListener(org.codehaus.activemq.journal.JournalEventListener) */ public void setJournalEventListener(final JournalEventListener eventListener) { logger.setLogEventListener(new LogEventListener() { public void logOverflowNotification(long key) { eventListener.overflowNotification(new LongRecordLocation(key)); } }); }
/** * Common initialization for all constructors. */ private void init() { // allocate a table of active transaction objects activeTx = new XACommittingTx[50]; for (int i=0; i < activeTx.length; ++i) activeTx[i] = null; // allocate and initialize the table of indexes // for available entries in activeTx. // initially, all entries are available. availableTx = new XACommittingTx[activeTx.length]; for (int i=0; i < activeTx.length; ++i) availableTx[i] = new XACommittingTx(i); // register the event listener super.setLogEventListener(this); }
/** * Common initialization for all constructors. */ private void init() { // allocate a table of active transaction objects activeTx = new XACommittingTx[50]; for (int i=0; i < activeTx.length; ++i) activeTx[i] = null; // allocate and initialize the table of indexes // for available entries in activeTx. // initially, all entries are available. availableTx = new XACommittingTx[activeTx.length]; for (int i=0; i < activeTx.length; ++i) availableTx[i] = new XACommittingTx(i); // register the event listener super.setLogEventListener(this); }
/** * Common initialization for all constructors. */ private void init() { // allocate a table of active transaction objects activeTx = new XACommittingTx[50]; for (int i=0; i < activeTx.length; ++i) activeTx[i] = null; // allocate and initialize the table of indexes // for available entries in activeTx. // initially, all entries are available. availableTx = new XACommittingTx[activeTx.length]; for (int i=0; i < activeTx.length; ++i) availableTx[i] = new XACommittingTx(i); // register the event listener super.setLogEventListener(this); }