com.sun.corba.se.spi.activation.ServerAlreadyUninstalled Java Examples

The following examples show how to use com.sun.corba.se.spi.activation.ServerAlreadyUninstalled. 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: ServerManagerImpl.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerHeldDown, ServerAlreadyUninstalled
{
    ServerTableEntry entry =
        (ServerTableEntry) serverTable.get( new Integer(serverId) );

    if (entry != null) {

        entry =
            (ServerTableEntry) serverTable.remove(new Integer(serverId));

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: shutdown for server Id " +
                                serverId + " throws ServerNotActive." ) ;

            throw new ServerHeldDown( serverId );
        }

        entry.uninstall();
    }
}
 
Example #2
Source File: ServerManagerImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerHeldDown, ServerAlreadyUninstalled
{
    ServerTableEntry entry =
        (ServerTableEntry) serverTable.get( new Integer(serverId) );

    if (entry != null) {

        entry =
            (ServerTableEntry) serverTable.remove(new Integer(serverId));

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: shutdown for server Id " +
                                serverId + " throws ServerNotActive." ) ;

            throw new ServerHeldDown( serverId );
        }

        entry.uninstall();
    }
}
 
Example #3
Source File: ServerManagerImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerHeldDown, ServerAlreadyUninstalled
{
    ServerTableEntry entry =
        (ServerTableEntry) serverTable.get( new Integer(serverId) );

    if (entry != null) {

        entry =
            (ServerTableEntry) serverTable.remove(new Integer(serverId));

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: shutdown for server Id " +
                                serverId + " throws ServerNotActive." ) ;

            throw new ServerHeldDown( serverId );
        }

        entry.uninstall();
    }
}
 
Example #4
Source File: ServerManagerImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerHeldDown, ServerAlreadyUninstalled
{
    ServerTableEntry entry =
        (ServerTableEntry) serverTable.get( new Integer(serverId) );

    if (entry != null) {

        entry =
            (ServerTableEntry) serverTable.remove(new Integer(serverId));

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: shutdown for server Id " +
                                serverId + " throws ServerNotActive." ) ;

            throw new ServerHeldDown( serverId );
        }

        entry.uninstall();
    }
}
 
Example #5
Source File: ServerManagerImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerHeldDown, ServerAlreadyUninstalled
{
    ServerTableEntry entry =
        (ServerTableEntry) serverTable.get( new Integer(serverId) );

    if (entry != null) {

        entry =
            (ServerTableEntry) serverTable.remove(new Integer(serverId));

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: shutdown for server Id " +
                                serverId + " throws ServerNotActive." ) ;

            throw new ServerHeldDown( serverId );
        }

        entry.uninstall();
    }
}
 
Example #6
Source File: ServerManagerImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerHeldDown, ServerAlreadyUninstalled
{
    ServerTableEntry entry =
        (ServerTableEntry) serverTable.get( new Integer(serverId) );

    if (entry != null) {

        entry =
            (ServerTableEntry) serverTable.remove(new Integer(serverId));

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: shutdown for server Id " +
                                serverId + " throws ServerNotActive." ) ;

            throw new ServerHeldDown( serverId );
        }

        entry.uninstall();
    }
}
 
Example #7
Source File: ServerManagerImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerHeldDown, ServerAlreadyUninstalled
{
    ServerTableEntry entry =
        (ServerTableEntry) serverTable.get( new Integer(serverId) );

    if (entry != null) {

        entry =
            (ServerTableEntry) serverTable.remove(new Integer(serverId));

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: shutdown for server Id " +
                                serverId + " throws ServerNotActive." ) ;

            throw new ServerHeldDown( serverId );
        }

        entry.uninstall();
    }
}
 
Example #8
Source File: ServerManagerImpl.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerHeldDown, ServerAlreadyUninstalled
{
    ServerTableEntry entry =
        (ServerTableEntry) serverTable.get( new Integer(serverId) );

    if (entry != null) {

        entry =
            (ServerTableEntry) serverTable.remove(new Integer(serverId));

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: shutdown for server Id " +
                                serverId + " throws ServerNotActive." ) ;

            throw new ServerHeldDown( serverId );
        }

        entry.uninstall();
    }
}
 
Example #9
Source File: ServerManagerImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerHeldDown, ServerAlreadyUninstalled
{
    ServerTableEntry entry =
        (ServerTableEntry) serverTable.get( new Integer(serverId) );

    if (entry != null) {

        entry =
            (ServerTableEntry) serverTable.remove(new Integer(serverId));

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: shutdown for server Id " +
                                serverId + " throws ServerNotActive." ) ;

            throw new ServerHeldDown( serverId );
        }

        entry.uninstall();
    }
}
 
Example #10
Source File: ServerManagerImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerHeldDown, ServerAlreadyUninstalled
{
    ServerTableEntry entry =
        (ServerTableEntry) serverTable.get( new Integer(serverId) );

    if (entry != null) {

        entry =
            (ServerTableEntry) serverTable.remove(new Integer(serverId));

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: shutdown for server Id " +
                                serverId + " throws ServerNotActive." ) ;

            throw new ServerHeldDown( serverId );
        }

        entry.uninstall();
    }
}
 
Example #11
Source File: RepositoryImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerAlreadyUninstalled
{
    DBServerDef server = getDBServerDef( serverId ) ;

    if (!server.isInstalled)
        throw new ServerAlreadyUninstalled( serverId ) ;
    else {
        server.isInstalled = false ;
        db.flush() ;
    }
}
 
Example #12
Source File: RepositoryImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerAlreadyUninstalled
{
    DBServerDef server = getDBServerDef( serverId ) ;

    if (!server.isInstalled)
        throw new ServerAlreadyUninstalled( serverId ) ;
    else {
        server.isInstalled = false ;
        db.flush() ;
    }
}
 
Example #13
Source File: RepositoryImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerAlreadyUninstalled
{
    DBServerDef server = getDBServerDef( serverId ) ;

    if (!server.isInstalled)
        throw new ServerAlreadyUninstalled( serverId ) ;
    else {
        server.isInstalled = false ;
        db.flush() ;
    }
}
 
Example #14
Source File: RepositoryImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerAlreadyUninstalled
{
    DBServerDef server = getDBServerDef( serverId ) ;

    if (!server.isInstalled)
        throw new ServerAlreadyUninstalled( serverId ) ;
    else {
        server.isInstalled = false ;
        db.flush() ;
    }
}
 
Example #15
Source File: RepositoryImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerAlreadyUninstalled
{
    DBServerDef server = getDBServerDef( serverId ) ;

    if (!server.isInstalled)
        throw new ServerAlreadyUninstalled( serverId ) ;
    else {
        server.isInstalled = false ;
        db.flush() ;
    }
}
 
Example #16
Source File: RepositoryImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerAlreadyUninstalled
{
    DBServerDef server = getDBServerDef( serverId ) ;

    if (!server.isInstalled)
        throw new ServerAlreadyUninstalled( serverId ) ;
    else {
        server.isInstalled = false ;
        db.flush() ;
    }
}
 
Example #17
Source File: RepositoryImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerAlreadyUninstalled
{
    DBServerDef server = getDBServerDef( serverId ) ;

    if (!server.isInstalled)
        throw new ServerAlreadyUninstalled( serverId ) ;
    else {
        server.isInstalled = false ;
        db.flush() ;
    }
}
 
Example #18
Source File: RepositoryImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerAlreadyUninstalled
{
    DBServerDef server = getDBServerDef( serverId ) ;

    if (!server.isInstalled)
        throw new ServerAlreadyUninstalled( serverId ) ;
    else {
        server.isInstalled = false ;
        db.flush() ;
    }
}
 
Example #19
Source File: RepositoryImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerAlreadyUninstalled
{
    DBServerDef server = getDBServerDef( serverId ) ;

    if (!server.isInstalled)
        throw new ServerAlreadyUninstalled( serverId ) ;
    else {
        server.isInstalled = false ;
        db.flush() ;
    }
}
 
Example #20
Source File: RepositoryImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public void uninstall( int serverId )
    throws ServerNotRegistered, ServerAlreadyUninstalled
{
    DBServerDef server = getDBServerDef( serverId ) ;

    if (!server.isInstalled)
        throw new ServerAlreadyUninstalled( serverId ) ;
    else {
        server.isInstalled = false ;
        db.flush() ;
    }
}