/** * Now methods to return the identities of the currently running * transactions, and those which have terminated but left entries in the * object store. * * WARNING: these methods should be used sparingly since they *must* lock * the transaction database while examining it, and this will prevent any * new transactions from being created/started. * * @param the * type of transaction (active, unresolved) to get data on. * @since JTS 2.1. */ public org.omg.CosTransactions.otid_t[] numberOfTransactions (com.arjuna.ArjunaOTS.TransactionType t) throws Inactive, NoTransaction, SystemException { switch (t.value()) { case com.arjuna.ArjunaOTS.TransactionType._TransactionTypeActive: return activeTransactions(); case com.arjuna.ArjunaOTS.TransactionType._TransactionTypeUnresolved: return unresolvedTransactions(); default: throw new BAD_OPERATION(); } }
/** * Assume that a value of 0 at the client means the same at the server! */ public Control create (int time_out) throws SystemException { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("TransactionFactoryImple::create ( " + time_out + " )"); } ControlImple tranControl = createLocal(time_out); return tranControl.getControl(); }
public static Control createProxy (Coordinator coordinator, Terminator terminator) { return TransactionFactoryImple.createProxy(coordinator, terminator, null); }
s = getCurrentStatus(u); || (s == org.omg.CosTransactions.Status.StatusNoTransaction)) return getOSStatus(u);
theOTS = new com.arjuna.ats.internal.jts.orbspecific.TransactionFactoryImple(objectName); registerTransactionManager(resolver, myORB, theOTS.getReference());
public TransactionFactoryImple () { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("TransactionFactoryImple::TransactionFactoryImple ()"); } _factoryRef = getReference(); }
/** * @return the status of a transaction when all we have is its unique name. * If the transaction is not in the local list then we look in the * ObjectStore. * @since JTS 2.1.2. */ public org.omg.CosTransactions.Status getStatus (otid_t txid) throws NoTransaction, SystemException { Uid u = Utility.otidToUid(txid); if (u == null) throw new BAD_PARAM( "otid_t " + jtsLogger.logMesg.getString("com.arjuna.ats.internal.jts.orbspecific.otiderror")); else return getStatus(u); }
/** * @return the transaction Control. * @since JTS 2.1.2. */ public org.omg.CosTransactions.Control getTransaction (otid_t txid) throws org.omg.CosTransactions.NoTransaction, SystemException { Uid u = Utility.otidToUid(txid); if (u == null) throw new BAD_PARAM( "otid_t " + jtsLogger.logMesg.getString("com.arjuna.ats.internal.jts.orbspecific.otiderror")); else return getTransaction(u); }
/** * @return the status of a transaction when all we have is its unique name. * The transaction must be in the local list. * @since JTS 2.1.2. */ public org.omg.CosTransactions.Status getCurrentStatus (otid_t txid) throws SystemException { Uid u = Utility.otidToUid(txid); if (u == null) throw new BAD_PARAM( "otid_t " + jtsLogger.logMesg.getString("com.arjuna.ats.internal.jts.orbspecific.otiderror")); else return getCurrentStatus(u); }
public Control create_subtransaction () throws SystemException, SubtransactionsUnavailable, Inactive { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ArjunaTransactionImple::create_subtransaction - called for " + get_uid()); } if (determineStatus(this) != Status.StatusActive) throw new Inactive(); else { if (!_subtran) throw new SubtransactionsUnavailable(); else { if (controlHandle == null) throw new Inactive(); else return TransactionFactoryImple.create_subtransaction(controlHandle.getControl(), this); } } }
org.omg.CosTransactions.Status s = getOSStatus(u);
OTSImpleManager._theFactory = new TransactionFactoryImple();
s = getCurrentStatus(u); || (s == org.omg.CosTransactions.Status.StatusNoTransaction)) return getOSStatus(u);
theOTS = new com.arjuna.ats.internal.jts.orbspecific.TransactionFactoryImple(objectName); registerTransactionManager(resolver, myORB, theOTS.getReference());
public TransactionFactoryImple (String name) { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("TransactionFactoryImple::TransactionFactoryImple ( " + name + " )"); } _factoryRef = getReference(); }
/** * @return the status of a transaction when all we have is its unique name. * If the transaction is not in the local list then we look in the * ObjectStore. * @since JTS 2.1.2. */ public org.omg.CosTransactions.Status getStatus (otid_t txid) throws NoTransaction, SystemException { Uid u = Utility.otidToUid(txid); if (u == null) throw new BAD_PARAM( "otid_t " + jtsLogger.i18NLogger.get_orbspecific_otiderror()); else return getStatus(u); }
/** * @return the transaction Control. * @since JTS 2.1.2. */ public org.omg.CosTransactions.Control getTransaction (otid_t txid) throws org.omg.CosTransactions.NoTransaction, SystemException { Uid u = Utility.otidToUid(txid); if (u == null) throw new BAD_PARAM( "otid_t " + jtsLogger.i18NLogger.get_orbspecific_otiderror()); else return getTransaction(u); }
/** * @return the status of a transaction when all we have is its unique name. * The transaction must be in the local list. * @since JTS 2.1.2. */ public org.omg.CosTransactions.Status getCurrentStatus (otid_t txid) throws SystemException { Uid u = Utility.otidToUid(txid); if (u == null) throw new BAD_PARAM( "otid_t " + jtsLogger.i18NLogger.get_orbspecific_otiderror()); else return getCurrentStatus(u); }
public Control create_subtransaction () throws SystemException, SubtransactionsUnavailable, Inactive { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ArjunaTransactionImple::create_subtransaction - called for " + get_uid()); } if (determineStatus(this) != Status.StatusActive) throw new Inactive(); else { if (!_subtran) throw new SubtransactionsUnavailable(); else { if (controlHandle == null) throw new Inactive(); else return TransactionFactoryImple.create_subtransaction(controlHandle.getControl(), this); } } }
org.omg.CosTransactions.Status s = getOSStatus(u);