public static synchronized ActivityReaper activityReaper () { return activityReaper(false); }
public static synchronized ActivityReaper activityReaper (boolean createReaper) { if (createReaper) return create(); else return _theReaper; }
_sleepPeriod = _reaperObject.sleepPeriod(); if (_sleepPeriod > 0) { try { _reaperObject.check(System.currentTimeMillis());
if (!ActivityReaper.activityReaper(true).insert(this, _timeout))
/** * Currently we let the reaper thread run at same priority as other * threads. Could get priority from environment. */ public static synchronized ActivityReaper create () { // TODO -- problem here because nothing calls shutdown if (_theReaper == null) { ActivityReaper._theReaper = new ActivityReaper(); _reaperThread = new ReaperThread(ActivityReaper._theReaper); // _reaperThread.setPriority(Thread.MIN_PRIORITY); _reaperThread.setDaemon(true); _reaperThread.start(); } return _theReaper; }
public void stop() throws Exception { XTSLogger.logger.info("JBossTS XTS Transaction Service - stopping"); TaskManager.getManager().shutdown() ; // com.arjuna.services.framework.admin.TaskManagerInitialisation // shutdown the activity service reaper ActivityReaper.shutdown(); // execute shutdown for all registered initialisations Iterator<XTSInitialisation> iterator = xtsInitialisations.iterator(); while (iterator.hasNext()) { XTSInitialisation xtsInitialisation = iterator.next(); xtsInitialisation.shutdown(); } xtsInitialisations.clear(); }
_sleepPeriod = _reaperObject.sleepPeriod(); if (_sleepPeriod > 0) { try { _reaperObject.check(System.currentTimeMillis());
if (!ActivityReaper.activityReaper(true).insert(this, _timeout))
/** * Currently we let the reaper thread run at same priority as other * threads. Could get priority from environment. */ public static synchronized ActivityReaper create () { // TODO -- problem here because nothing calls shutdown if (_theReaper == null) { ActivityReaper._theReaper = new ActivityReaper(); _reaperThread = new ReaperThread(ActivityReaper._theReaper); // _reaperThread.setPriority(Thread.MIN_PRIORITY); _reaperThread.setDaemon(true); _reaperThread.start(); } return _theReaper; }
public void stop() throws Exception { XTSLogger.logger.info("JBossTS XTS Transaction Service - stopping"); TaskManager.getManager().shutdown() ; // com.arjuna.services.framework.admin.TaskManagerInitialisation // shutdown the activity service reaper ActivityReaper.shutdown(); // execute shutdown for all registered initialisations Iterator<XTSInitialisation> iterator = xtsInitialisations.iterator(); while (iterator.hasNext()) { XTSInitialisation xtsInitialisation = iterator.next(); xtsInitialisation.shutdown(); } xtsInitialisations.clear(); }
_sleepPeriod = _reaperObject.sleepPeriod(); if (_sleepPeriod > 0) { try { _reaperObject.check(System.currentTimeMillis());
if (!ActivityReaper.activityReaper(true).insert(this, _timeout))
public static synchronized ActivityReaper activityReaper (boolean createReaper) { if (createReaper) return create(); else return _theReaper; }
public static synchronized ActivityReaper activityReaper () { return activityReaper(false); }
/** * Currently we let the reaper thread run at same priority as other * threads. Could get priority from environment. */ public static synchronized ActivityReaper create () { // TODO -- problem here because nothing calls shutdown if (_theReaper == null) { ActivityReaper._theReaper = new ActivityReaper(); _reaperThread = new ReaperThread(ActivityReaper._theReaper); // _reaperThread.setPriority(Thread.MIN_PRIORITY); _reaperThread.setDaemon(true); _reaperThread.start(); } return _theReaper; }
_sleepPeriod = _reaperObject.sleepPeriod(); if (_sleepPeriod > 0) { try { _reaperObject.check(System.currentTimeMillis());
if (!ActivityReaper.activityReaper(true).insert(this, _timeout))
public static synchronized ActivityReaper activityReaper (boolean createReaper) { if (createReaper) return create(); else return _theReaper; }
public static synchronized ActivityReaper activityReaper () { return activityReaper(false); }
/** * Currently we let the reaper thread run at same priority as other * threads. Could get priority from environment. */ public static synchronized ActivityReaper create () { // TODO -- problem here because nothing calls shutdown if (_theReaper == null) { ActivityReaper._theReaper = new ActivityReaper(); _reaperThread = new ReaperThread(ActivityReaper._theReaper); // _reaperThread.setPriority(Thread.MIN_PRIORITY); _reaperThread.setDaemon(true); _reaperThread.start(); } return _theReaper; }