/** * Remove this AtomicAction from the ObjectStore * @return a textual indication of whether the remove operation succeeded * @throws MBeanException */ public String remove() throws MBeanException { // first unregister each participant of this action Iterator<LogRecordWrapper> i = participants.iterator(); int removeCount = 0; int participantCount = participants.size(); while (i.hasNext()) { LogRecordWrapper w = i.next(); w.remove(false); if (w.isRemoved()) removeCount += 1; i.remove(); } try { if (removeCount == participantCount) { if (!StoreManager.getRecoveryStore().remove_committed(getUid(), getType())) return "Attempt to remove transaction failed"; _uidWrapper.unregister(); } return "Transaction successfully removed"; } catch (ObjectStoreException e) { return "Unable to remove transaction: " + e.getMessage(); } finally { _uidWrapper.probe(); } }
/** * Remove this AtomicAction from the ObjectStore * @return a textual indication of whether the remove operation succeeded * @throws MBeanException */ public String remove() throws MBeanException { // first unregister each participant of this action Iterator<LogRecordWrapper> i = participants.iterator(); int removeCount = 0; int participantCount = participants.size(); while (i.hasNext()) { LogRecordWrapper w = i.next(); w.remove(false); if (w.isRemoved()) removeCount += 1; i.remove(); } try { if (removeCount == participantCount) { if (!StoreManager.getRecoveryStore().remove_committed(getUid(), getType())) return "Attempt to remove transaction failed"; _uidWrapper.unregister(); } return "Transaction successfully removed"; } catch (ObjectStoreException e) { return "Unable to remove transaction: " + e.getMessage(); } finally { _uidWrapper.probe(); } }
/** * Remove this AtomicAction from the ObjectStore * @return a textual indication of whether the remove operation succeeded * @throws MBeanException */ public String remove() throws MBeanException { // first unregister each participant of this action Iterator<LogRecordWrapper> i = participants.iterator(); int removeCount = 0; int participantCount = participants.size(); while (i.hasNext()) { LogRecordWrapper w = i.next(); w.remove(false); if (w.isRemoved()) removeCount += 1; i.remove(); } try { if (removeCount == participantCount) { if (!StoreManager.getRecoveryStore().remove_committed(getUid(), getType())) return "Attempt to remove transaction failed"; _uidWrapper.unregister(); } return "Transaction successfully removed"; } catch (ObjectStoreException e) { return "Unable to remove transaction: " + e.getMessage(); } finally { _uidWrapper.probe(); } }
/** * Remove this AtomicAction from the ObjectStore * @return a textual indication of whether the remove operation succeeded * @throws MBeanException */ public String remove() throws MBeanException { // first unregister each participant of this action Iterator<LogRecordWrapper> i = participants.iterator(); int removeCount = 0; int participantCount = participants.size(); while (i.hasNext()) { LogRecordWrapper w = i.next(); w.remove(false); if (w.isRemoved()) removeCount += 1; i.remove(); } try { if (removeCount == participantCount) { if (!StoreManager.getRecoveryStore().remove_committed(getUid(), getType())) return "Attempt to remove transaction failed"; _uidWrapper.unregister(); } return "Transaction successfully removed"; } catch (ObjectStoreException e) { return "Unable to remove transaction: " + e.getMessage(); } finally { _uidWrapper.probe(); } }
/** * Remove this AtomicAction from the ObjectStore * @return a textual indication of whether the remove operation succeeded * @throws MBeanException */ public String remove() throws MBeanException { // first unregister each participant of this action Iterator<LogRecordWrapper> i = participants.iterator(); int removeCount = 0; int participantCount = participants.size(); while (i.hasNext()) { LogRecordWrapper w = i.next(); w.remove(false); if (w.isRemoved()) removeCount += 1; i.remove(); } try { if (removeCount == participantCount) { if (!StoreManager.getRecoveryStore().remove_committed(getUid(), getType())) return "Attempt to remove transaction failed"; _uidWrapper.unregister(); } return "Transaction successfully removed"; } catch (ObjectStoreException e) { return "Unable to remove transaction: " + e.getMessage(); } finally { _uidWrapper.probe(); } }
/** * Remove this AtomicAction from the ObjectStore * @return a textual indication of whether the remove operation succeeded * @throws MBeanException */ public String remove() throws MBeanException { // first unregister each participant of this action Iterator<LogRecordWrapper> i = participants.iterator(); int removeCount = 0; int participantCount = participants.size(); while (i.hasNext()) { LogRecordWrapper w = i.next(); w.remove(false); if (w.isRemoved()) removeCount += 1; i.remove(); } try { if (removeCount == participantCount) { if (!StoreManager.getRecoveryStore().remove_committed(getUid(), getType())) return "Attempt to remove transaction failed"; _uidWrapper.unregister(); } return "Transaction successfully removed"; } catch (ObjectStoreException e) { return "Unable to remove transaction: " + e.getMessage(); } finally { _uidWrapper.probe(); } }