public ParsedIOR getBaseIOR () { synchronized ( bind_sync ) { return (piorOriginal == null) ? getParsedIOR () : piorOriginal; } }
public Delegate(org.jacorb.orb.ORB orb, IOR ior, boolean parseIORLazy) { this(orb, parseIORLazy); this.ior = ior; if (parseIORLazy) { // postpone parsing of IOR. // see getParsedIOR } else { getParsedIOR(); } }
@Override public String get_codebase( org.omg.CORBA.Object self ) { return getParsedIOR().getCodebaseComponent(); }
/** * <code>repository_id</code> returns a repository ID. * * @return a <code>String</code> value */ @Override public String repository_id (org.omg.CORBA.Object self) { return getParsedIOR().getTypeId(); }
public String getIDString() { return getParsedIOR().getIDString(); }
public boolean is_nil() { ParsedIOR pior = getParsedIOR(); return ( pior.getIOR().type_id.equals( "" ) && pior.getIOR().profiles.length == 0 ); }
@Override public void run() { try { connectionToUse.sendRequest (ros, false); getParsedIOR ().markLastUsedProfile (); } catch (Throwable e) { if (logger.isWarnEnabled()) { logger.warn ("Caught CORBA SystemException ", e); } } } },
public byte[] getObjectKey() { synchronized ( bind_sync ) { bind(); return getParsedIOR().get_object_key(); } }
/** * Try to get the MIOP profile of an object reference. * * @param ref the group ref * @return the MIOP profile of the ref * * @throws NotAGroupObject if the ref doesn't have a MIOP profile */ private MIOPProfile getMIOPProfile (org.omg.CORBA.Object ref) throws NotAGroupObject { Delegate delegate = (Delegate)((ObjectImpl)ref)._get_delegate (); Profile profile = delegate.getParsedIOR ().getEffectiveProfile (); if (profile instanceof MIOPProfile) { return (MIOPProfile)profile; } else { throw new NotAGroupObject (ref.toString ()); } }
if (getParsedIOR().getProfiles().size() > 1) Profile curProfile = getParsedIOR().getNextEffectiveProfile(); if( logger.isDebugEnabled()) Profile lastProfile = getParsedIOR().getLastUsedProfile(); logger.debug("checkNextProfile: new = " + curProfile + " last = " + lastProfile); !curProfile.equals (getParsedIOR().getLastUsedProfile())) if (doCorbaName && getParsedIOR().useCorbaName()) getParsedIOR().reparseCorbaName();
/** * Called to indicate that this Delegate will no longer be used by * the client. The Delegate unregisters itself from the underlying * GIOPConnection. If there are no other Delegates using that * connection, it will be closed and disposed of altogether. */ @Override public void release( org.omg.CORBA.Object self ) { synchronized ( bind_sync ) { if (!bound) { return; } if ( connections[currentConnection.ordinal ()] != null ) { conn_mg.releaseConnection( connections[currentConnection.ordinal ()] ); connections[currentConnection.ordinal ()] = null; } bound = false; // Call using string rather than this to prevent data race // warning. orb._release( getParsedIOR().getIORString() ); if ( logger.isDebugEnabled() ) { logger.debug("Delegate released!"); } } }
ParsedIOR pior = getParsedIOR();
@Override public org.omg.CORBA.Request request( org.omg.CORBA.Object self, String operation ) { orb.perform_work(); synchronized ( bind_sync ) { bind(); return new org.jacorb.orb.dii.Request( self, orb, connections[currentConnection.ordinal ()], getParsedIOR().get_object_key(), operation ); } }
@Override public org.omg.CORBA.Request create_request( org.omg.CORBA.Object self, org.omg.CORBA.Context ctx, String operation, org.omg.CORBA.NVList args, org.omg.CORBA.NamedValue result ) { checkORB(); bind(); return new org.jacorb.orb.dii.Request( self, orb, connections[currentConnection.ordinal ()], getParsedIOR().get_object_key(), operation, args, ctx, result ); }
@Override public org.omg.CORBA.Request create_request( org.omg.CORBA.Object self, org.omg.CORBA.Context ctx, String operation, org.omg.CORBA.NVList args, org.omg.CORBA.NamedValue result, org.omg.CORBA.ExceptionList exceptions, org.omg.CORBA.ContextList contexts ) { checkORB(); bind(); return new org.jacorb.orb.dii.Request( self, orb, connections[currentConnection.ordinal ()], getParsedIOR().get_object_key(), operation, args, ctx, result, exceptions, contexts); }
ParsedIOR pior = getParsedIOR ();
POAUtil.extractOID( getParsedIOR().get_object_key() ); org.omg.PortableServer.ServantLocator sl = ( org.omg.PortableServer.ServantLocator ) poa.get_servant_manager();
getParsedIOR ().markLastUsedProfile (); try getParsedIOR ().markLastUsedProfile ();
final ParsedIOR ior = getParsedIOR(); ior.patchSSL (); lros.getRequestId(), true ); //response expected getParsedIOR ().markLastUsedProfile ();
ParsedIOR ior = getParsedIOR();