@Override public synchronized void stop(final StopContext context) { value.stop(); value.destroy(); objStoreBrowser.stop(); value = null; }
objStoreBrowser = new ObjStoreBrowser(); objStoreBrowserTypes.put("StateManager/BasicAction/TwoPhaseCoordinator/AtomicAction", "com.arjuna.ats.internal.jta.tools.osb.mbean.jta.JTAActionBean"); objStoreBrowser.start(); } catch (Exception e) { throw TransactionLogger.ROOT_LOGGER.objectStoreStartFailure(e);
public String setStatus(ParticipantStatus newState) { if (getListType().equals(newState)) return "participant is prepared for recovery"; if (parent != null && parent.setStatus(this, newState)) { listType = newState; if (newState == ParticipantStatus.PREPARED ) return "participant recovery will be attempted during the next recovery pass"; return "participant status change was successful"; } else { return "participant status change failed"; } }
protected ActionBeanWrapperInterface createWrapper(UidWrapper w, boolean activate) { GenericAtomicActionWrapper action = new GenericAtomicActionWrapper(w.getClassName(), w); if (activate) action.activate(); return action; }
public String remove(boolean reprobe) { if (parent != null) { parent.remove(this); _uidWrapper.unregister(); if (reprobe) _uidWrapper.probe(); } return "Record successfully removed"; }
@Override public void remove(LogRecordWrapper logRecordWrapper) { if (logRecordWrapper.removeFromList(getRecords(logRecordWrapper.getListType()))) { doUpdateState(); // rewrite the list } }
public OSBTypeHandler(boolean enabled, boolean allowRegistration, String recordClass, String beanClass, String typeName, String headerStateReaderClassName) { this.enabled = enabled; this.allowRegistration = allowRegistration; this.recordClass = recordClass; this.beanClass = beanClass; this.typeName = typeName; this.headerStateReader = headerStateReaderClassName == null ? new HeaderStateReader() : createHeader(headerStateReaderClassName); }
protected ActionBeanWrapperInterface createWrapper(UidWrapper w, boolean activate) { GenericAtomicActionWrapper action = new GenericAtomicActionWrapper(w.getClassName(), w); if (activate) action.activate(); return action; }
public String remove(boolean reprobe) throws MBeanException { if (parent != null) { parent.remove(this); _uidWrapper.unregister(); if (reprobe) _uidWrapper.probe(); } return "Record successfully removed"; }
public OSBTypeHandler(boolean enabled, boolean allowRegistration, String recordClass, String beanClass, String typeName, String headerStateReaderClassName) { this.enabled = enabled; this.allowRegistration = allowRegistration; this.recordClass = recordClass; this.beanClass = beanClass; this.typeName = typeName; this.headerStateReader = headerStateReaderClassName == null ? new HeaderStateReader() : createHeader(headerStateReaderClassName); }
protected ActionBeanWrapperInterface createWrapper(UidWrapper w, boolean activate) { GenericAtomicActionWrapper action = new GenericAtomicActionWrapper(w.getClassName(), w); if (activate) action.activate(); return action; }
public String remove(boolean reprobe) throws MBeanException { if (parent != null) { parent.remove(this); _uidWrapper.unregister(); if (reprobe) _uidWrapper.probe(); } return "Record successfully removed"; }
protected ActionBeanWrapperInterface createWrapper(UidWrapper w, boolean activate) { GenericAtomicActionWrapper action = new GenericAtomicActionWrapper(w.getClassName(), w); if (activate) action.activate(); return action; }
public String remove(boolean reprobe) throws MBeanException { if (parent != null) { parent.remove(this); _uidWrapper.unregister(); if (reprobe) _uidWrapper.probe(); } return "Record successfully removed"; }
protected ActionBeanWrapperInterface createWrapper(UidWrapper w, boolean activate) { GenericAtomicActionWrapper action = new GenericAtomicActionWrapper(w.getClassName(), w); if (activate) action.activate(); return action; }
public String remove(boolean reprobe) throws MBeanException { if (parent != null) { parent.remove(this); _uidWrapper.unregister(); if (reprobe) _uidWrapper.probe(); } return "Record successfully removed"; }