Java源码示例:com.sun.corba.se.spi.activation.Server

示例1
public void active(int serverId, Server server) throws ServerNotRegistered
{
    ServerTableEntry entry;
    Integer key = new Integer(serverId);

    synchronized (serverTable) {
        entry = (ServerTableEntry) serverTable.get(key);

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called, but no such server is registered." ) ;

            throw wrapper.serverNotExpectedToRegister() ;
        } else {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called.  This server is now active." ) ;

            entry.register(server);
        }
    }
}
 
示例2
synchronized void register(Server server)
{
    if (state == ACTIVATED) {

        serverObj = server;

        //state = RUNNING;
        //notifyAll();

        if (debug)
            printDebug("register", "process registered back");

    } else {

        if (debug)
            printDebug("register", "throwing premature process exit");
        throw wrapper.serverNotExpectedToRegister() ;
    }
}
 
示例3
public void active(int serverId, Server server) throws ServerNotRegistered
{
    ServerTableEntry entry;
    Integer key = new Integer(serverId);

    synchronized (serverTable) {
        entry = (ServerTableEntry) serverTable.get(key);

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called, but no such server is registered." ) ;

            throw wrapper.serverNotExpectedToRegister() ;
        } else {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called.  This server is now active." ) ;

            entry.register(server);
        }
    }
}
 
示例4
synchronized void register(Server server)
{
    if (state == ACTIVATED) {

        serverObj = server;

        //state = RUNNING;
        //notifyAll();

        if (debug)
            printDebug("register", "process registered back");

    } else {

        if (debug)
            printDebug("register", "throwing premature process exit");
        throw wrapper.serverNotExpectedToRegister() ;
    }
}
 
示例5
public void active(int serverId, Server server) throws ServerNotRegistered
{
    ServerTableEntry entry;
    Integer key = new Integer(serverId);

    synchronized (serverTable) {
        entry = (ServerTableEntry) serverTable.get(key);

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called, but no such server is registered." ) ;

            throw wrapper.serverNotExpectedToRegister() ;
        } else {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called.  This server is now active." ) ;

            entry.register(server);
        }
    }
}
 
示例6
synchronized void register(Server server)
{
    if (state == ACTIVATED) {

        serverObj = server;

        //state = RUNNING;
        //notifyAll();

        if (debug)
            printDebug("register", "process registered back");

    } else {

        if (debug)
            printDebug("register", "throwing premature process exit");
        throw wrapper.serverNotExpectedToRegister() ;
    }
}
 
示例7
public void active(int serverId, Server server) throws ServerNotRegistered
{
    ServerTableEntry entry;
    Integer key = new Integer(serverId);

    synchronized (serverTable) {
        entry = (ServerTableEntry) serverTable.get(key);

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called, but no such server is registered." ) ;

            throw wrapper.serverNotExpectedToRegister() ;
        } else {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called.  This server is now active." ) ;

            entry.register(server);
        }
    }
}
 
示例8
synchronized void register(Server server)
{
    if (state == ACTIVATED) {

        serverObj = server;

        //state = RUNNING;
        //notifyAll();

        if (debug)
            printDebug("register", "process registered back");

    } else {

        if (debug)
            printDebug("register", "throwing premature process exit");
        throw wrapper.serverNotExpectedToRegister() ;
    }
}
 
示例9
public void active(int serverId, Server server) throws ServerNotRegistered
{
    ServerTableEntry entry;
    Integer key = new Integer(serverId);

    synchronized (serverTable) {
        entry = (ServerTableEntry) serverTable.get(key);

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called, but no such server is registered." ) ;

            throw wrapper.serverNotExpectedToRegister() ;
        } else {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called.  This server is now active." ) ;

            entry.register(server);
        }
    }
}
 
示例10
synchronized void register(Server server)
{
    if (state == ACTIVATED) {

        serverObj = server;

        //state = RUNNING;
        //notifyAll();

        if (debug)
            printDebug("register", "process registered back");

    } else {

        if (debug)
            printDebug("register", "throwing premature process exit");
        throw wrapper.serverNotExpectedToRegister() ;
    }
}
 
示例11
public void active(int serverId, Server server) throws ServerNotRegistered
{
    ServerTableEntry entry;
    Integer key = new Integer(serverId);

    synchronized (serverTable) {
        entry = (ServerTableEntry) serverTable.get(key);

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called, but no such server is registered." ) ;

            throw wrapper.serverNotExpectedToRegister() ;
        } else {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called.  This server is now active." ) ;

            entry.register(server);
        }
    }
}
 
示例12
synchronized void register(Server server)
{
    if (state == ACTIVATED) {

        serverObj = server;

        //state = RUNNING;
        //notifyAll();

        if (debug)
            printDebug("register", "process registered back");

    } else {

        if (debug)
            printDebug("register", "throwing premature process exit");
        throw wrapper.serverNotExpectedToRegister() ;
    }
}
 
示例13
public void active(int serverId, Server server) throws ServerNotRegistered
{
    ServerTableEntry entry;
    Integer key = new Integer(serverId);

    synchronized (serverTable) {
        entry = (ServerTableEntry) serverTable.get(key);

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called, but no such server is registered." ) ;

            throw wrapper.serverNotExpectedToRegister() ;
        } else {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called.  This server is now active." ) ;

            entry.register(server);
        }
    }
}
 
示例14
synchronized void register(Server server)
{
    if (state == ACTIVATED) {

        serverObj = server;

        //state = RUNNING;
        //notifyAll();

        if (debug)
            printDebug("register", "process registered back");

    } else {

        if (debug)
            printDebug("register", "throwing premature process exit");
        throw wrapper.serverNotExpectedToRegister() ;
    }
}
 
示例15
public void active(int serverId, Server server) throws ServerNotRegistered
{
    ServerTableEntry entry;
    Integer key = new Integer(serverId);

    synchronized (serverTable) {
        entry = (ServerTableEntry) serverTable.get(key);

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called, but no such server is registered." ) ;

            throw wrapper.serverNotExpectedToRegister() ;
        } else {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called.  This server is now active." ) ;

            entry.register(server);
        }
    }
}
 
示例16
synchronized void register(Server server)
{
    if (state == ACTIVATED) {

        serverObj = server;

        //state = RUNNING;
        //notifyAll();

        if (debug)
            printDebug("register", "process registered back");

    } else {

        if (debug)
            printDebug("register", "throwing premature process exit");
        throw wrapper.serverNotExpectedToRegister() ;
    }
}
 
示例17
public void active(int serverId, Server server) throws ServerNotRegistered
{
    ServerTableEntry entry;
    Integer key = new Integer(serverId);

    synchronized (serverTable) {
        entry = (ServerTableEntry) serverTable.get(key);

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called, but no such server is registered." ) ;

            throw wrapper.serverNotExpectedToRegister() ;
        } else {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called.  This server is now active." ) ;

            entry.register(server);
        }
    }
}
 
示例18
synchronized void register(Server server)
{
    if (state == ACTIVATED) {

        serverObj = server;

        //state = RUNNING;
        //notifyAll();

        if (debug)
            printDebug("register", "process registered back");

    } else {

        if (debug)
            printDebug("register", "throwing premature process exit");
        throw wrapper.serverNotExpectedToRegister() ;
    }
}
 
示例19
public void active(int serverId, Server server) throws ServerNotRegistered
{
    ServerTableEntry entry;
    Integer key = new Integer(serverId);

    synchronized (serverTable) {
        entry = (ServerTableEntry) serverTable.get(key);

        if (entry == null) {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called, but no such server is registered." ) ;

            throw wrapper.serverNotExpectedToRegister() ;
        } else {
            if (debug)
                System.out.println( "ServerManagerImpl: active for server Id " +
                                    serverId + " called.  This server is now active." ) ;

            entry.register(server);
        }
    }
}
 
示例20
synchronized void register(Server server)
{
    if (state == ACTIVATED) {

        serverObj = server;

        //state = RUNNING;
        //notifyAll();

        if (debug)
            printDebug("register", "process registered back");

    } else {

        if (debug)
            printDebug("register", "throwing premature process exit");
        throw wrapper.serverNotExpectedToRegister() ;
    }
}
 
示例21
void install()
{
    Server localServerObj = null;
    synchronized ( this ) {
        if (state == RUNNING)
            localServerObj = serverObj;
        else
            throw wrapper.serverNotRunning() ;
    }
    if (localServerObj != null) {
        localServerObj.install() ;
    }

}
 
示例22
void uninstall()
{
    Server localServerObj = null;
    Process localProcess = null;

    synchronized (this) {
        localServerObj = serverObj;
        localProcess = process;

        if (state == RUNNING) {

            deActivate();

        } else {
            throw wrapper.serverNotRunning() ;
        }
    }
    try {
        if (localServerObj != null) {
            localServerObj.shutdown(); // shutdown the server
            localServerObj.uninstall() ; // call the uninstall
        }

        if (localProcess != null) {
            localProcess.destroy();
        }
    } catch (Exception ex) {
        // what kind of exception should be thrown
    }
}
 
示例23
void install()
{
    Server localServerObj = null;
    synchronized ( this ) {
        if (state == RUNNING)
            localServerObj = serverObj;
        else
            throw wrapper.serverNotRunning() ;
    }
    if (localServerObj != null) {
        localServerObj.install() ;
    }

}
 
示例24
void uninstall()
{
    Server localServerObj = null;
    Process localProcess = null;

    synchronized (this) {
        localServerObj = serverObj;
        localProcess = process;

        if (state == RUNNING) {

            deActivate();

        } else {
            throw wrapper.serverNotRunning() ;
        }
    }
    try {
        if (localServerObj != null) {
            localServerObj.shutdown(); // shutdown the server
            localServerObj.uninstall() ; // call the uninstall
        }

        if (localProcess != null) {
            localProcess.destroy();
        }
    } catch (Exception ex) {
        // what kind of exception should be thrown
    }
}
 
示例25
void install()
{
    Server localServerObj = null;
    synchronized ( this ) {
        if (state == RUNNING)
            localServerObj = serverObj;
        else
            throw wrapper.serverNotRunning() ;
    }
    if (localServerObj != null) {
        localServerObj.install() ;
    }

}
 
示例26
void uninstall()
{
    Server localServerObj = null;
    Process localProcess = null;

    synchronized (this) {
        localServerObj = serverObj;
        localProcess = process;

        if (state == RUNNING) {

            deActivate();

        } else {
            throw wrapper.serverNotRunning() ;
        }
    }
    try {
        if (localServerObj != null) {
            localServerObj.shutdown(); // shutdown the server
            localServerObj.uninstall() ; // call the uninstall
        }

        if (localProcess != null) {
            localProcess.destroy();
        }
    } catch (Exception ex) {
        // what kind of exception should be thrown
    }
}
 
示例27
void install()
{
    Server localServerObj = null;
    synchronized ( this ) {
        if (state == RUNNING)
            localServerObj = serverObj;
        else
            throw wrapper.serverNotRunning() ;
    }
    if (localServerObj != null) {
        localServerObj.install() ;
    }

}
 
示例28
void uninstall()
{
    Server localServerObj = null;
    Process localProcess = null;

    synchronized (this) {
        localServerObj = serverObj;
        localProcess = process;

        if (state == RUNNING) {

            deActivate();

        } else {
            throw wrapper.serverNotRunning() ;
        }
    }
    try {
        if (localServerObj != null) {
            localServerObj.shutdown(); // shutdown the server
            localServerObj.uninstall() ; // call the uninstall
        }

        if (localProcess != null) {
            localProcess.destroy();
        }
    } catch (Exception ex) {
        // what kind of exception should be thrown
    }
}
 
示例29
void install()
{
    Server localServerObj = null;
    synchronized ( this ) {
        if (state == RUNNING)
            localServerObj = serverObj;
        else
            throw wrapper.serverNotRunning() ;
    }
    if (localServerObj != null) {
        localServerObj.install() ;
    }

}
 
示例30
void uninstall()
{
    Server localServerObj = null;
    Process localProcess = null;

    synchronized (this) {
        localServerObj = serverObj;
        localProcess = process;

        if (state == RUNNING) {

            deActivate();

        } else {
            throw wrapper.serverNotRunning() ;
        }
    }
    try {
        if (localServerObj != null) {
            localServerObj.shutdown(); // shutdown the server
            localServerObj.uninstall() ; // call the uninstall
        }

        if (localProcess != null) {
            localProcess.destroy();
        }
    } catch (Exception ex) {
        // what kind of exception should be thrown
    }
}