public static final void setCreator (RecoveryCreator c) { if (c == null) { jtsLogger.i18NLogger.warn_recovery_rcnull("RecoveryCreator.setCreator"); } else _theCreator = c; }
public void setValue (Object o) { jtsLogger.i18NLogger.warn_resources_rrillegalvalue("ResourceRecord.set_value"); }
public void setValue (Object o) { jtsLogger.i18NLogger.warn_resources_errsetvalue("ExtendedResourceRecord.set_value"); }
private boolean restoreMe() { try { InputObjectState objstate = getStore().read_committed(_uid, _pseudoTypeName); if (objstate == null) // not in object store any more return false; if (restore_state(objstate)) { return true; } jtsLogger.i18NLogger.warn_recovery_contact_FactoryContactItem_5(); } catch (ObjectStoreException exo) { // this shouldn't happen, because we shouldn't be looking for a factory // that was never recorded jtsLogger.i18NLogger.warn_recovery_contact_FactoryContactItem_6(); } return false; }
public void receive_request_service_contexts (ServerRequestInfo ri) throws ForwardRequest { ServiceContext context; try { context = ri.get_request_service_context (RecoveryContextId); JavaIdlRCDefaultServant.RCObjectId = context.context_data; } catch (Exception ex) { jtsLogger.i18NLogger.warn_orbspecific_jacorb_recoverycoordinators_ServerInitializer_1(ex); } }
public static final com.arjuna.orbportability.ORB getORB () { if (isInitialised()) { return getTheORB(); } else { jtsLogger.i18NLogger.fatal_ORBManager(); throw new com.arjuna.ats.arjuna.exceptions.FatalError(); } }
public void removeOldStoreEntry () { try { getStore().remove_committed(getSavingUid(), super.type()); } catch (ObjectStoreException ex) { jtsLogger.i18NLogger.warn_recoveredServerTransaction_removeOldStoreEntry(ex); } }
private FactoryContactItem getKnownItem(Uid uid) { FactoryContactItem theItem = null; try { theItem = (FactoryContactItem) _itemFromUid.get(uid); return theItem; } catch (ClassCastException ex) { jtsLogger.i18NLogger.warn_recovery_contact_StatusChecker_15(uid, ex); return null; } }
public void periodicWorkSecondPass () { jtsLogger.i18NLogger.info_recovery_transactions_TopLevelTransactionRecoveryModule_4(); super.periodicWorkSecondPass(); }
public boolean preventCommit () { try { rollback_only(); return true; } catch (Exception ex) { jtsLogger.i18NLogger.warn_cwcommit(ex); return false; } }
/** * This is called periodically by the RecoveryManager */ public void periodicWorkFirstPass () { jtsLogger.i18NLogger.info_recovery_transactions_ServerTransactionRecoveryModule_3(); super.periodicWorkFirstPass(); }
/** * This is called periodically by the RecoveryManager */ public void periodicWorkFirstPass () { jtsLogger.i18NLogger.info_recovery_transactions_TopLevelTransactionRecoveryModule_3(); super.periodicWorkFirstPass(); }
public int cancel () { try { rollback(); return ActionStatus.ABORTED; } catch (Unavailable ex) { return ActionStatus.INVALID; } catch (NoTransaction ex) { return ActionStatus.NO_ACTION; } catch (Exception ex) { jtsLogger.i18NLogger.warn_cwabort(ex); return ActionStatus.INVALID; } }
private static boolean removeMe(Uid uid) { try { return getStore().remove_committed(uid, _pseudoTypeName); } catch (ObjectStoreException exo) { // this shouldn't happen, because we shouldn't be looking for a factory // that was never recorded jtsLogger.i18NLogger.warn_recovery_contact_FactoryContactItem_7(exo); } return false; } }
public void destroy() { try { ORBManager.getPOA().shutdownObject(this); } catch (Exception e) { jtsLogger.i18NLogger.warn_orbspecific_interposition_resources_destroyfailed(); } }
/** * find the IOR for the ArjunaFactory whose FactoryContactItem was saved with * this uid. It is possible this Uid was created after the last scan, so if * it isn't in the hashtable, look for real directly. */ private FactoryContactItem getItem (Uid uid) { FactoryContactItem theItem = null; theItem = getKnownItem(uid); if (theItem == null) { // not previously known - see if it exists now theItem = getNewItem(uid); if (theItem == null) { // if it's still null, either something has gone wrong // - how did it get in the recoverycoordkey when the // factory was unknown // or it's very old and been fully deleted jtsLogger.i18NLogger.warn_recovery_contact_StatusChecker_14(uid); // treat as long-dead process - return null } } return theItem; }
public static org.omg.CosTransactions.Status getStatus (Uid u) throws NoTransaction, SystemException { org.omg.CosTransactions.Status s = org.omg.CosTransactions.Status.StatusUnknown; try { s = getCurrentStatus(u); } catch (SystemException e2) { throw e2; } catch (Exception e3) { jtsLogger.i18NLogger.warn_interposition_sfcaught("ServerFactory.getStatus", u, e3); return Status.StatusUnknown; } if ((s == org.omg.CosTransactions.Status.StatusUnknown) || (s == org.omg.CosTransactions.Status.StatusNoTransaction)) { return getOSStatus(u); } else return s; }
public void receive_request_service_contexts (ServerRequestInfo ri) throws ForwardRequest { ServiceContext context; org.omg.CORBA.Any any; try { context = ri.get_request_service_context (RecoveryContextId); String objectIdString = new String(context.context_data, StandardCharsets.UTF_8); JacOrbRCDefaultServant.RCObjectId = context.context_data; } catch (Exception ex) { jtsLogger.i18NLogger.warn_orbspecific_jacorb_recoverycoordinators_ServerInitializer_1(ex); } }
public static final com.arjuna.orbportability.OA getPOA () { if (isInitialised()) { return getThePOA(); } else { jtsLogger.i18NLogger.fatal_ORBManager(); throw new com.arjuna.ats.arjuna.exceptions.FatalError(); } }
public void removeOldStoreEntry () { try { getStore().remove_committed(getSavingUid(), super.type()); } catch (ObjectStoreException ex) { jtsLogger.i18NLogger.warn_recoveredServerTransaction_removeOldStoreEntry(ex); } }