If the logger is currently enabled for the SEVERE message level then the given message is forwarded to all the registered output Handler objects.
@param msg The string message (or a key in the message catalog)
121122123124125126127128129130131
} Server.exit(1, "FATAL: Failed to load GameServerTable. Reason: " + e.getMessage()); } catch(SQLException e) { _log.severe("FATAL: Failed to load GameServerTable. Reason: " + e.getMessage()); if(Config.LOGIN_DEBUG) { e.printStackTrace(); } Server.exit(1, "FATAL: Failed to load GameServerTable. Reason: " + e.getMessage());
149150151152153154155156157158159
_selectorThread = new SelectorThread<L2LoginClient>(sc, loginPacketHandler, sh, sh, sh); _selectorThread.setAcceptFilter(sh); } catch(IOException e) { _log.severe("FATAL: Failed to open Selector. Reason: " + e.getMessage()); if(Config.LOGIN_DEBUG) { e.printStackTrace(); } Server.exit(1, "FATAL: Failed to open Selector. Reason: " + e.getMessage());
168169170171172173174175176177178
statusServer = new Status(Server.MODE_LOGINSERVER); statusServer.start(); } catch(IOException e) { _log.severe("Failed to start the Telnet Server. Reason: " + e.getMessage()); if(Config.LOGIN_DEBUG) { e.printStackTrace(); } }
187188189190191192193194195196197
SelectorThread.setAntiFloodSocketsConf(Config.MAX_UNHANDLED_SOCKETS_PER_IP, Config.UNHANDLED_SOCKET_MIN_TTL); _selectorThread.openServerSocket(ad, Config.PORT_LOGIN); } catch(IOException e) { _log.severe("FATAL: Failed to open server socket on " + ad + ":" + Config.PORT_LOGIN + ". Reason: " + e.getMessage()); if(Config.LOGIN_DEBUG) { e.printStackTrace(); } Server.exit(1, "FATAL: Failed to open server socket on " + ad + ":" + Config.PORT_LOGIN + ". Reason: " + e.getMessage());
49505152535455565758
definingClassName.trim().length() > 0) BenchmarkDefinition.printFabanDD(definingClassName); System.exit(0); } catch (Exception e) { Logger logger = Logger.getLogger(DDGenerator.class.getName()); logger.severe(e.getMessage()); System.exit(1); } } }
105106107108109110111112113114115
if (!defClass.isAnnotationPresent( com.sun.faban.driver.BenchmarkDefinition.class)) { String msg = "Class " + defClassName + " is not a benchmark definition."; logger.severe(msg); throw new ConfigurationException(msg); } com.sun.faban.driver.BenchmarkDefinition benchDefAnnotation = defClass. getAnnotation(com.sun.faban.driver.BenchmarkDefinition.class);
139140141142143144145146147148149
} // Check that we have at least one driver if (driverClassList.size() <= 0) { String msg = "No driver classes found"; logger.severe(msg); throw new DefinitionException(msg); } // Transfer the classes to an array Class<?>[] driverClasses = new Class<?>[driverClassList.size()];
285286287288289290291292293294295
if (!defClass.isAnnotationPresent( com.sun.faban.driver.BenchmarkDefinition.class)) { String msg = "Defining class " + defClassName + " is not a benchmark definition."; logger.severe(msg); throw new DefinitionException(msg); } com.sun.faban.driver.BenchmarkDefinition benchDefAnnotation = defClass. getAnnotation(com.sun.faban.driver.BenchmarkDefinition.class);
322323324325326327328329330331332
out.write(b.toString().getBytes()); out.flush(); out.close(); logger.fine("Done writing " + outputFile); } catch (IOException e) { logger.severe(e.getMessage()); } } private static void getBackground(Class<?> driverClass, Driver driver) throws DefinitionException {