org.omg.PortableInterceptor.INACTIVE Java Examples
The following examples show how to use
org.omg.PortableInterceptor.INACTIVE.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: POAManagerImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public short getORTState() { switch (state.value()) { case State._HOLDING : return HOLDING.value ; case State._ACTIVE : return ACTIVE.value ; case State._INACTIVE : return INACTIVE.value ; case State._DISCARDING : return DISCARDING.value ; default : return NON_EXISTENT.value ; } }
Example #2
Source File: POAManagerImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public short getORTState() { switch (state.value()) { case State._HOLDING : return HOLDING.value ; case State._ACTIVE : return ACTIVE.value ; case State._INACTIVE : return INACTIVE.value ; case State._DISCARDING : return DISCARDING.value ; default : return NON_EXISTENT.value ; } }
Example #3
Source File: POAManagerImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public short getORTState() { switch (state.value()) { case State._HOLDING : return HOLDING.value ; case State._ACTIVE : return ACTIVE.value ; case State._INACTIVE : return INACTIVE.value ; case State._DISCARDING : return DISCARDING.value ; default : return NON_EXISTENT.value ; } }
Example #4
Source File: POAManagerImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public short getORTState() { switch (state.value()) { case State._HOLDING : return HOLDING.value ; case State._ACTIVE : return ACTIVE.value ; case State._INACTIVE : return INACTIVE.value ; case State._DISCARDING : return DISCARDING.value ; default : return NON_EXISTENT.value ; } }
Example #5
Source File: POAManagerImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
public short getORTState() { switch (state.value()) { case State._HOLDING : return HOLDING.value ; case State._ACTIVE : return ACTIVE.value ; case State._INACTIVE : return INACTIVE.value ; case State._DISCARDING : return DISCARDING.value ; default : return NON_EXISTENT.value ; } }
Example #6
Source File: POAManagerImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public short getORTState() { switch (state.value()) { case State._HOLDING : return HOLDING.value ; case State._ACTIVE : return ACTIVE.value ; case State._INACTIVE : return INACTIVE.value ; case State._DISCARDING : return DISCARDING.value ; default : return NON_EXISTENT.value ; } }
Example #7
Source File: POAManagerImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public short getORTState() { switch (state.value()) { case State._HOLDING : return HOLDING.value ; case State._ACTIVE : return ACTIVE.value ; case State._INACTIVE : return INACTIVE.value ; case State._DISCARDING : return DISCARDING.value ; default : return NON_EXISTENT.value ; } }
Example #8
Source File: POAManagerImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public short getORTState() { switch (state.value()) { case State._HOLDING : return HOLDING.value ; case State._ACTIVE : return ACTIVE.value ; case State._INACTIVE : return INACTIVE.value ; case State._DISCARDING : return DISCARDING.value ; default : return NON_EXISTENT.value ; } }
Example #9
Source File: POAManagerImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public short getORTState() { switch (state.value()) { case State._HOLDING : return HOLDING.value ; case State._ACTIVE : return ACTIVE.value ; case State._INACTIVE : return INACTIVE.value ; case State._DISCARDING : return DISCARDING.value ; default : return NON_EXISTENT.value ; } }
Example #10
Source File: POAManagerImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public short getORTState() { switch (state.value()) { case State._HOLDING : return HOLDING.value ; case State._ACTIVE : return ACTIVE.value ; case State._INACTIVE : return INACTIVE.value ; case State._DISCARDING : return DISCARDING.value ; default : return NON_EXISTENT.value ; } }
Example #11
Source File: POAManagerImpl.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** * <code>deactivate</code> * <b>Spec: pages 3-14 thru 3-18</b> * Note: INACTIVE is a permanent state. */ public void deactivate(boolean etherealize_objects, boolean wait_for_completion) throws org.omg.PortableServer.POAManagerPackage.AdapterInactive { explicitStateChange = true ; try { synchronized( this ) { if (debug) { ORBUtility.dprint( this, "Calling deactivate on POAManager " + this ) ; } if ( state.value() == State._INACTIVE ) throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive(); state = State.INACTIVE; pihandler.adapterManagerStateChanged( myId, getORTState() ) ; // Notify any invocations that were waiting because the previous // state was HOLDING. Those invocations will then be rejected with // an OBJ_ADAPTER exception. Also notify any threads that were waiting // inside hold_requests() or discard_requests(). notifyWaiters(); } POAManagerDeactivator deactivator = new POAManagerDeactivator( this, etherealize_objects, debug ) ; if (wait_for_completion) deactivator.run() ; else { Thread thr = new Thread(deactivator) ; thr.start() ; } } finally { synchronized(this) { if (debug) { ORBUtility.dprint( this, "Exiting deactivate on POAManager " + this ) ; } } } }
Example #12
Source File: POAManagerImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** * <code>deactivate</code> * <b>Spec: pages 3-14 thru 3-18</b> * Note: INACTIVE is a permanent state. */ public void deactivate(boolean etherealize_objects, boolean wait_for_completion) throws org.omg.PortableServer.POAManagerPackage.AdapterInactive { explicitStateChange = true ; try { synchronized( this ) { if (debug) { ORBUtility.dprint( this, "Calling deactivate on POAManager " + this ) ; } if ( state.value() == State._INACTIVE ) throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive(); state = State.INACTIVE; pihandler.adapterManagerStateChanged( myId, getORTState() ) ; // Notify any invocations that were waiting because the previous // state was HOLDING. Those invocations will then be rejected with // an OBJ_ADAPTER exception. Also notify any threads that were waiting // inside hold_requests() or discard_requests(). notifyWaiters(); } POAManagerDeactivator deactivator = new POAManagerDeactivator( this, etherealize_objects, debug ) ; if (wait_for_completion) deactivator.run() ; else { Thread thr = new Thread(deactivator) ; thr.start() ; } } finally { synchronized(this) { if (debug) { ORBUtility.dprint( this, "Exiting deactivate on POAManager " + this ) ; } } } }
Example #13
Source File: POAManagerImpl.java From hottub with GNU General Public License v2.0 | 4 votes |
/** * <code>deactivate</code> * <b>Spec: pages 3-14 thru 3-18</b> * Note: INACTIVE is a permanent state. */ public void deactivate(boolean etherealize_objects, boolean wait_for_completion) throws org.omg.PortableServer.POAManagerPackage.AdapterInactive { explicitStateChange = true ; try { synchronized( this ) { if (debug) { ORBUtility.dprint( this, "Calling deactivate on POAManager " + this ) ; } if ( state.value() == State._INACTIVE ) throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive(); state = State.INACTIVE; pihandler.adapterManagerStateChanged( myId, getORTState() ) ; // Notify any invocations that were waiting because the previous // state was HOLDING. Those invocations will then be rejected with // an OBJ_ADAPTER exception. Also notify any threads that were waiting // inside hold_requests() or discard_requests(). notifyWaiters(); } POAManagerDeactivator deactivator = new POAManagerDeactivator( this, etherealize_objects, debug ) ; if (wait_for_completion) deactivator.run() ; else { Thread thr = new Thread(deactivator) ; thr.start() ; } } finally { synchronized(this) { if (debug) { ORBUtility.dprint( this, "Exiting deactivate on POAManager " + this ) ; } } } }
Example #14
Source File: POAManagerImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** * <code>deactivate</code> * <b>Spec: pages 3-14 thru 3-18</b> * Note: INACTIVE is a permanent state. */ public void deactivate(boolean etherealize_objects, boolean wait_for_completion) throws org.omg.PortableServer.POAManagerPackage.AdapterInactive { explicitStateChange = true ; try { synchronized( this ) { if (debug) { ORBUtility.dprint( this, "Calling deactivate on POAManager " + this ) ; } if ( state.value() == State._INACTIVE ) throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive(); state = State.INACTIVE; pihandler.adapterManagerStateChanged( myId, getORTState() ) ; // Notify any invocations that were waiting because the previous // state was HOLDING. Those invocations will then be rejected with // an OBJ_ADAPTER exception. Also notify any threads that were waiting // inside hold_requests() or discard_requests(). notifyWaiters(); } POAManagerDeactivator deactivator = new POAManagerDeactivator( this, etherealize_objects, debug ) ; if (wait_for_completion) deactivator.run() ; else { Thread thr = new Thread(null, deactivator, "POA-Deactivator-Thread", 0, false) ; thr.start() ; } } finally { synchronized(this) { if (debug) { ORBUtility.dprint( this, "Exiting deactivate on POAManager " + this ) ; } } } }
Example #15
Source File: POAManagerImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
/** * <code>deactivate</code> * <b>Spec: pages 3-14 thru 3-18</b> * Note: INACTIVE is a permanent state. */ public void deactivate(boolean etherealize_objects, boolean wait_for_completion) throws org.omg.PortableServer.POAManagerPackage.AdapterInactive { explicitStateChange = true ; try { synchronized( this ) { if (debug) { ORBUtility.dprint( this, "Calling deactivate on POAManager " + this ) ; } if ( state.value() == State._INACTIVE ) throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive(); state = State.INACTIVE; pihandler.adapterManagerStateChanged( myId, getORTState() ) ; // Notify any invocations that were waiting because the previous // state was HOLDING. Those invocations will then be rejected with // an OBJ_ADAPTER exception. Also notify any threads that were waiting // inside hold_requests() or discard_requests(). notifyWaiters(); } POAManagerDeactivator deactivator = new POAManagerDeactivator( this, etherealize_objects, debug ) ; if (wait_for_completion) deactivator.run() ; else { Thread thr = new Thread(deactivator) ; thr.start() ; } } finally { synchronized(this) { if (debug) { ORBUtility.dprint( this, "Exiting deactivate on POAManager " + this ) ; } } } }
Example #16
Source File: POAManagerImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
/** * <code>deactivate</code> * <b>Spec: pages 3-14 thru 3-18</b> * Note: INACTIVE is a permanent state. */ public void deactivate(boolean etherealize_objects, boolean wait_for_completion) throws org.omg.PortableServer.POAManagerPackage.AdapterInactive { explicitStateChange = true ; try { synchronized( this ) { if (debug) { ORBUtility.dprint( this, "Calling deactivate on POAManager " + this ) ; } if ( state.value() == State._INACTIVE ) throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive(); state = State.INACTIVE; pihandler.adapterManagerStateChanged( myId, getORTState() ) ; // Notify any invocations that were waiting because the previous // state was HOLDING. Those invocations will then be rejected with // an OBJ_ADAPTER exception. Also notify any threads that were waiting // inside hold_requests() or discard_requests(). notifyWaiters(); } POAManagerDeactivator deactivator = new POAManagerDeactivator( this, etherealize_objects, debug ) ; if (wait_for_completion) deactivator.run() ; else { Thread thr = new Thread(deactivator) ; thr.start() ; } } finally { synchronized(this) { if (debug) { ORBUtility.dprint( this, "Exiting deactivate on POAManager " + this ) ; } } } }
Example #17
Source File: POAManagerImpl.java From JDKSourceCode1.8 with MIT License | 4 votes |
/** * <code>deactivate</code> * <b>Spec: pages 3-14 thru 3-18</b> * Note: INACTIVE is a permanent state. */ public void deactivate(boolean etherealize_objects, boolean wait_for_completion) throws org.omg.PortableServer.POAManagerPackage.AdapterInactive { explicitStateChange = true ; try { synchronized( this ) { if (debug) { ORBUtility.dprint( this, "Calling deactivate on POAManager " + this ) ; } if ( state.value() == State._INACTIVE ) throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive(); state = State.INACTIVE; pihandler.adapterManagerStateChanged( myId, getORTState() ) ; // Notify any invocations that were waiting because the previous // state was HOLDING. Those invocations will then be rejected with // an OBJ_ADAPTER exception. Also notify any threads that were waiting // inside hold_requests() or discard_requests(). notifyWaiters(); } POAManagerDeactivator deactivator = new POAManagerDeactivator( this, etherealize_objects, debug ) ; if (wait_for_completion) deactivator.run() ; else { Thread thr = new Thread(deactivator) ; thr.start() ; } } finally { synchronized(this) { if (debug) { ORBUtility.dprint( this, "Exiting deactivate on POAManager " + this ) ; } } } }
Example #18
Source File: POAManagerImpl.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
/** * <code>deactivate</code> * <b>Spec: pages 3-14 thru 3-18</b> * Note: INACTIVE is a permanent state. */ public void deactivate(boolean etherealize_objects, boolean wait_for_completion) throws org.omg.PortableServer.POAManagerPackage.AdapterInactive { explicitStateChange = true ; try { synchronized( this ) { if (debug) { ORBUtility.dprint( this, "Calling deactivate on POAManager " + this ) ; } if ( state.value() == State._INACTIVE ) throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive(); state = State.INACTIVE; pihandler.adapterManagerStateChanged( myId, getORTState() ) ; // Notify any invocations that were waiting because the previous // state was HOLDING. Those invocations will then be rejected with // an OBJ_ADAPTER exception. Also notify any threads that were waiting // inside hold_requests() or discard_requests(). notifyWaiters(); } POAManagerDeactivator deactivator = new POAManagerDeactivator( this, etherealize_objects, debug ) ; if (wait_for_completion) deactivator.run() ; else { Thread thr = new Thread(deactivator) ; thr.start() ; } } finally { synchronized(this) { if (debug) { ORBUtility.dprint( this, "Exiting deactivate on POAManager " + this ) ; } } } }
Example #19
Source File: POAManagerImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
/** * <code>deactivate</code> * <b>Spec: pages 3-14 thru 3-18</b> * Note: INACTIVE is a permanent state. */ public void deactivate(boolean etherealize_objects, boolean wait_for_completion) throws org.omg.PortableServer.POAManagerPackage.AdapterInactive { explicitStateChange = true ; try { synchronized( this ) { if (debug) { ORBUtility.dprint( this, "Calling deactivate on POAManager " + this ) ; } if ( state.value() == State._INACTIVE ) throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive(); state = State.INACTIVE; pihandler.adapterManagerStateChanged( myId, getORTState() ) ; // Notify any invocations that were waiting because the previous // state was HOLDING. Those invocations will then be rejected with // an OBJ_ADAPTER exception. Also notify any threads that were waiting // inside hold_requests() or discard_requests(). notifyWaiters(); } POAManagerDeactivator deactivator = new POAManagerDeactivator( this, etherealize_objects, debug ) ; if (wait_for_completion) deactivator.run() ; else { Thread thr = new Thread(deactivator) ; thr.start() ; } } finally { synchronized(this) { if (debug) { ORBUtility.dprint( this, "Exiting deactivate on POAManager " + this ) ; } } } }
Example #20
Source File: POAManagerImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
/** * <code>deactivate</code> * <b>Spec: pages 3-14 thru 3-18</b> * Note: INACTIVE is a permanent state. */ public void deactivate(boolean etherealize_objects, boolean wait_for_completion) throws org.omg.PortableServer.POAManagerPackage.AdapterInactive { explicitStateChange = true ; try { synchronized( this ) { if (debug) { ORBUtility.dprint( this, "Calling deactivate on POAManager " + this ) ; } if ( state.value() == State._INACTIVE ) throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive(); state = State.INACTIVE; pihandler.adapterManagerStateChanged( myId, getORTState() ) ; // Notify any invocations that were waiting because the previous // state was HOLDING. Those invocations will then be rejected with // an OBJ_ADAPTER exception. Also notify any threads that were waiting // inside hold_requests() or discard_requests(). notifyWaiters(); } POAManagerDeactivator deactivator = new POAManagerDeactivator( this, etherealize_objects, debug ) ; if (wait_for_completion) deactivator.run() ; else { Thread thr = new Thread(deactivator) ; thr.start() ; } } finally { synchronized(this) { if (debug) { ORBUtility.dprint( this, "Exiting deactivate on POAManager " + this ) ; } } } }