public void run() { Set<ObjectReferenceTemplate> destroyedPOATemplates = new HashSet<ObjectReferenceTemplate>(); performDestroy(thePoa, destroyedPOATemplates); Iterator<ObjectReferenceTemplate> iter = destroyedPOATemplates.iterator(); ObjectReferenceTemplate[] orts = new ObjectReferenceTemplate[destroyedPOATemplates.size()]; int index = 0; while (iter.hasNext()) orts[index++] = iter.next(); thePoa.getORB().getPIHandler().adapterStateChanged(orts, NON_EXISTENT.value); }
pihandler.adapterManagerStateChanged(myId, getORTState());
_orb.getPIHandler().initiateClientPIRequest(true); _orb.getPIHandler().setClientPIInfo(this);
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(); }
pihandler.adapterManagerStateChanged(myId, getORTState());
_orb.getPIHandler().initiateClientPIRequest(true); _orb.getPIHandler().setClientPIInfo(this);
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(); }
/** * <code>activate</code> <b>Spec: pages 3-14 thru 3-18</b> */ public synchronized void activate() throws org.omg.PortableServer.POAManagerPackage.AdapterInactive { explicitStateChange = true; if (debug) { ORBUtility.dprint(this, "Calling activate on POAManager " + this); } try { if (state.value() == State._INACTIVE) throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive(); // set the state to ACTIVE state = State.ACTIVE; pihandler.adapterManagerStateChanged(myId, getORTState()); // Notify any invocations that were waiting because the previous state was HOLDING, as well as notify any // threads that were waiting inside hold_requests() or discard_requests(). notifyWaiters(); } finally { if (debug) { ORBUtility.dprint(this, "Exiting activate on POAManager " + this); } } }
public void run() { Set<ObjectReferenceTemplate> destroyedPOATemplates = new HashSet<ObjectReferenceTemplate>(); performDestroy(thePoa, destroyedPOATemplates); Iterator<ObjectReferenceTemplate> iter = destroyedPOATemplates.iterator(); ObjectReferenceTemplate[] orts = new ObjectReferenceTemplate[destroyedPOATemplates.size()]; int index = 0; while (iter.hasNext()) orts[index++] = iter.next(); thePoa.getORB().getPIHandler().adapterStateChanged(orts, NON_EXISTENT.value); }
/** * <code>activate</code> <b>Spec: pages 3-14 thru 3-18</b> */ public synchronized void activate() throws org.omg.PortableServer.POAManagerPackage.AdapterInactive { explicitStateChange = true; if (debug) { ORBUtility.dprint(this, "Calling activate on POAManager " + this); } try { if (state.value() == State._INACTIVE) throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive(); // set the state to ACTIVE state = State.ACTIVE; pihandler.adapterManagerStateChanged(myId, getORTState()); // Notify any invocations that were waiting because the previous state was HOLDING, as well as notify any // threads that were waiting inside hold_requests() or discard_requests(). notifyWaiters(); } finally { if (debug) { ORBUtility.dprint(this, "Exiting activate on POAManager " + this); } } }
pihandler.adapterManagerStateChanged(myId, getORTState());
pihandler.adapterManagerStateChanged(myId, getORTState());
pihandler.adapterManagerStateChanged(myId, getORTState());
pihandler.adapterManagerStateChanged(myId, getORTState());