Refine search
public static boolean enabled() { //not thread safe but not sure we require thread safety as long as eventually all threads stop setting the bean if(_environmentBean==null){ _environmentBean=arjPropertyManager.getCoordinatorEnvironmentBean(); } return _environmentBean.isEnableStatistics(); }
@Override public synchronized void start(final StartContext context) throws StartException { final CoordinatorEnvironmentBean coordinatorEnvironmentBean = arjPropertyManager.getCoordinatorEnvironmentBean(); coordinatorEnvironmentBean.setEnableStatistics(coordinatorEnableStatistics); coordinatorEnvironmentBean.setDefaultTimeout(coordinatorDefaultTimeout); coordinatorEnvironmentBean.setTransactionStatusManagerEnable(transactionStatusManagerEnable);
/** * Create a transaction of the specified type. */ protected BasicAction (int at) { super(ObjectType.NEITHER); pendingList = null; preparedList = null; readonlyList = null; failedList = null; heuristicList = null; currentHierarchy = null; transactionStore = null; savedIntentionList = false; actionStatus = ActionStatus.CREATED; actionType = at; parentAction = null; recordBeingHandled = null; heuristicDecision = TwoPhaseOutcome.PREPARE_OK; _checkedAction = arjPropertyManager .getCoordinatorEnvironmentBean().getCheckedActionFactory() .getCheckedAction(get_uid(), type()); _childThreads = null; _childActions = null; }
String mode = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperMode(); checkPeriod = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperTimeout(); TransactionReaper._theReaper._cancelWaitPeriod = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperCancelWaitPeriod(); TransactionReaper._theReaper._cancelFailWaitPeriod = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperCancelFailWaitPeriod(); TransactionReaper._theReaper._zombieMax = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperZombieMax();
arjPropertyManager.getObjectStoreEnvironmentBean().setObjectStoreDir(objectStoreDir); arjPropertyManager.getObjectStoreEnvironmentBean().setLocalOSRoot(OS_ROOT); final String xaNodeId = MessageFormat.format("Mule[{0}/{1}]", address.getHostName(), address.getHostAddress()); arjPropertyManager.getCoreEnvironmentBean().setNodeIdentifier(xaNodeId); arjPropertyManager.getCoordinatorEnvironmentBean().setDefaultTimeout(Integer.valueOf(properties.get(PROPERTY_DEFAULT_TIMEOUT))); arjPropertyManager.getCoordinatorEnvironmentBean().setTxReaperTimeout(Long.valueOf(properties.get(PROPERTY_TX_REAPER_TIMEOUT)));
public static CoordinatorEnvironmentBean getCoordinatorEnvironmentBean() { try { return BeanPopulator.getDefaultInstance(CoordinatorEnvironmentBean.class); } catch (final java.lang.RuntimeException ex) { if (Utility.isAndroid()) return new CoordinatorEnvironmentBean(); // todo android else throw new RuntimeException(ex); } }
/** * Create a transaction of the specified type. */ protected BasicAction (int at) { super(ObjectType.NEITHER); pendingList = null; preparedList = null; readonlyList = null; failedList = null; heuristicList = null; currentHierarchy = null; transactionStore = null; savedIntentionList = false; actionStatus = ActionStatus.CREATED; actionType = at; parentAction = null; recordBeingHandled = null; heuristicDecision = TwoPhaseOutcome.PREPARE_OK; _checkedAction = arjPropertyManager .getCoordinatorEnvironmentBean().getCheckedActionFactory() .getCheckedAction(get_uid(), type()); _childThreads = null; _childActions = null; }
String mode = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperMode(); checkPeriod = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperTimeout(); TransactionReaper._theReaper._cancelWaitPeriod = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperCancelWaitPeriod(); TransactionReaper._theReaper._cancelFailWaitPeriod = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperCancelFailWaitPeriod(); TransactionReaper._theReaper._zombieMax = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperZombieMax();
public static CoordinatorEnvironmentBean getCoordinatorEnvironmentBean() { try { return BeanPopulator.getDefaultInstance(CoordinatorEnvironmentBean.class); } catch (final java.lang.RuntimeException ex) { if (Utility.isAndroid()) return new CoordinatorEnvironmentBean(); // todo android else throw new RuntimeException(ex); } }
/** * Recreate the specified transaction. Used for crash recovery purposes. */ protected BasicAction (Uid u, int at) { super(u, ObjectType.NEITHER); pendingList = null; preparedList = null; readonlyList = null; failedList = null; heuristicList = null; currentHierarchy = null; transactionStore = null; savedIntentionList = false; actionStatus = ActionStatus.CREATED; actionType = at; parentAction = null; recordBeingHandled = null; heuristicDecision = TwoPhaseOutcome.PREPARE_OK; _checkedAction = arjPropertyManager .getCoordinatorEnvironmentBean().getCheckedActionFactory() .getCheckedAction(get_uid(), type()); _childThreads = null; _childActions = null; }
String mode = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperMode(); checkPeriod = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperTimeout(); TransactionReaper._theReaper._cancelWaitPeriod = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperCancelWaitPeriod(); TransactionReaper._theReaper._cancelFailWaitPeriod = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperCancelFailWaitPeriod(); TransactionReaper._theReaper._zombieMax = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperZombieMax();
public static boolean enabled() { //not thread safe but not sure we require thread safety as long as eventually all threads stop setting the bean if(_environmentBean==null){ _environmentBean=arjPropertyManager.getCoordinatorEnvironmentBean(); } return _environmentBean.isEnableStatistics(); }
@Override public synchronized void start(final StartContext context) throws StartException { final CoordinatorEnvironmentBean coordinatorEnvironmentBean = arjPropertyManager.getCoordinatorEnvironmentBean(); coordinatorEnvironmentBean.setEnableStatistics(coordinatorEnableStatistics); coordinatorEnvironmentBean.setDefaultTimeout(coordinatorDefaultTimeout); coordinatorEnvironmentBean.setTransactionStatusManagerEnable(transactionStatusManagerEnable);
public static CoordinatorEnvironmentBean getCoordinatorEnvironmentBean() { try { return BeanPopulator.getDefaultInstance(CoordinatorEnvironmentBean.class); } catch (final java.lang.RuntimeException ex) { if (Utility.isAndroid()) return new CoordinatorEnvironmentBean(); // todo android else throw new RuntimeException(ex); } }
/** * Recreate the specified transaction. Used for crash recovery purposes. */ protected BasicAction (Uid u, int at) { super(u, ObjectType.NEITHER); pendingList = null; preparedList = null; readonlyList = null; failedList = null; heuristicList = null; currentHierarchy = null; transactionStore = null; savedIntentionList = false; actionStatus = ActionStatus.CREATED; actionType = at; parentAction = null; recordBeingHandled = null; heuristicDecision = TwoPhaseOutcome.PREPARE_OK; _checkedAction = arjPropertyManager .getCoordinatorEnvironmentBean().getCheckedActionFactory() .getCheckedAction(get_uid(), type()); _childThreads = null; _childActions = null; }
String mode = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperMode(); checkPeriod = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperTimeout(); TransactionReaper._theReaper._cancelWaitPeriod = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperCancelWaitPeriod(); TransactionReaper._theReaper._cancelFailWaitPeriod = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperCancelFailWaitPeriod(); TransactionReaper._theReaper._zombieMax = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperZombieMax();
public static boolean enabled() { //not thread safe but not sure we require thread safety as long as eventually all threads stop setting the bean if(_environmentBean==null){ _environmentBean=arjPropertyManager.getCoordinatorEnvironmentBean(); } return _environmentBean.isEnableStatistics(); }
@Override public synchronized void start(final StartContext context) throws StartException { final CoordinatorEnvironmentBean coordinatorEnvironmentBean = arjPropertyManager.getCoordinatorEnvironmentBean(); coordinatorEnvironmentBean.setEnableStatistics(coordinatorEnableStatistics); coordinatorEnvironmentBean.setDefaultTimeout(coordinatorDefaultTimeout); coordinatorEnvironmentBean.setTransactionStatusManagerEnable(transactionStatusManagerEnable);
/** * Create a transaction of the specified type. */ protected BasicAction (int at) { super(ObjectType.NEITHER); pendingList = null; preparedList = null; readonlyList = null; failedList = null; heuristicList = null; currentHierarchy = null; transactionStore = null; savedIntentionList = false; actionStatus = ActionStatus.CREATED; actionType = at; parentAction = null; recordBeingHandled = null; heuristicDecision = TwoPhaseOutcome.PREPARE_OK; _checkedAction = arjPropertyManager .getCoordinatorEnvironmentBean().getCheckedActionFactory() .getCheckedAction(get_uid(), type()); _childThreads = null; _childActions = null; }
String mode = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperMode(); checkPeriod = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperTimeout(); TransactionReaper._theReaper._cancelWaitPeriod = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperCancelWaitPeriod(); TransactionReaper._theReaper._cancelFailWaitPeriod = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperCancelFailWaitPeriod(); TransactionReaper._theReaper._zombieMax = arjPropertyManager.getCoordinatorEnvironmentBean().getTxReaperZombieMax();