public static String newObjectKey (String ior, String Key) { RecoverableParsedIOR pior = new RecoverableParsedIOR(ior); IOR new_ior = pior.newObjectKey(Key); //IOR new_ior = pior.newIOR(Key); return iorToString(new_ior); }
public static void printIORinfo(String ior) { RecoverableParsedIOR pior = new RecoverableParsedIOR(ior); pior.printInfo(); }
public void printInfo () { IIOPProfile profile = (IIOPProfile) getEffectiveProfile(); System.out.println("\n Print some Information -------------"); System.out.println("Object ID "+ getIDString()); System.out.println("Type Name "+ getTypeId()); System.out.println("Host Address "+ profile.getAddress()); System.out.println("Object Key "+ new String(get_object_key())); System.out.println("\n\n"); }
public IOR newIOR(String objectId) { String the_object_key = new String(get_object_key()); int position = the_object_key.indexOf("RecoveryManager"); String new_object_key = the_object_key.substring(0, position).concat(objectId); IOR new_ior = ParsedIOR.createObjectIOR(getEffectiveProfile()); return new_ior; }
public void work () { JacOrbRCServiceInit.shutdownRCService(); }
public JacOrbRecoveryInit () { // make a orbix-style manager for the RC IOR creation RcvCoManager theManager = new JacOrbRCManager(); // and register it (which will cause creation of a GenericRecoveryCreator // and it's registration with CosTransactions) GenericRecoveryCreator.register(theManager); if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug("JacOrb RecoveryCoordinator creator setup"); } }
/** * This method resolves the NameService and registers the * interceptor. */ public void post_init(ORBInitInfo info) { try { org.omg.CORBA.ORB theORB = ((org.jacorb.orb.portableInterceptor.ORBInitInfoImpl)info).getORB(); info.add_server_request_interceptor (new ServerRecoveryInterceptor(theORB)); } catch (Exception e) { jtsLogger.loggerI18N.warn("com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.ServerInitializer_1", e); } }
/** * This method resolves the NameService and registers the * interceptor. */ public void post_init(ORBInitInfo info) { try { // Obtain the Orb reference having requested this initilization org.omg.CORBA.ORB theORB = ((org.jacorb.orb.portableInterceptor.ORBInitInfoImpl)info).getORB(); /* NamingContextExt nc = NamingContextExtHelper.narrow (info.resolve_initial_references("NameService")); */ org.omg.PortableInterceptor.Current piCurrent = org.omg.PortableInterceptor.CurrentHelper.narrow (info.resolve_initial_references("PICurrent")); int outSlotId = info.allocate_slot_id(); info.add_client_request_interceptor (new ClientForwardInterceptor(theORB, piCurrent, outSlotId)); } catch (Exception e) { jtsLogger.loggerI18N.warn("com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.ClientInitialize_1", e); } }
private final synchronized void initialise () { if (!_initialised) { _initialised = true; if (!_runWithoutDaemon) { try { ParticipantStore participantStore = StoreManager.getCommunicationStore(); InputObjectState iState = participantStore.read_committed(new Uid( JacOrbRCServiceInit.uid4Recovery), JacOrbRCServiceInit.type()); if (iState != null) ref_ReCoo = iState.unpackString(); else jtsLogger.i18NLogger.warn_orbspecific_jacorb_recoverycoordinators_JacOrbRCManager_4(); } catch (java.io.FileNotFoundException ex) { jtsLogger.i18NLogger.warn_orbspecific_jacorb_recoverycoordinators_JacOrbRCManager_4(); } catch (Exception ex) { jtsLogger.i18NLogger.warn_orbspecific_jacorb_recoverycoordinators_JacOrbRCManager_5(ex); } } } }
public void run() { try { JacOrbRCServiceInit._orb.orb().run(); } catch (Throwable e) { e.printStackTrace(); } JacOrbRCServiceInit.orbRunnerCompleted(); } }
public void printInfo () { IIOPProfile profile = (IIOPProfile) getEffectiveProfile(); System.out.println("\n Print some Information -------------"); System.out.println("Object ID "+ getIDString()); System.out.println("Type Name "+ getTypeId()); System.out.println("Host Address "+ profile.getAddress()); System.out.println("Object Key "+ new String(get_object_key())); System.out.println("\n\n"); }
public static String newObjectKey (String ior, String Key) { RecoverableParsedIOR pior = new RecoverableParsedIOR(ior); IOR new_ior = pior.newObjectKey(Key); //IOR new_ior = pior.newIOR(Key); return iorToString(new_ior); }
public static void printIORinfo(String ior) { RecoverableParsedIOR pior = new RecoverableParsedIOR(ior); pior.printInfo(); }
public IOR newIOR(String objectId) { String the_object_key = new String(get_object_key(), StandardCharsets.UTF_8); int position = the_object_key.indexOf("RecoveryManager"); String new_object_key = the_object_key.substring(0, position).concat(objectId); IOR new_ior = ParsedIOR.createObjectIOR(getEffectiveProfile()); return new_ior; }
public void work () { JacOrbRCServiceInit.shutdownRCService(); }
public JacOrbRecoveryInit () { // make a orbix-style manager for the RC IOR creation RcvCoManager theManager = new JacOrbRCManager(); // and register it (which will cause creation of a GenericRecoveryCreator // and it's registration with CosTransactions) GenericRecoveryCreator.register(theManager); if (jtsLogger.loggerI18N.isDebugEnabled()) { jtsLogger.loggerI18N.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_CRASH_RECOVERY, "com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.JacOrbRecoveryInit_1"); } }
/** * This method resolves the NameService and registers the * interceptor. */ public void post_init(ORBInitInfo info) { try { org.omg.CORBA.ORB theORB = ((org.jacorb.orb.portableInterceptor.ORBInitInfoImpl)info).getORB(); info.add_server_request_interceptor (new ServerRecoveryInterceptor(theORB)); } catch (Exception e) { jtsLogger.i18NLogger.warn_orbspecific_jacorb_recoverycoordinators_ServerInitializer_1(e); } }
/** * This method resolves the NameService and registers the * interceptor. */ public void post_init(ORBInitInfo info) { try { // Obtain the Orb reference having requested this initilization org.omg.CORBA.ORB theORB = ((org.jacorb.orb.portableInterceptor.ORBInitInfoImpl)info).getORB(); /* NamingContextExt nc = NamingContextExtHelper.narrow (info.resolve_initial_references("NameService")); */ org.omg.PortableInterceptor.Current piCurrent = org.omg.PortableInterceptor.CurrentHelper.narrow (info.resolve_initial_references("PICurrent")); int outSlotId = info.allocate_slot_id(); info.add_client_request_interceptor (new ClientForwardInterceptor(theORB, piCurrent, outSlotId)); } catch (Exception e) { jtsLogger.i18NLogger.warn_orbspecific_jacorb_recoverycoordinators_ClientInitializer_1(e); } }