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); }
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); }
protected ObjectCopierFactory getObjectCopierFactory() { int copierId = mediator.getPolicies().getCopierId(); CopierManager cm = getORB().getCopierManager(); return cm.getObjectCopierFactory(copierId); }
protected ObjectCopierFactory getObjectCopierFactory() { int copierId = mediator.getPolicies().getCopierId(); CopierManager cm = getORB().getCopierManager(); return cm.getObjectCopierFactory(copierId); }
/** * <code>destroy</code> <b>Section 3.3.8.4</b> */ public void destroy(boolean etherealize, boolean wait_for_completion) { // This is to avoid deadlock if (wait_for_completion && getORB().isDuringDispatch()) { throw lifecycleWrapper().destroyDeadlock(); } DestroyThread destroyer = new DestroyThread(etherealize, debug); destroyer.doIt(this, wait_for_completion); }
/** * <code>destroy</code> <b>Section 3.3.8.4</b> */ public void destroy(boolean etherealize, boolean wait_for_completion) { // This is to avoid deadlock if (wait_for_completion && getORB().isDuringDispatch()) { throw lifecycleWrapper().destroyDeadlock(); } DestroyThread destroyer = new DestroyThread(etherealize, debug); destroyer.doIt(this, wait_for_completion); }
public void getInvocationServant(OAInvocationInfo info) { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling getInvocationServant on poa " + this); } java.lang.Object servant = null; try { servant = mediator.getInvocationServant(info.id(), info.getOperation()); } catch (ForwardRequest freq) { throw new ForwardException(getORB(), freq.forward_reference); } info.setServant(servant); } finally { if (debug) { ORBUtility.dprint(this, "Exiting getInvocationServant on poa " + this); } unlock(); } }
public void getInvocationServant(OAInvocationInfo info) { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling getInvocationServant on poa " + this); } java.lang.Object servant = null; try { servant = mediator.getInvocationServant(info.id(), info.getOperation()); } catch (ForwardRequest freq) { throw new ForwardException(getORB(), freq.forward_reference); } info.setServant(servant); } finally { if (debug) { ORBUtility.dprint(this, "Exiting getInvocationServant on poa " + this); } unlock(); } }
this.policies = policies; this.poa = poa; orb = poa.getORB();
found = new POAImpl(name, this, getORB(), STATE_INIT);
found = new POAImpl(name, this, getORB(), STATE_INIT);
this.policies = policies; this.poa = poa; orb = poa.getORB();