public String orb_id() { return iorTemplate.getObjectKeyTemplate().getORBId(); }
/** * @return the ORBVersion associated with the object key in the IOR. */ public ORBVersion getORBVersion() { return oktemp.getORBVersion(); }
public String server_id() { int val = iorTemplate.getObjectKeyTemplate().getServerId(); return Integer.toString(val); }
public synchronized boolean isLocal() { if (!checkedIsLocal) { checkedIsLocal = true; String host = proftemp.getPrimaryAddress().getHost(); cachedIsLocal = orb.isLocalHost(host) && orb.isLocalServerId(oktemp.getSubcontractId(), oktemp.getServerId()) && orb.getLegacyServerSocketManager().legacyIsLocalServerPort( proftemp.getPrimaryAddress().getPort()); } return cachedIsLocal; }
/** * Return the servant for this IOR, if it is local AND if the OA that implements this objref supports direct access * to servants outside of an invocation. XXX revisit: do we want this at all? If we do, it might move to the * ObjectKeyTemplate instead. */ public java.lang.Object getServant() { if (!isLocal()) return null; RequestDispatcherRegistry scr = orb.getRequestDispatcherRegistry(); ObjectAdapterFactory oaf = scr.getObjectAdapterFactory(oktemp.getSubcontractId()); ObjectAdapterId oaid = oktemp.getObjectAdapterId(); ObjectAdapter oa = null; try { oa = oaf.find(oaid); } catch (SystemException exc) { // Could not find the OA, so just return null. This usually happens when POAs are being deleted, and the POA // always return null for getLocalServant anyway. wrapper.getLocalServantFailure(exc, oaid.toString()); return null; } byte[] boid = oid.getId(); java.lang.Object servant = oa.getLocalServant(boid); return servant; }
public void write(OutputStream os) { oktemp.write(id, os); }
public String[] adapter_name() { ObjectAdapterId poaid = iorTemplate.getObjectKeyTemplate().getObjectAdapterId(); return poaid.getAdapterName(); }
public CorbaServerRequestDispatcher getServerRequestDispatcher(ORB orb) { return oktemp.getServerRequestDispatcher(orb, id); } }
final public void initializeTemplate(ObjectKeyTemplate oktemp, boolean notifyORB, Policies policies, String codebase, String objectAdapterManagerId, ObjectAdapterId objectAdapterId) { adapterId = oktemp.getAdapterId(); iortemp = IORFactories.makeIORTemplate(oktemp); // This calls acceptors which create profiles and may // add tagged components to those profiles. orb.getCorbaTransportManager().addToIORTemplate(iortemp, policies, codebase, objectAdapterManagerId, objectAdapterId); adapterTemplate = IORFactories.makeObjectReferenceTemplate(orb, iortemp); currentFactory = adapterTemplate; if (notifyORB) { PIHandler pih = orb.getPIHandler(); if (pih != null) // This runs the IORInterceptors. pih.objectAdapterCreated(this); } iortemp.makeImmutable(); }
public synchronized boolean isLocal() { if (!checkedIsLocal) { checkedIsLocal = true; String host = proftemp.getPrimaryAddress().getHost(); cachedIsLocal = orb.isLocalHost(host) && orb.isLocalServerId(oktemp.getSubcontractId(), oktemp.getServerId()) && orb.getLegacyServerSocketManager().legacyIsLocalServerPort( proftemp.getPrimaryAddress().getPort()); } return cachedIsLocal; }
/** * Return the servant for this IOR, if it is local AND if the OA that implements this objref supports direct access * to servants outside of an invocation. XXX revisit: do we want this at all? If we do, it might move to the * ObjectKeyTemplate instead. */ public java.lang.Object getServant() { if (!isLocal()) return null; RequestDispatcherRegistry scr = orb.getRequestDispatcherRegistry(); ObjectAdapterFactory oaf = scr.getObjectAdapterFactory(oktemp.getSubcontractId()); ObjectAdapterId oaid = oktemp.getObjectAdapterId(); ObjectAdapter oa = null; try { oa = oaf.find(oaid); } catch (SystemException exc) { // Could not find the OA, so just return null. This usually happens when POAs are being deleted, and the POA // always return null for getLocalServant anyway. wrapper.getLocalServantFailure(exc, oaid.toString()); return null; } byte[] boid = oid.getId(); java.lang.Object servant = oa.getLocalServant(boid); return servant; }
public void write(OutputStream os) { oktemp.write(id, os); }
public String[] adapter_name() { ObjectAdapterId poaid = iorTemplate.getObjectKeyTemplate().getObjectAdapterId(); return poaid.getAdapterName(); }
public CorbaServerRequestDispatcher getServerRequestDispatcher(ORB orb) { return oktemp.getServerRequestDispatcher(orb, id); } }
final public void initializeTemplate(ObjectKeyTemplate oktemp, boolean notifyORB, Policies policies, String codebase, String objectAdapterManagerId, ObjectAdapterId objectAdapterId) { adapterId = oktemp.getAdapterId(); iortemp = IORFactories.makeIORTemplate(oktemp); // This calls acceptors which create profiles and may // add tagged components to those profiles. orb.getCorbaTransportManager().addToIORTemplate(iortemp, policies, codebase, objectAdapterManagerId, objectAdapterId); adapterTemplate = IORFactories.makeObjectReferenceTemplate(orb, iortemp); currentFactory = adapterTemplate; if (notifyORB) { PIHandler pih = orb.getPIHandler(); if (pih != null) // This runs the IORInterceptors. pih.objectAdapterCreated(this); } iortemp.makeImmutable(); }
public void write(OutputStream os) { oktemp.write(os); EncapsulationUtility.writeIdentifiableSequence(this, os); }
/** * @return the ORBVersion associated with the object key in the IOR. */ public ORBVersion getORBVersion() { return oktemp.getORBVersion(); }
public String server_id() { int val = iorTemplate.getObjectKeyTemplate().getServerId(); return Integer.toString(val); }
public String orb_id() { return iorTemplate.getObjectKeyTemplate().getORBId(); }