public java.util.Map<Uid, String> getSynchronizations() { if ( _controlImpl.getImplHandle() == null) return Collections.EMPTY_MAP; else return _controlImpl.getImplHandle().getSynchronizations(); }
public java.util.Map<Uid, String> getSynchronizations() { if ( _controlImpl.getImplHandle() == null) return Collections.EMPTY_MAP; else return _controlImpl.getImplHandle().getSynchronizations(); }
/** * In the case that the transaction is terminated by the reaper then it will * also be tidied up. This means that the internal handle to the real transaction * instance will be nulled out. In that case we cache the status just before removing * the handle and this method can be used to obtain it. * * @return the final termination status of the transaction. * @throws IllegalStateException thrown if the transaction is still available. */ public org.omg.CosTransactions.Status getFinalStatus () throws IllegalStateException { if (getImplHandle() != null) throw new IllegalStateException(); else return _finalStatus; }
/** * In the case that the transaction is terminated by the reaper then it will * also be tidied up. This means that the internal handle to the real transaction * instance will be nulled out. In that case we cache the status just before removing * the handle and this method can be used to obtain it. * * @return the final termination status of the transaction. * @throws IllegalStateException thrown if the transaction is still available. */ public org.omg.CosTransactions.Status getFinalStatus () throws IllegalStateException { if (getImplHandle() != null) throw new IllegalStateException(); else return _finalStatus; }
public final Xid getXid () { try { ServerTransaction tx = (ServerTransaction) super._theAction.getImple().getImplHandle(); return tx.getXid(); } catch (Exception ex) { ex.printStackTrace(); } return null; }
public final Xid getXid () { try { ServerTransaction tx = (ServerTransaction) super._theAction.getImple().getImplHandle(); // could be null if activation failed. if (tx != null) { return tx.getXid(); } else { return null; } } catch (Exception ex) { ex.printStackTrace(); } return null; }
/** * Determine whether or not we are a local control. Only do this once since * locality is not likely to change! */ public final void determineLocality () { if (!_checkedLocality) { _controlImpl = Helper.localControl(_control); /* * Could be a proxy for a remote control, in which case we say we * are remote. */ if ((_controlImpl != null) && (_controlImpl.getImplHandle() == null)) { _theUid = _controlImpl.get_uid(); _controlImpl = null; } _checkedLocality = true; } }
/** * Determine whether or not we are a local control. Only do this once since * locality is not likely to change! */ public final void determineLocality () { if (!_checkedLocality) { _controlImpl = Helper.localControl(_control); /* * Could be a proxy for a remote control, in which case we say we * are remote. */ if ((_controlImpl != null) && (_controlImpl.getImplHandle() == null)) { _theUid = _controlImpl.get_uid(); _controlImpl = null; } _checkedLocality = true; } }
public void recover() { ArjunaTransactionImple implHandle = getControlWrapper().getImple().getImplHandle(); if (implHandle != null) { implHandle.activate(); } }
public void recover() { getControlWrapper().getImple().getImplHandle().activate(); }
/** * compute the hashcode for the wrapped local or remote control using the same algorithm as ControlWrapper * @return the hashcode */ private int computeHashCode() { try { if (_local != null) { return _local.getImplHandle().hash_transaction(); } else if (_control != null) { Coordinator coord = _control.get_coordinator(); return coord.hash_transaction(); } } catch (Exception e) { } return -1; }
/** * compute the hashcode for the wrapped local or remote control using the same algorithm as ControlWrapper * @return the hashcode */ private int computeHashCode() { try { if (_local != null) { return _local.getImplHandle().hash_transaction(); } else if (_control != null) { Coordinator coord = _control.get_coordinator(); return coord.hash_transaction(); } } catch (Exception e) { } return -1; }
public final int hash_transaction () throws SystemException { try { if (_controlImpl != null) return _controlImpl.getImplHandle().hash_transaction(); else { try { Coordinator coord = _control.get_coordinator(); return coord.hash_transaction(); } catch (SystemException ex) { throw ex; } } } catch (Exception e) { return -1; } }
public final int hash_transaction () throws SystemException { try { if (_controlImpl != null) return _controlImpl.getImplHandle().hash_transaction(); else { try { Coordinator coord = _control.get_coordinator(); return coord.hash_transaction(); } catch (SystemException ex) { throw ex; } } } catch (Exception e) { return -1; } }
public void resumeWrapper (ControlWrapper which) throws InvalidControl, SystemException { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("CurrentImple::resumeWrapper ( " + which + " )"); } if (which != null) { /* * If this is a local transaction and we haven't zero-ed the transaction * reference then resume it. Otherwise go with the Control. */ ArjunaTransactionImple tx = ((which.getImple() == null) ? null : which.getImple().getImplHandle()); if (which.isLocal() && (tx != null)) resumeImple(which.getImple()); else resume(which.getControl()); } else { resumeImple(null); } }
return _controlImpl.getImplHandle().get_transaction_name(); else
public final void register_synchronization (Synchronization sync) throws Inactive, SynchronizationUnavailable, SystemException { try { if (_controlImpl != null) _controlImpl.getImplHandle().register_synchronization(sync); else { try { Coordinator coord = _control.get_coordinator(); coord.register_synchronization(sync); } catch (final Unavailable e2) { throw new Inactive(); } catch (final Exception e3) { throw new UNKNOWN(); } } } catch (final NullPointerException e1) { // not available throw new Inactive(); } }
public final void register_synchronization (Synchronization sync) throws Inactive, SynchronizationUnavailable, SystemException { try { if (_controlImpl != null) _controlImpl.getImplHandle().register_synchronization(sync); else { try { Coordinator coord = _control.get_coordinator(); coord.register_synchronization(sync); } catch (final Unavailable e2) { throw new Inactive(); } catch (final Exception e3) { throw new UNKNOWN(); } } } catch (final NullPointerException e1) { // not available throw new Inactive(); } }
_controlImpl.getImplHandle().rollback_only(); else
public void resumeWrapper (ControlWrapper which) throws InvalidControl, SystemException { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "CurrentImple::resumeWrapper ( " + which + " )"); } if (which != null) { /* * If this is a local transaction and we haven't zero-ed the transaction * reference then resume it. Otherwise go with the Control. */ ArjunaTransactionImple tx = ((which.getImple() == null) ? null : which.getImple().getImplHandle()); if (which.isLocal() && (tx != null)) resumeImple(which.getImple()); else resume(which.getControl()); } else { resumeImple(null); } }