Package java.util.logging

Examples of java.util.logging.Logger.severe()


      }
      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());
View Full Code Here


      _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());
View Full Code Here

        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();
        }
      }
View Full Code Here

      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());
View Full Code Here

                    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);
        }
    }
}
View Full Code Here

        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);
View Full Code Here

    }

        // 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()];
View Full Code Here

        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);
View Full Code Here

            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 {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.