/** * terminate any currently active monitor thread, cancelling any further scans but waiting for the * thread to exit before returning */ public synchronized static void shutdown() { if (_theInstance != null) { _theInstance.terminate(); // now wait for it to finish try { _theInstance.join(); } catch (InterruptedException e) { // ignore } } _theInstance = null; }
private ExpiredEntryMonitor(boolean skipFirst) { super ("Transaction Expired Entry Monitor"); if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("ExpiredEntryMonitor - constructed"); } _skipNext = skipFirst; _stop = false; this.setDaemon(true); }
boolean useListener = recoveryPropertyManager.getRecoveryEnvironmentBean().isRecoveryListener(); _periodicRecovery = new PeriodicRecovery(threaded, useListener); ExpiredEntryMonitor.startUp(); tsLogger.i18NLogger.info_recovery_socketready( Integer.toString(_periodicRecovery.getServerSocket().getLocalPort()));
private static void initialise() { /* * Read the system properties to set the configurable options */ _scanIntervalSeconds = recoveryPropertyManager.getRecoveryEnvironmentBean().getExpiryScanInterval() * 60 * 60; if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("Expiry scan interval set to "+Integer.toString(_scanIntervalSeconds)+" seconds"); } if (_scanIntervalSeconds != 0) { // is it being used to skip the first time if ( _scanIntervalSeconds < 0 ) { _skipFirst = true; _scanIntervalSeconds = - _scanIntervalSeconds; } loadScanners(); } initialised = true; }
initialise(); _theInstance = new ExpiredEntryMonitor(_skipFirst); _theInstance.start();
boolean useListener = recoveryPropertyManager.getRecoveryEnvironmentBean().isRecoveryListener(); _periodicRecovery = new PeriodicRecovery(threaded, useListener); ExpiredEntryMonitor.startUp(); tsLogger.i18NLogger.info_recovery_socketready( Integer.toString(_periodicRecovery.getServerSocket().getLocalPort()));
private static void initialise() { /* * Read the system properties to set the configurable options */ _scanIntervalSeconds = recoveryPropertyManager.getRecoveryEnvironmentBean().getExpiryScanInterval() * 60 * 60; if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("Expiry scan interval set to "+Integer.toString(_scanIntervalSeconds)+" seconds"); } if (_scanIntervalSeconds != 0) { // is it being used to skip the first time if ( _scanIntervalSeconds < 0 ) { _skipFirst = true; _scanIntervalSeconds = - _scanIntervalSeconds; } loadScanners(); } initialised = true; }
initialise(); _theInstance = new ExpiredEntryMonitor(_skipFirst); _theInstance.start();
boolean useListener = recoveryPropertyManager.getRecoveryEnvironmentBean().isRecoveryListener(); _periodicRecovery = new PeriodicRecovery(threaded, useListener); ExpiredEntryMonitor.startUp(); tsLogger.i18NLogger.info_recovery_socketready( Integer.toString(_periodicRecovery.getServerSocket().getLocalPort()));
private static void initialise() { /* * Read the system properties to set the configurable options */ _scanIntervalSeconds = recoveryPropertyManager.getRecoveryEnvironmentBean().getExpiryScanInterval() * 60 * 60; if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("Expiry scan interval set to "+Integer.toString(_scanIntervalSeconds)+" seconds"); } if (_scanIntervalSeconds != 0) { // is it being used to skip the first time if ( _scanIntervalSeconds < 0 ) { _skipFirst = true; _scanIntervalSeconds = - _scanIntervalSeconds; } loadScanners(); } initialised = true; }
initialise(); _theInstance = new ExpiredEntryMonitor(_skipFirst); _theInstance.start();
/** * terminate any currently active monitor thread, cancelling any further scans but waiting for the * thread to exit before returning */ public synchronized static void shutdown() { if (_theInstance != null) { _theInstance.terminate(); // now wait for it to finish try { _theInstance.join(); } catch (InterruptedException e) { // ignore } } _theInstance = null; }
private ExpiredEntryMonitor(boolean skipFirst) { super ("Transaction Expired Entry Monitor"); if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("ExpiredEntryMonitor - constructed"); } _skipNext = skipFirst; _stop = false; this.setDaemon(true); }
boolean useListener = recoveryPropertyManager.getRecoveryEnvironmentBean().isRecoveryListener(); _periodicRecovery = new PeriodicRecovery(threaded, useListener); ExpiredEntryMonitor.startUp(); tsLogger.i18NLogger.info_recovery_socketready( Integer.toString(_periodicRecovery.getServerSocket().getLocalPort()));
private static void initialise() { /* * Read the system properties to set the configurable options */ _scanIntervalSeconds = recoveryPropertyManager.getRecoveryEnvironmentBean().getExpiryScanInterval() * 60 * 60; if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("Expiry scan interval set to "+Integer.toString(_scanIntervalSeconds)+" seconds"); } if (_scanIntervalSeconds != 0) { // is it being used to skip the first time if ( _scanIntervalSeconds < 0 ) { _skipFirst = true; _scanIntervalSeconds = - _scanIntervalSeconds; } loadScanners(); } initialised = true; }
initialise(); _theInstance = new ExpiredEntryMonitor(_skipFirst); _theInstance.start();
/** * terminate any currently active monitor thread, cancelling any further scans but waiting for the * thread to exit before returning */ public synchronized static void shutdown() { if (_theInstance != null) { _theInstance.terminate(); // now wait for it to finish try { _theInstance.join(); } catch (InterruptedException e) { // ignore } } _theInstance = null; }