Java Code Examples for org.omg.PortableServer.POAManagerPackage.State#ACTIVE

The following examples show how to use org.omg.PortableServer.POAManagerPackage.State#ACTIVE . 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 vote down vote up
/**
 * <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 ) ;
        }
    }
}
 
Example 2
Source File: POAManagerImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <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 ) ;
        }
    }
}
 
Example 3
Source File: POAManagerImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <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 ) ;
        }
    }
}
 
Example 4
Source File: POAManagerImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * <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 ) ;
        }
    }
}
 
Example 5
Source File: POAManagerImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <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 ) ;
        }
    }
}
 
Example 6
Source File: POAManagerImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <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 ) ;
        }
    }
}
 
Example 7
Source File: POAManagerImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <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 ) ;
        }
    }
}
 
Example 8
Source File: POAManagerImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <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 ) ;
        }
    }
}
 
Example 9
Source File: POAManagerImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <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 ) ;
        }
    }
}
 
Example 10
Source File: POAManagerImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <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 ) ;
        }
    }
}