synchronized void exit() { try { if (debug) { ORBUtility.dprint(this, "Calling exit for POAManagerImpl " + this); } nInvocations--; if (nInvocations == 0) { // This notifies any threads that were in the wait_for_completion loop in hold/discard/deactivate(). notifyWaiters(); } } finally { if (debug) { ORBUtility.dprint(this, "Exiting exit for POAManagerImpl " + this); } } }
synchronized void exit() { try { if (debug) { ORBUtility.dprint(this, "Calling exit for POAManagerImpl " + this); } nInvocations--; if (nInvocations == 0) { // This notifies any threads that were in the wait_for_completion loop in hold/discard/deactivate(). notifyWaiters(); } } finally { if (debug) { ORBUtility.dprint(this, "Exiting exit for POAManagerImpl " + this); } } }
/** * <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); } } }
/** * <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); } } }