com.sun.corba.se.impl.logging.ActivationSystemException Java Examples
The following examples show how to use
com.sun.corba.se.impl.logging.ActivationSystemException.
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: RepositoryImpl.java From JDKSourceCode1.8 with MIT License | 6 votes |
RepositoryImpl(ORB orb, File dbDir, boolean debug) { this.debug = debug ; this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_REPOSITORY ) ; // if databse does not exist, create it otherwise read it in File dbFile = new File(dbDir, "servers.db"); if (!dbFile.exists()) { db = new RepositoryDB(dbFile); db.flush(); } else { try { FileInputStream fis = new FileInputStream(dbFile); ObjectInputStream ois = new ObjectInputStream(fis); db = (RepositoryDB) ois.readObject(); ois.close(); } catch (Exception e) { throw wrapper.cannotReadRepositoryDb( e ) ; } } // export the repository orb.connect(this); }
Example #2
Source File: RepositoryImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
RepositoryImpl(ORB orb, File dbDir, boolean debug) { this.debug = debug ; this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_REPOSITORY ) ; // if databse does not exist, create it otherwise read it in File dbFile = new File(dbDir, "servers.db"); if (!dbFile.exists()) { db = new RepositoryDB(dbFile); db.flush(); } else { try { FileInputStream fis = new FileInputStream(dbFile); ObjectInputStream ois = new ObjectInputStream(fis); db = (RepositoryDB) ois.readObject(); ois.close(); } catch (Exception e) { throw wrapper.cannotReadRepositoryDb( e ) ; } } // export the repository orb.connect(this); }
Example #3
Source File: RepositoryImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
RepositoryImpl(ORB orb, File dbDir, boolean debug) { this.debug = debug ; this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_REPOSITORY ) ; // if databse does not exist, create it otherwise read it in File dbFile = new File(dbDir, "servers.db"); if (!dbFile.exists()) { db = new RepositoryDB(dbFile); db.flush(); } else { try { FileInputStream fis = new FileInputStream(dbFile); ObjectInputStream ois = new ObjectInputStream(fis); db = (RepositoryDB) ois.readObject(); ois.close(); } catch (Exception e) { throw wrapper.cannotReadRepositoryDb( e ) ; } } // export the repository orb.connect(this); }
Example #4
Source File: RepositoryImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
RepositoryImpl(ORB orb, File dbDir, boolean debug) { this.debug = debug ; this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_REPOSITORY ) ; // if databse does not exist, create it otherwise read it in File dbFile = new File(dbDir, "servers.db"); if (!dbFile.exists()) { db = new RepositoryDB(dbFile); db.flush(); } else { try { FileInputStream fis = new FileInputStream(dbFile); ObjectInputStream ois = new ObjectInputStream(fis); db = (RepositoryDB) ois.readObject(); ois.close(); } catch (Exception e) { throw wrapper.cannotReadRepositoryDb( e ) ; } } // export the repository orb.connect(this); }
Example #5
Source File: RepositoryImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
RepositoryImpl(ORB orb, File dbDir, boolean debug) { this.debug = debug ; this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_REPOSITORY ) ; // if databse does not exist, create it otherwise read it in File dbFile = new File(dbDir, "servers.db"); if (!dbFile.exists()) { db = new RepositoryDB(dbFile); db.flush(); } else { try { FileInputStream fis = new FileInputStream(dbFile); ObjectInputStream ois = new ObjectInputStream(fis); db = (RepositoryDB) ois.readObject(); ois.close(); } catch (Exception e) { throw wrapper.cannotReadRepositoryDb( e ) ; } } // export the repository orb.connect(this); }
Example #6
Source File: RepositoryImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
RepositoryImpl(ORB orb, File dbDir, boolean debug) { this.debug = debug ; this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_REPOSITORY ) ; // if databse does not exist, create it otherwise read it in File dbFile = new File(dbDir, "servers.db"); if (!dbFile.exists()) { db = new RepositoryDB(dbFile); db.flush(); } else { try { FileInputStream fis = new FileInputStream(dbFile); ObjectInputStream ois = new ObjectInputStream(fis); db = (RepositoryDB) ois.readObject(); ois.close(); } catch (Exception e) { throw wrapper.cannotReadRepositoryDb( e ) ; } } // export the repository orb.connect(this); }
Example #7
Source File: RepositoryImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
RepositoryImpl(ORB orb, File dbDir, boolean debug) { this.debug = debug ; this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_REPOSITORY ) ; // if databse does not exist, create it otherwise read it in File dbFile = new File(dbDir, "servers.db"); if (!dbFile.exists()) { db = new RepositoryDB(dbFile); db.flush(); } else { try { FileInputStream fis = new FileInputStream(dbFile); ObjectInputStream ois = new ObjectInputStream(fis); db = (RepositoryDB) ois.readObject(); ois.close(); } catch (Exception e) { throw wrapper.cannotReadRepositoryDb( e ) ; } } // export the repository orb.connect(this); }
Example #8
Source File: RepositoryImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
RepositoryImpl(ORB orb, File dbDir, boolean debug) { this.debug = debug ; this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_REPOSITORY ) ; // if databse does not exist, create it otherwise read it in File dbFile = new File(dbDir, "servers.db"); if (!dbFile.exists()) { db = new RepositoryDB(dbFile); db.flush(); } else { try { FileInputStream fis = new FileInputStream(dbFile); ObjectInputStream ois = new ObjectInputStream(fis); db = (RepositoryDB) ois.readObject(); ois.close(); } catch (Exception e) { throw wrapper.cannotReadRepositoryDb( e ) ; } } // export the repository orb.connect(this); }
Example #9
Source File: RepositoryImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
RepositoryImpl(ORB orb, File dbDir, boolean debug) { this.debug = debug ; this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_REPOSITORY ) ; // if databse does not exist, create it otherwise read it in File dbFile = new File(dbDir, "servers.db"); if (!dbFile.exists()) { db = new RepositoryDB(dbFile); db.flush(); } else { try { FileInputStream fis = new FileInputStream(dbFile); ObjectInputStream ois = new ObjectInputStream(fis); db = (RepositoryDB) ois.readObject(); ois.close(); } catch (Exception e) { throw wrapper.cannotReadRepositoryDb( e ) ; } } // export the repository orb.connect(this); }
Example #10
Source File: RepositoryImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
RepositoryImpl(ORB orb, File dbDir, boolean debug) { this.debug = debug ; this.orb = orb; wrapper = ActivationSystemException.get( orb, CORBALogDomains.ORBD_REPOSITORY ) ; // if databse does not exist, create it otherwise read it in File dbFile = new File(dbDir, "servers.db"); if (!dbFile.exists()) { db = new RepositoryDB(dbFile); db.flush(); } else { try { FileInputStream fis = new FileInputStream(dbFile); ObjectInputStream ois = new ObjectInputStream(fis); db = (RepositoryDB) ois.readObject(); ois.close(); } catch (Exception e) { throw wrapper.cannotReadRepositoryDb( e ) ; } } // export the repository orb.connect(this); }
Example #11
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 #12
Source File: ServerTableEntry.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
ServerTableEntry( ActivationSystemException wrapper, int serverId, ServerDef serverDef, int initialPort, String dbDirName, boolean verify, boolean debug ) { this.wrapper = wrapper ; this.serverId = serverId; this.serverDef = serverDef; this.debug = debug ; // create a HashMap with capacity 255 // Since all methods are synchronized, we don't need any // additional synchronization mechanisms orbAndPortInfo = new HashMap(255); activateRetryCount = 0; state = ACTIVATING; // compute the activation command activationCmd = // add path to the java vm javaHome + fileSep + "bin" + fileSep + "java " + // add any arguments to the server Java VM serverDef.serverVmArgs + " " + // add ORB properties "-Dioser=" + System.getProperty( "ioser" ) + " " + "-D" + ORBConstants.INITIAL_PORT_PROPERTY + "=" + initialPort + " " + "-D" + ORBConstants.DB_DIR_PROPERTY + "=" + dbDirName + " " + "-D" + ORBConstants.ACTIVATED_PROPERTY + "=true " + "-D" + ORBConstants.SERVER_ID_PROPERTY + "=" + serverId + " " + "-D" + ORBConstants.SERVER_NAME_PROPERTY + "=" + serverDef.serverName + " " + // we need to pass in the verify flag, so that the server is not // launched, when we try to validate its definition during registration // into the RepositoryImpl (verify ? "-D" + ORBConstants.SERVER_DEF_VERIFY_PROPERTY + "=true ": "") + // add classpath to the server "-classpath " + classPath + (serverDef.serverClassPath.equals("") == true ? "" : pathSep) + serverDef.serverClassPath + // add server class name and arguments " com.sun.corba.se.impl.activation.ServerMain " + serverDef.serverArgs // Add the debug flag, if any + (debug ? " -debug" : "") ; if (debug) System.out.println( "ServerTableEntry constructed with activation command " + activationCmd); }
Example #13
Source File: ServerTableEntry.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
ServerTableEntry( ActivationSystemException wrapper, int serverId, ServerDef serverDef, int initialPort, String dbDirName, boolean verify, boolean debug ) { this.wrapper = wrapper ; this.serverId = serverId; this.serverDef = serverDef; this.debug = debug ; // create a HashMap with capacity 255 // Since all methods are synchronized, we don't need any // additional synchronization mechanisms orbAndPortInfo = new HashMap(255); activateRetryCount = 0; state = ACTIVATING; // compute the activation command activationCmd = // add path to the java vm javaHome + fileSep + "bin" + fileSep + "java " + // add any arguments to the server Java VM serverDef.serverVmArgs + " " + // add ORB properties "-Dioser=" + System.getProperty( "ioser" ) + " " + "-D" + ORBConstants.INITIAL_PORT_PROPERTY + "=" + initialPort + " " + "-D" + ORBConstants.DB_DIR_PROPERTY + "=" + dbDirName + " " + "-D" + ORBConstants.ACTIVATED_PROPERTY + "=true " + "-D" + ORBConstants.SERVER_ID_PROPERTY + "=" + serverId + " " + "-D" + ORBConstants.SERVER_NAME_PROPERTY + "=" + serverDef.serverName + " " + // we need to pass in the verify flag, so that the server is not // launched, when we try to validate its definition during registration // into the RepositoryImpl (verify ? "-D" + ORBConstants.SERVER_DEF_VERIFY_PROPERTY + "=true ": "") + // add classpath to the server "-classpath " + classPath + (serverDef.serverClassPath.equals("") == true ? "" : pathSep) + serverDef.serverClassPath + // add server class name and arguments " com.sun.corba.se.impl.activation.ServerMain " + serverDef.serverArgs // Add the debug flag, if any + (debug ? " -debug" : "") ; if (debug) System.out.println( "ServerTableEntry constructed with activation command " + activationCmd); }
Example #14
Source File: ServerTableEntry.java From hottub with GNU General Public License v2.0 | 4 votes |
ServerTableEntry( ActivationSystemException wrapper, int serverId, ServerDef serverDef, int initialPort, String dbDirName, boolean verify, boolean debug ) { this.wrapper = wrapper ; this.serverId = serverId; this.serverDef = serverDef; this.debug = debug ; // create a HashMap with capacity 255 // Since all methods are synchronized, we don't need any // additional synchronization mechanisms orbAndPortInfo = new HashMap(255); activateRetryCount = 0; state = ACTIVATING; // compute the activation command activationCmd = // add path to the java vm javaHome + fileSep + "bin" + fileSep + "java " + // add any arguments to the server Java VM serverDef.serverVmArgs + " " + // add ORB properties "-Dioser=" + System.getProperty( "ioser" ) + " " + "-D" + ORBConstants.INITIAL_PORT_PROPERTY + "=" + initialPort + " " + "-D" + ORBConstants.DB_DIR_PROPERTY + "=" + dbDirName + " " + "-D" + ORBConstants.ACTIVATED_PROPERTY + "=true " + "-D" + ORBConstants.SERVER_ID_PROPERTY + "=" + serverId + " " + "-D" + ORBConstants.SERVER_NAME_PROPERTY + "=" + serverDef.serverName + " " + // we need to pass in the verify flag, so that the server is not // launched, when we try to validate its definition during registration // into the RepositoryImpl (verify ? "-D" + ORBConstants.SERVER_DEF_VERIFY_PROPERTY + "=true ": "") + // add classpath to the server "-classpath " + classPath + (serverDef.serverClassPath.equals("") == true ? "" : pathSep) + serverDef.serverClassPath + // add server class name and arguments " com.sun.corba.se.impl.activation.ServerMain " + serverDef.serverArgs // Add the debug flag, if any + (debug ? " -debug" : "") ; if (debug) System.out.println( "ServerTableEntry constructed with activation command " + activationCmd); }
Example #15
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 #16
Source File: ServerTableEntry.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
ServerTableEntry( ActivationSystemException wrapper, int serverId, ServerDef serverDef, int initialPort, String dbDirName, boolean verify, boolean debug ) { this.wrapper = wrapper ; this.serverId = serverId; this.serverDef = serverDef; this.debug = debug ; // create a HashMap with capacity 255 // Since all methods are synchronized, we don't need any // additional synchronization mechanisms orbAndPortInfo = new HashMap(255); activateRetryCount = 0; state = ACTIVATING; // compute the activation command activationCmd = // add path to the java vm javaHome + fileSep + "bin" + fileSep + "java " + // add any arguments to the server Java VM serverDef.serverVmArgs + " " + // add ORB properties "-Dioser=" + System.getProperty( "ioser" ) + " " + "-D" + ORBConstants.INITIAL_PORT_PROPERTY + "=" + initialPort + " " + "-D" + ORBConstants.DB_DIR_PROPERTY + "=" + dbDirName + " " + "-D" + ORBConstants.ACTIVATED_PROPERTY + "=true " + "-D" + ORBConstants.SERVER_ID_PROPERTY + "=" + serverId + " " + "-D" + ORBConstants.SERVER_NAME_PROPERTY + "=" + serverDef.serverName + " " + // we need to pass in the verify flag, so that the server is not // launched, when we try to validate its definition during registration // into the RepositoryImpl (verify ? "-D" + ORBConstants.SERVER_DEF_VERIFY_PROPERTY + "=true ": "") + // add classpath to the server "-classpath " + classPath + (serverDef.serverClassPath.equals("") == true ? "" : pathSep) + serverDef.serverClassPath + // add server class name and arguments " com.sun.corba.se.impl.activation.ServerMain " + serverDef.serverArgs // Add the debug flag, if any + (debug ? " -debug" : "") ; if (debug) System.out.println( "ServerTableEntry constructed with activation command " + activationCmd); }
Example #17
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 ); }
Example #18
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 #19
Source File: ServerTableEntry.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
ServerTableEntry( ActivationSystemException wrapper, int serverId, ServerDef serverDef, int initialPort, String dbDirName, boolean verify, boolean debug ) { this.wrapper = wrapper ; this.serverId = serverId; this.serverDef = serverDef; this.debug = debug ; // create a HashMap with capacity 255 // Since all methods are synchronized, we don't need any // additional synchronization mechanisms orbAndPortInfo = new HashMap(255); activateRetryCount = 0; state = ACTIVATING; // compute the activation command activationCmd = // add path to the java vm javaHome + fileSep + "bin" + fileSep + "java " + // add any arguments to the server Java VM serverDef.serverVmArgs + " " + // add ORB properties "-Dioser=" + System.getProperty( "ioser" ) + " " + "-D" + ORBConstants.INITIAL_PORT_PROPERTY + "=" + initialPort + " " + "-D" + ORBConstants.DB_DIR_PROPERTY + "=" + dbDirName + " " + "-D" + ORBConstants.ACTIVATED_PROPERTY + "=true " + "-D" + ORBConstants.SERVER_ID_PROPERTY + "=" + serverId + " " + "-D" + ORBConstants.SERVER_NAME_PROPERTY + "=" + serverDef.serverName + " " + // we need to pass in the verify flag, so that the server is not // launched, when we try to validate its definition during registration // into the RepositoryImpl (verify ? "-D" + ORBConstants.SERVER_DEF_VERIFY_PROPERTY + "=true ": "") + // add classpath to the server "-classpath " + classPath + (serverDef.serverClassPath.equals("") == true ? "" : pathSep) + serverDef.serverClassPath + // add server class name and arguments " com.sun.corba.se.impl.activation.ServerMain " + serverDef.serverArgs // Add the debug flag, if any + (debug ? " -debug" : "") ; if (debug) System.out.println( "ServerTableEntry constructed with activation command " + activationCmd); }
Example #20
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 #21
Source File: ServerTableEntry.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
ServerTableEntry( ActivationSystemException wrapper, int serverId, ServerDef serverDef, int initialPort, String dbDirName, boolean verify, boolean debug ) { this.wrapper = wrapper ; this.serverId = serverId; this.serverDef = serverDef; this.debug = debug ; // create a HashMap with capacity 255 // Since all methods are synchronized, we don't need any // additional synchronization mechanisms orbAndPortInfo = new HashMap(255); activateRetryCount = 0; state = ACTIVATING; // compute the activation command activationCmd = // add path to the java vm javaHome + fileSep + "bin" + fileSep + "java " + // add any arguments to the server Java VM serverDef.serverVmArgs + " " + // add ORB properties "-Dioser=" + System.getProperty( "ioser" ) + " " + "-D" + ORBConstants.INITIAL_PORT_PROPERTY + "=" + initialPort + " " + "-D" + ORBConstants.DB_DIR_PROPERTY + "=" + dbDirName + " " + "-D" + ORBConstants.ACTIVATED_PROPERTY + "=true " + "-D" + ORBConstants.SERVER_ID_PROPERTY + "=" + serverId + " " + "-D" + ORBConstants.SERVER_NAME_PROPERTY + "=" + serverDef.serverName + " " + // we need to pass in the verify flag, so that the server is not // launched, when we try to validate its definition during registration // into the RepositoryImpl (verify ? "-D" + ORBConstants.SERVER_DEF_VERIFY_PROPERTY + "=true ": "") + // add classpath to the server "-classpath " + classPath + (serverDef.serverClassPath.equals("") == true ? "" : pathSep) + serverDef.serverClassPath + // add server class name and arguments " com.sun.corba.se.impl.activation.ServerMain " + serverDef.serverArgs // Add the debug flag, if any + (debug ? " -debug" : "") ; if (debug) System.out.println( "ServerTableEntry constructed with activation command " + activationCmd); }
Example #22
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 #23
Source File: ServerTableEntry.java From JDKSourceCode1.8 with MIT License | 4 votes |
ServerTableEntry( ActivationSystemException wrapper, int serverId, ServerDef serverDef, int initialPort, String dbDirName, boolean verify, boolean debug ) { this.wrapper = wrapper ; this.serverId = serverId; this.serverDef = serverDef; this.debug = debug ; // create a HashMap with capacity 255 // Since all methods are synchronized, we don't need any // additional synchronization mechanisms orbAndPortInfo = new HashMap(255); activateRetryCount = 0; state = ACTIVATING; // compute the activation command activationCmd = // add path to the java vm javaHome + fileSep + "bin" + fileSep + "java " + // add any arguments to the server Java VM serverDef.serverVmArgs + " " + // add ORB properties "-Dioser=" + System.getProperty( "ioser" ) + " " + "-D" + ORBConstants.INITIAL_PORT_PROPERTY + "=" + initialPort + " " + "-D" + ORBConstants.DB_DIR_PROPERTY + "=" + dbDirName + " " + "-D" + ORBConstants.ACTIVATED_PROPERTY + "=true " + "-D" + ORBConstants.SERVER_ID_PROPERTY + "=" + serverId + " " + "-D" + ORBConstants.SERVER_NAME_PROPERTY + "=" + serverDef.serverName + " " + // we need to pass in the verify flag, so that the server is not // launched, when we try to validate its definition during registration // into the RepositoryImpl (verify ? "-D" + ORBConstants.SERVER_DEF_VERIFY_PROPERTY + "=true ": "") + // add classpath to the server "-classpath " + classPath + (serverDef.serverClassPath.equals("") == true ? "" : pathSep) + serverDef.serverClassPath + // add server class name and arguments " com.sun.corba.se.impl.activation.ServerMain " + serverDef.serverArgs // Add the debug flag, if any + (debug ? " -debug" : "") ; if (debug) System.out.println( "ServerTableEntry constructed with activation command " + activationCmd); }
Example #24
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 #25
Source File: ServerTableEntry.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
ServerTableEntry( ActivationSystemException wrapper, int serverId, ServerDef serverDef, int initialPort, String dbDirName, boolean verify, boolean debug ) { this.wrapper = wrapper ; this.serverId = serverId; this.serverDef = serverDef; this.debug = debug ; // create a HashMap with capacity 255 // Since all methods are synchronized, we don't need any // additional synchronization mechanisms orbAndPortInfo = new HashMap(255); activateRetryCount = 0; state = ACTIVATING; // compute the activation command activationCmd = // add path to the java vm javaHome + fileSep + "bin" + fileSep + "java " + // add any arguments to the server Java VM serverDef.serverVmArgs + " " + // add ORB properties "-Dioser=" + System.getProperty( "ioser" ) + " " + "-D" + ORBConstants.INITIAL_PORT_PROPERTY + "=" + initialPort + " " + "-D" + ORBConstants.DB_DIR_PROPERTY + "=" + dbDirName + " " + "-D" + ORBConstants.ACTIVATED_PROPERTY + "=true " + "-D" + ORBConstants.SERVER_ID_PROPERTY + "=" + serverId + " " + "-D" + ORBConstants.SERVER_NAME_PROPERTY + "=" + serverDef.serverName + " " + // we need to pass in the verify flag, so that the server is not // launched, when we try to validate its definition during registration // into the RepositoryImpl (verify ? "-D" + ORBConstants.SERVER_DEF_VERIFY_PROPERTY + "=true ": "") + // add classpath to the server "-classpath " + classPath + (serverDef.serverClassPath.equals("") == true ? "" : pathSep) + serverDef.serverClassPath + // add server class name and arguments " com.sun.corba.se.impl.activation.ServerMain " + serverDef.serverArgs // Add the debug flag, if any + (debug ? " -debug" : "") ; if (debug) System.out.println( "ServerTableEntry constructed with activation command " + activationCmd); }
Example #26
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 #27
Source File: ServerTableEntry.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
ServerTableEntry( ActivationSystemException wrapper, int serverId, ServerDef serverDef, int initialPort, String dbDirName, boolean verify, boolean debug ) { this.wrapper = wrapper ; this.serverId = serverId; this.serverDef = serverDef; this.debug = debug ; // create a HashMap with capacity 255 // Since all methods are synchronized, we don't need any // additional synchronization mechanisms orbAndPortInfo = new HashMap(255); activateRetryCount = 0; state = ACTIVATING; // compute the activation command activationCmd = // add path to the java vm javaHome + fileSep + "bin" + fileSep + "java " + // add any arguments to the server Java VM serverDef.serverVmArgs + " " + // add ORB properties "-Dioser=" + System.getProperty( "ioser" ) + " " + "-D" + ORBConstants.INITIAL_PORT_PROPERTY + "=" + initialPort + " " + "-D" + ORBConstants.DB_DIR_PROPERTY + "=" + dbDirName + " " + "-D" + ORBConstants.ACTIVATED_PROPERTY + "=true " + "-D" + ORBConstants.SERVER_ID_PROPERTY + "=" + serverId + " " + "-D" + ORBConstants.SERVER_NAME_PROPERTY + "=" + serverDef.serverName + " " + // we need to pass in the verify flag, so that the server is not // launched, when we try to validate its definition during registration // into the RepositoryImpl (verify ? "-D" + ORBConstants.SERVER_DEF_VERIFY_PROPERTY + "=true ": "") + // add classpath to the server "-classpath " + classPath + (serverDef.serverClassPath.equals("") == true ? "" : pathSep) + serverDef.serverClassPath + // add server class name and arguments " com.sun.corba.se.impl.activation.ServerMain " + serverDef.serverArgs // Add the debug flag, if any + (debug ? " -debug" : "") ; if (debug) System.out.println( "ServerTableEntry constructed with activation command " + activationCmd); }
Example #28
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 #29
Source File: ServerTableEntry.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
ServerTableEntry( ActivationSystemException wrapper, int serverId, ServerDef serverDef, int initialPort, String dbDirName, boolean verify, boolean debug ) { this.wrapper = wrapper ; this.serverId = serverId; this.serverDef = serverDef; this.debug = debug ; // create a HashMap with capacity 255 // Since all methods are synchronized, we don't need any // additional synchronization mechanisms orbAndPortInfo = new HashMap(255); activateRetryCount = 0; state = ACTIVATING; // compute the activation command activationCmd = // add path to the java vm javaHome + fileSep + "bin" + fileSep + "java " + // add any arguments to the server Java VM serverDef.serverVmArgs + " " + // add ORB properties "-Dioser=" + System.getProperty( "ioser" ) + " " + "-D" + ORBConstants.INITIAL_PORT_PROPERTY + "=" + initialPort + " " + "-D" + ORBConstants.DB_DIR_PROPERTY + "=" + dbDirName + " " + "-D" + ORBConstants.ACTIVATED_PROPERTY + "=true " + "-D" + ORBConstants.SERVER_ID_PROPERTY + "=" + serverId + " " + "-D" + ORBConstants.SERVER_NAME_PROPERTY + "=" + serverDef.serverName + " " + // we need to pass in the verify flag, so that the server is not // launched, when we try to validate its definition during registration // into the RepositoryImpl (verify ? "-D" + ORBConstants.SERVER_DEF_VERIFY_PROPERTY + "=true ": "") + // add classpath to the server "-classpath " + classPath + (serverDef.serverClassPath.equals("") == true ? "" : pathSep) + serverDef.serverClassPath + // add server class name and arguments " com.sun.corba.se.impl.activation.ServerMain " + serverDef.serverArgs // Add the debug flag, if any + (debug ? " -debug" : "") ; if (debug) System.out.println( "ServerTableEntry constructed with activation command " + activationCmd); }
Example #30
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 ); }