com.sun.corba.se.spi.activation.Server Java Examples
The following examples show how to use
com.sun.corba.se.spi.activation.Server.
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: ServerTableEntry.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
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() ; } }
Example #2
Source File: ServerTableEntry.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
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() ; } }
Example #3
Source File: ServerManagerImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
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); } } }
Example #4
Source File: ServerTableEntry.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
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() ; } }
Example #5
Source File: ServerManagerImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
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); } } }
Example #6
Source File: ServerTableEntry.java From hottub with GNU General Public License v2.0 | 6 votes |
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() ; } }
Example #7
Source File: ServerManagerImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
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); } } }
Example #8
Source File: ServerTableEntry.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
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() ; } }
Example #9
Source File: ServerManagerImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
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); } } }
Example #10
Source File: ServerTableEntry.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
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() ; } }
Example #11
Source File: ServerManagerImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
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); } } }
Example #12
Source File: ServerTableEntry.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
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() ; } }
Example #13
Source File: ServerManagerImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
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); } } }
Example #14
Source File: ServerManagerImpl.java From JDKSourceCode1.8 with MIT License | 6 votes |
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); } } }
Example #15
Source File: ServerManagerImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
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); } } }
Example #16
Source File: ServerTableEntry.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
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() ; } }
Example #17
Source File: ServerManagerImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
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); } } }
Example #18
Source File: ServerManagerImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
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); } } }
Example #19
Source File: ServerTableEntry.java From JDKSourceCode1.8 with MIT License | 6 votes |
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() ; } }
Example #20
Source File: ServerTableEntry.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
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() ; } }
Example #21
Source File: ServerTableEntry.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
void install() { Server localServerObj = null; synchronized ( this ) { if (state == RUNNING) localServerObj = serverObj; else throw wrapper.serverNotRunning() ; } if (localServerObj != null) { localServerObj.install() ; } }
Example #22
Source File: ServerTableEntry.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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 } }
Example #23
Source File: ServerTableEntry.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
void install() { Server localServerObj = null; synchronized ( this ) { if (state == RUNNING) localServerObj = serverObj; else throw wrapper.serverNotRunning() ; } if (localServerObj != null) { localServerObj.install() ; } }
Example #24
Source File: ServerTableEntry.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
void install() { Server localServerObj = null; synchronized ( this ) { if (state == RUNNING) localServerObj = serverObj; else throw wrapper.serverNotRunning() ; } if (localServerObj != null) { localServerObj.install() ; } }
Example #25
Source File: ServerTableEntry.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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 } }
Example #26
Source File: ServerTableEntry.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
void install() { Server localServerObj = null; synchronized ( this ) { if (state == RUNNING) localServerObj = serverObj; else throw wrapper.serverNotRunning() ; } if (localServerObj != null) { localServerObj.install() ; } }
Example #27
Source File: ServerTableEntry.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
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 } }
Example #28
Source File: ServerTableEntry.java From hottub with GNU General Public License v2.0 | 5 votes |
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 } }
Example #29
Source File: ServerTableEntry.java From hottub with GNU General Public License v2.0 | 5 votes |
void install() { Server localServerObj = null; synchronized ( this ) { if (state == RUNNING) localServerObj = serverObj; else throw wrapper.serverNotRunning() ; } if (localServerObj != null) { localServerObj.install() ; } }
Example #30
Source File: ServerTableEntry.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
void install() { Server localServerObj = null; synchronized ( this ) { if (state == RUNNING) localServerObj = serverObj; else throw wrapper.serverNotRunning() ; } if (localServerObj != null) { localServerObj.install() ; } }