@Override protected boolean applyUpdateToRuntime(final OperationContext context, final ModelNode operation, final String attributeName, final ModelNode resolvedValue, final ModelNode currentValue, final HandbackHolder<Void> handbackHolder) throws OperationFailedException { if (this.coordinatorEnvironmentBean == null) { this.coordinatorEnvironmentBean = arjPropertyManager.getCoordinatorEnvironmentBean(); } coordinatorEnvironmentBean.setEnableStatistics(resolvedValue.asBoolean()); return false; }
@Override protected void revertUpdateToRuntime(final OperationContext context, final ModelNode operation, final String attributeName, final ModelNode valueToRestore, final ModelNode valueToRevert, final Void handback) throws OperationFailedException { if (this.coordinatorEnvironmentBean == null) { this.coordinatorEnvironmentBean = arjPropertyManager.getCoordinatorEnvironmentBean(); } coordinatorEnvironmentBean.setEnableStatistics(valueToRestore.asBoolean()); } }
@Override public synchronized void start(final StartContext context) throws StartException { final CoordinatorEnvironmentBean coordinatorEnvironmentBean = arjPropertyManager.getCoordinatorEnvironmentBean(); coordinatorEnvironmentBean.setEnableStatistics(coordinatorEnableStatistics); coordinatorEnvironmentBean.setDefaultTimeout(coordinatorDefaultTimeout);
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
public static boolean enabled() { return arjPropertyManager.getCoordinatorEnvironmentBean().isEnableStatistics(); }
@Override protected void revertUpdateToRuntime(final OperationContext context, final ModelNode operation, final String attributeName, final ModelNode valueToRestore, final ModelNode valueToRevert, final Void handback) throws OperationFailedException { if (this.coordinatorEnvironmentBean == null) { this.coordinatorEnvironmentBean = arjPropertyManager.getCoordinatorEnvironmentBean(); } coordinatorEnvironmentBean.setEnableStatistics(valueToRestore.asBoolean()); } }
@Override protected boolean applyUpdateToRuntime(final OperationContext context, final ModelNode operation, final String attributeName, final ModelNode resolvedValue, final ModelNode currentValue, final HandbackHolder<Void> handbackHolder) throws OperationFailedException { if (this.coordinatorEnvironmentBean == null) { this.coordinatorEnvironmentBean = arjPropertyManager.getCoordinatorEnvironmentBean(); } coordinatorEnvironmentBean.setEnableStatistics(resolvedValue.asBoolean()); return false; }
@Override protected boolean applyUpdateToRuntime(final OperationContext context, final ModelNode operation, final String attributeName, final ModelNode resolvedValue, final ModelNode currentValue, final HandbackHolder<Void> handbackHolder) throws OperationFailedException { if (this.coordinatorEnvironmentBean == null) { this.coordinatorEnvironmentBean = arjPropertyManager.getCoordinatorEnvironmentBean(); } coordinatorEnvironmentBean.setEnableStatistics(resolvedValue.asBoolean()); return false; }
@Override protected void revertUpdateToRuntime(final OperationContext context, final ModelNode operation, final String attributeName, final ModelNode valueToRestore, final ModelNode valueToRevert, final Void handback) throws OperationFailedException { if (this.coordinatorEnvironmentBean == null) { this.coordinatorEnvironmentBean = arjPropertyManager.getCoordinatorEnvironmentBean(); } coordinatorEnvironmentBean.setEnableStatistics(valueToRestore.asBoolean()); } }
@Override public void init() { arjPropertyManager.getCoordinatorEnvironmentBean().setCommitOnePhase(false); tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); }
@BeforeClass public static void setup() throws SystemException { arjPropertyManager.getCoordinatorEnvironmentBean().setTxReaperTimeout(reaperCheckPeriod); arjPropertyManager.getCoordinatorEnvironmentBean().setEnableStatistics(true); tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); tm.setTransactionTimeout(1); }
@Override public void init() { arjPropertyManager.getCoordinatorEnvironmentBean().setCommitOnePhase(false); arjPropertyManager.getObjectStoreEnvironmentBean().setObjectStoreType(TwoPhaseVolatileStore.class.getName()); tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); }