Java Code Examples for com.sun.corba.se.spi.orb.ORB#initBadServerIdHandler()
The following examples show how to use
com.sun.corba.se.spi.orb.ORB#initBadServerIdHandler() .
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 | 4 votes |
ServerManagerImpl(ORB orb, CorbaTransportManager transportManager, Repository repository, String dbDirName, boolean debug) { this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_ACTIVATOR ) ; this.transportManager = transportManager; // REVISIT - NOT USED. this.repository = repository; this.dbDirName = dbDirName; this.debug = debug ; LegacyServerSocketEndPointInfo endpoint = orb.getLegacyServerSocketManager() .legacyGetEndpoint(LegacyServerSocketEndPointInfo.BOOT_NAMING); initialPort = ((SocketOrChannelAcceptor)endpoint) .getServerSocket().getLocalPort(); serverTable = new HashMap(256); // The ServerStartupDelay is the delay added after the Server registers // end point information. This is to allow the server to completely // initialize after ORB is instantiated. serverStartupDelay = ORBConstants.DEFAULT_SERVER_STARTUP_DELAY; String delay = System.getProperty( ORBConstants.SERVER_STARTUP_DELAY); if( delay != null ) { try { serverStartupDelay = Integer.parseInt( delay ); } catch ( Exception e ) { // Just use the default 1000 milliseconds as the default } } Class cls = orb.getORBData( ).getBadServerIdHandler(); if( cls == null ) { orb.setBadServerIdHandler( this ); } else { orb.initBadServerIdHandler() ; } orb.connect(this); ProcessMonitorThread.start( serverTable ); }
Example 2
Source File: ServerManagerImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
ServerManagerImpl(ORB orb, CorbaTransportManager transportManager, Repository repository, String dbDirName, boolean debug) { this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_ACTIVATOR ) ; this.transportManager = transportManager; // REVISIT - NOT USED. this.repository = repository; this.dbDirName = dbDirName; this.debug = debug ; LegacyServerSocketEndPointInfo endpoint = orb.getLegacyServerSocketManager() .legacyGetEndpoint(LegacyServerSocketEndPointInfo.BOOT_NAMING); initialPort = ((SocketOrChannelAcceptor)endpoint) .getServerSocket().getLocalPort(); serverTable = new HashMap(256); // The ServerStartupDelay is the delay added after the Server registers // end point information. This is to allow the server to completely // initialize after ORB is instantiated. serverStartupDelay = ORBConstants.DEFAULT_SERVER_STARTUP_DELAY; String delay = System.getProperty( ORBConstants.SERVER_STARTUP_DELAY); if( delay != null ) { try { serverStartupDelay = Integer.parseInt( delay ); } catch ( Exception e ) { // Just use the default 1000 milliseconds as the default } } Class cls = orb.getORBData( ).getBadServerIdHandler(); if( cls == null ) { orb.setBadServerIdHandler( this ); } else { orb.initBadServerIdHandler() ; } orb.connect(this); ProcessMonitorThread.start( serverTable ); }
Example 3
Source File: ServerManagerImpl.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
ServerManagerImpl(ORB orb, CorbaTransportManager transportManager, Repository repository, String dbDirName, boolean debug) { this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_ACTIVATOR ) ; this.transportManager = transportManager; // REVISIT - NOT USED. this.repository = repository; this.dbDirName = dbDirName; this.debug = debug ; LegacyServerSocketEndPointInfo endpoint = orb.getLegacyServerSocketManager() .legacyGetEndpoint(LegacyServerSocketEndPointInfo.BOOT_NAMING); initialPort = ((SocketOrChannelAcceptor)endpoint) .getServerSocket().getLocalPort(); serverTable = new HashMap(256); // The ServerStartupDelay is the delay added after the Server registers // end point information. This is to allow the server to completely // initialize after ORB is instantiated. serverStartupDelay = ORBConstants.DEFAULT_SERVER_STARTUP_DELAY; String delay = System.getProperty( ORBConstants.SERVER_STARTUP_DELAY); if( delay != null ) { try { serverStartupDelay = Integer.parseInt( delay ); } catch ( Exception e ) { // Just use the default 1000 milliseconds as the default } } Class cls = orb.getORBData( ).getBadServerIdHandler(); if( cls == null ) { orb.setBadServerIdHandler( this ); } else { orb.initBadServerIdHandler() ; } orb.connect(this); ProcessMonitorThread.start( serverTable ); }
Example 4
Source File: ServerManagerImpl.java From JDKSourceCode1.8 with MIT License | 4 votes |
ServerManagerImpl(ORB orb, CorbaTransportManager transportManager, Repository repository, String dbDirName, boolean debug) { this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_ACTIVATOR ) ; this.transportManager = transportManager; // REVISIT - NOT USED. this.repository = repository; this.dbDirName = dbDirName; this.debug = debug ; LegacyServerSocketEndPointInfo endpoint = orb.getLegacyServerSocketManager() .legacyGetEndpoint(LegacyServerSocketEndPointInfo.BOOT_NAMING); initialPort = ((SocketOrChannelAcceptor)endpoint) .getServerSocket().getLocalPort(); serverTable = new HashMap(256); // The ServerStartupDelay is the delay added after the Server registers // end point information. This is to allow the server to completely // initialize after ORB is instantiated. serverStartupDelay = ORBConstants.DEFAULT_SERVER_STARTUP_DELAY; String delay = System.getProperty( ORBConstants.SERVER_STARTUP_DELAY); if( delay != null ) { try { serverStartupDelay = Integer.parseInt( delay ); } catch ( Exception e ) { // Just use the default 1000 milliseconds as the default } } Class cls = orb.getORBData( ).getBadServerIdHandler(); if( cls == null ) { orb.setBadServerIdHandler( this ); } else { orb.initBadServerIdHandler() ; } orb.connect(this); ProcessMonitorThread.start( serverTable ); }
Example 5
Source File: ServerManagerImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
ServerManagerImpl(ORB orb, CorbaTransportManager transportManager, Repository repository, String dbDirName, boolean debug) { this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_ACTIVATOR ) ; this.transportManager = transportManager; // REVISIT - NOT USED. this.repository = repository; this.dbDirName = dbDirName; this.debug = debug ; LegacyServerSocketEndPointInfo endpoint = orb.getLegacyServerSocketManager() .legacyGetEndpoint(LegacyServerSocketEndPointInfo.BOOT_NAMING); initialPort = ((SocketOrChannelAcceptor)endpoint) .getServerSocket().getLocalPort(); serverTable = new HashMap(256); // The ServerStartupDelay is the delay added after the Server registers // end point information. This is to allow the server to completely // initialize after ORB is instantiated. serverStartupDelay = ORBConstants.DEFAULT_SERVER_STARTUP_DELAY; String delay = System.getProperty( ORBConstants.SERVER_STARTUP_DELAY); if( delay != null ) { try { serverStartupDelay = Integer.parseInt( delay ); } catch ( Exception e ) { // Just use the default 1000 milliseconds as the default } } Class cls = orb.getORBData( ).getBadServerIdHandler(); if( cls == null ) { orb.setBadServerIdHandler( this ); } else { orb.initBadServerIdHandler() ; } orb.connect(this); ProcessMonitorThread.start( serverTable ); }
Example 6
Source File: ServerManagerImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
ServerManagerImpl(ORB orb, CorbaTransportManager transportManager, Repository repository, String dbDirName, boolean debug) { this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_ACTIVATOR ) ; this.transportManager = transportManager; // REVISIT - NOT USED. this.repository = repository; this.dbDirName = dbDirName; this.debug = debug ; LegacyServerSocketEndPointInfo endpoint = orb.getLegacyServerSocketManager() .legacyGetEndpoint(LegacyServerSocketEndPointInfo.BOOT_NAMING); initialPort = ((SocketOrChannelAcceptor)endpoint) .getServerSocket().getLocalPort(); serverTable = new HashMap(256); // The ServerStartupDelay is the delay added after the Server registers // end point information. This is to allow the server to completely // initialize after ORB is instantiated. serverStartupDelay = ORBConstants.DEFAULT_SERVER_STARTUP_DELAY; String delay = System.getProperty( ORBConstants.SERVER_STARTUP_DELAY); if( delay != null ) { try { serverStartupDelay = Integer.parseInt( delay ); } catch ( Exception e ) { // Just use the default 1000 milliseconds as the default } } Class cls = orb.getORBData( ).getBadServerIdHandler(); if( cls == null ) { orb.setBadServerIdHandler( this ); } else { orb.initBadServerIdHandler() ; } orb.connect(this); ProcessMonitorThread.start( serverTable ); }
Example 7
Source File: ServerManagerImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
ServerManagerImpl(ORB orb, CorbaTransportManager transportManager, Repository repository, String dbDirName, boolean debug) { this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_ACTIVATOR ) ; this.transportManager = transportManager; // REVISIT - NOT USED. this.repository = repository; this.dbDirName = dbDirName; this.debug = debug ; LegacyServerSocketEndPointInfo endpoint = orb.getLegacyServerSocketManager() .legacyGetEndpoint(LegacyServerSocketEndPointInfo.BOOT_NAMING); initialPort = ((SocketOrChannelAcceptor)endpoint) .getServerSocket().getLocalPort(); serverTable = new HashMap(256); // The ServerStartupDelay is the delay added after the Server registers // end point information. This is to allow the server to completely // initialize after ORB is instantiated. serverStartupDelay = ORBConstants.DEFAULT_SERVER_STARTUP_DELAY; String delay = System.getProperty( ORBConstants.SERVER_STARTUP_DELAY); if( delay != null ) { try { serverStartupDelay = Integer.parseInt( delay ); } catch ( Exception e ) { // Just use the default 1000 milliseconds as the default } } Class cls = orb.getORBData( ).getBadServerIdHandler(); if( cls == null ) { orb.setBadServerIdHandler( this ); } else { orb.initBadServerIdHandler() ; } orb.connect(this); ProcessMonitorThread.start( serverTable ); }
Example 8
Source File: ServerManagerImpl.java From hottub with GNU General Public License v2.0 | 4 votes |
ServerManagerImpl(ORB orb, CorbaTransportManager transportManager, Repository repository, String dbDirName, boolean debug) { this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_ACTIVATOR ) ; this.transportManager = transportManager; // REVISIT - NOT USED. this.repository = repository; this.dbDirName = dbDirName; this.debug = debug ; LegacyServerSocketEndPointInfo endpoint = orb.getLegacyServerSocketManager() .legacyGetEndpoint(LegacyServerSocketEndPointInfo.BOOT_NAMING); initialPort = ((SocketOrChannelAcceptor)endpoint) .getServerSocket().getLocalPort(); serverTable = new HashMap(256); // The ServerStartupDelay is the delay added after the Server registers // end point information. This is to allow the server to completely // initialize after ORB is instantiated. serverStartupDelay = ORBConstants.DEFAULT_SERVER_STARTUP_DELAY; String delay = System.getProperty( ORBConstants.SERVER_STARTUP_DELAY); if( delay != null ) { try { serverStartupDelay = Integer.parseInt( delay ); } catch ( Exception e ) { // Just use the default 1000 milliseconds as the default } } Class cls = orb.getORBData( ).getBadServerIdHandler(); if( cls == null ) { orb.setBadServerIdHandler( this ); } else { orb.initBadServerIdHandler() ; } orb.connect(this); ProcessMonitorThread.start( serverTable ); }
Example 9
Source File: ServerManagerImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
ServerManagerImpl(ORB orb, CorbaTransportManager transportManager, Repository repository, String dbDirName, boolean debug) { this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_ACTIVATOR ) ; this.transportManager = transportManager; // REVISIT - NOT USED. this.repository = repository; this.dbDirName = dbDirName; this.debug = debug ; LegacyServerSocketEndPointInfo endpoint = orb.getLegacyServerSocketManager() .legacyGetEndpoint(LegacyServerSocketEndPointInfo.BOOT_NAMING); initialPort = ((SocketOrChannelAcceptor)endpoint) .getServerSocket().getLocalPort(); serverTable = new HashMap(256); // The ServerStartupDelay is the delay added after the Server registers // end point information. This is to allow the server to completely // initialize after ORB is instantiated. serverStartupDelay = ORBConstants.DEFAULT_SERVER_STARTUP_DELAY; String delay = System.getProperty( ORBConstants.SERVER_STARTUP_DELAY); if( delay != null ) { try { serverStartupDelay = Integer.parseInt( delay ); } catch ( Exception e ) { // Just use the default 1000 milliseconds as the default } } Class cls = orb.getORBData( ).getBadServerIdHandler(); if( cls == null ) { orb.setBadServerIdHandler( this ); } else { orb.initBadServerIdHandler() ; } orb.connect(this); ProcessMonitorThread.start( serverTable ); }
Example 10
Source File: ServerManagerImpl.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
ServerManagerImpl(ORB orb, CorbaTransportManager transportManager, Repository repository, String dbDirName, boolean debug) { this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_ACTIVATOR ) ; this.transportManager = transportManager; // REVISIT - NOT USED. this.repository = repository; this.dbDirName = dbDirName; this.debug = debug ; LegacyServerSocketEndPointInfo endpoint = orb.getLegacyServerSocketManager() .legacyGetEndpoint(LegacyServerSocketEndPointInfo.BOOT_NAMING); initialPort = ((SocketOrChannelAcceptor)endpoint) .getServerSocket().getLocalPort(); serverTable = new HashMap(256); // The ServerStartupDelay is the delay added after the Server registers // end point information. This is to allow the server to completely // initialize after ORB is instantiated. serverStartupDelay = ORBConstants.DEFAULT_SERVER_STARTUP_DELAY; String delay = System.getProperty( ORBConstants.SERVER_STARTUP_DELAY); if( delay != null ) { try { serverStartupDelay = Integer.parseInt( delay ); } catch ( Exception e ) { // Just use the default 1000 milliseconds as the default } } Class cls = orb.getORBData( ).getBadServerIdHandler(); if( cls == null ) { orb.setBadServerIdHandler( this ); } else { orb.initBadServerIdHandler() ; } orb.connect(this); ProcessMonitorThread.start( serverTable ); }