/** * Construct a Logger using a Configuration supplied * by the caller. * @param config Configuration object * @throws IOException */ public XALogger(Configuration config) throws IOException { super(config); init(); }
public void doStop() throws Exception { started = false; logger.close(); recovered = null; }
public String getXMLStats() { return logger.getStats(); }
/** * add a USER record consisting of byte[] to the log. * <p>waits for overflow notification processing to complete * prior to putting the data to the log. * * @throws LogClosedException * If the TM has called open() but has not called replay(). * Also thrown if log is actually closed. * Check the toString() for details. * * @see org.objectweb.howl.log.Logger#put(byte[], boolean) */ public long put(byte[] data, boolean sync) throws LogClosedException, LogRecordSizeException, LogFileOverflowException, InterruptedException, IOException { checkPutEnabled(); // wait for overflow notification processor to finish. onpWait(); return put(LogRecordType.USER, new byte[][]{data}, sync); }
public LogRecord getLogRecord() { if (TraceTm.recovery.isDebugEnabled()) { TraceTm.recovery.debug("getLogRecord"); } return new XALogRecord(120); } }
/** * Wrapp Logger#replay(ReplayListener, long) so we can * intercept onRecord() notifications to process * XACOMMIT and XACOMMITMOVED records. */ public void replay(ReplayListener listener, long key) throws InvalidLogKeyException, LogConfigurationException { XAReplayListener replayListener = new XAReplayListener(listener); super.replay(replayListener, key, true); }
public void doStop() throws Exception { started = false; logger.close(); recovered = null; }
public String getXMLStats() { return logger.getStats(); }
/** * Construct a Logger using a Configuration supplied * by the caller. * @param config Configuration object * @throws IOException */ public XALogger(Configuration config) throws IOException { super(config); init(); }
public LogRecord getLogRecord() { if (TraceTm.recovery.isDebugEnabled()) { TraceTm.recovery.debug("getLogRecord"); } return new XALogRecord(120); } }
/** * Wrapp Logger#replay(ReplayListener, long) so we can * intercept onRecord() notifications to process * XACOMMIT and XACOMMITMOVED records. */ public void replay(ReplayListener listener, long key) throws InvalidLogKeyException, LogConfigurationException { XAReplayListener replayListener = new XAReplayListener(listener); super.replay(replayListener, key, true); }
public void doStop() throws Exception { started = false; logger.close(); recovered = null; }
public String getXMLStats() { return logger.getStats(); }
/** * Construct a Logger using a Configuration supplied * by the caller. * @param config Configuration object * @throws IOException */ public XALogger(Configuration config) throws IOException { super(config); init(); }
/** * Wrapp Logger#replay(ReplayListener, long) so we can * intercept onRecord() notifications to process * XACOMMIT and XACOMMITMOVED records. */ public void replay(ReplayListener listener, long key) throws InvalidLogKeyException, LogConfigurationException { XAReplayListener replayListener = new XAReplayListener(listener); super.replay(replayListener, key, true); }
public void doStop() throws Exception { started = false; logger.close(); recovered = null; }
public String getXMLStats() { return logger.getStats(); }
/** * Construct a Logger using default Configuration object. * @throws IOException */ public XALogger() throws IOException { super(new Configuration()); init(); }
/** * Construct a Logger using default Configuration object. * @throws IOException */ public XALogger() throws IOException { super(new Configuration()); init(); }
/** * Construct a Logger using default Configuration object. * @throws IOException */ public XALogger() throws IOException { super(new Configuration()); init(); }