Package lineage2.commons.dao

Examples of lineage2.commons.dao.JdbcEntityStats


        sb.append("Players").append('\n');
        sb.append("     Update: ...................... ").append(GameStats.getUpdatePlayerBase()).append('\n');
        double cacheHitCount, cacheMissCount, cacheHitRatio;
        Cache cache;
        LiveCacheStatistics cacheStats;
        JdbcEntityStats entityStats;
        cache = ItemsDAO.getInstance().getCache();
        cacheStats = cache.getLiveCacheStatistics();
        entityStats = ItemsDAO.getInstance().getStats();
        cacheHitCount = cacheStats.getCacheHitCount();
        cacheMissCount = cacheStats.getCacheMissCount();
        cacheHitRatio = cacheHitCount / (cacheHitCount + cacheMissCount);
        sb.append("Items").append('\n');
        sb.append("     getLoadCount: ................ ").append(entityStats.getLoadCount()).append('\n');
        sb.append("     getInsertCount: .............. ").append(entityStats.getInsertCount()).append('\n');
        sb.append("     getUpdateCount: .............. ").append(entityStats.getUpdateCount()).append('\n');
        sb.append("     getDeleteCount: .............. ").append(entityStats.getDeleteCount()).append('\n');
        sb.append("Cache").append('\n');
        sb.append("     getPutCount: ................. ").append(cacheStats.getPutCount()).append('\n');
        sb.append("     getUpdateCount: .............. ").append(cacheStats.getUpdateCount()).append('\n');
        sb.append("     getRemovedCount: ............. ").append(cacheStats.getRemovedCount()).append('\n');
        sb.append("     getEvictedCount: ............. ").append(cacheStats.getEvictedCount()).append('\n');
        sb.append("     getExpiredCount: ............. ").append(cacheStats.getExpiredCount()).append('\n');
        sb.append("     getSize: ..................... ").append(cacheStats.getSize()).append('\n');
        sb.append("     getLocalHeapSize: ............. ").append(cacheStats.getLocalHeapSize()).append('\n');
        sb.append("     getLocalDiskSize: ............... ").append(cacheStats.getLocalDiskSize()).append('\n');
        sb.append("     cacheHitRatio: ............... ").append(String.format("%2.2f", cacheHitRatio)).append('\n');
        sb.append("=================================================\n");
        cache = MailDAO.getInstance().getCache();
        cacheStats = cache.getLiveCacheStatistics();
        entityStats = MailDAO.getInstance().getStats();
        cacheHitCount = cacheStats.getCacheHitCount();
        cacheMissCount = cacheStats.getCacheMissCount();
        cacheHitRatio = cacheHitCount / (cacheHitCount + cacheMissCount);
        sb.append("Mail").append('\n');
        sb.append("     getLoadCount: ................ ").append(entityStats.getLoadCount()).append('\n');
        sb.append("     getInsertCount: .............. ").append(entityStats.getInsertCount()).append('\n');
        sb.append("     getUpdateCount: .............. ").append(entityStats.getUpdateCount()).append('\n');
        sb.append("     getDeleteCount: .............. ").append(entityStats.getDeleteCount()).append('\n');
        sb.append("Cache").append('\n');
        sb.append("     getPutCount: ................. ").append(cacheStats.getPutCount()).append('\n');
        sb.append("     getUpdateCount: .............. ").append(cacheStats.getUpdateCount()).append('\n');
        sb.append("     getRemovedCount: ............. ").append(cacheStats.getRemovedCount()).append('\n');
        sb.append("     getEvictedCount: ............. ").append(cacheStats.getEvictedCount()).append('\n');
View Full Code Here


  public void onEvtDead(Creature killer)
  {
    final NpcInstance actor = getActor();
    super.onEvtDead(killer);
    actor.deleteMe();
    ThreadPoolManager.getInstance().schedule(new RunnableImpl()
    {
      @Override
      public void runImpl()
      {
        final NpcTemplate template = NpcHolder.getInstance().getTemplate(18602);
View Full Code Here

          getZone("[soi_hos_attack_attackup_5]").setActive(false);
          spawnRoom(6);
        }
      }
      else if(self.getNpcId() == Yehan)
        ThreadPoolManager.getInstance().schedule(new RunnableImpl(){
          @Override
          public void runImpl() throws Exception
          {
            spawnRoom(7);
            setReenterTime(System.currentTimeMillis());
View Full Code Here

   * @param time String
   * @param shutdownMode int
   */
  public void schedule(String time, int shutdownMode)
  {
    SchedulingPattern cronTime;
    try
    {
      cronTime = new SchedulingPattern(time);
    }
    catch (InvalidPatternException e)
    {
      return;
    }
    int seconds = (int) ((cronTime.next(System.currentTimeMillis()) / 1000L) - (System.currentTimeMillis() / 1000L));
    schedule(seconds, shutdownMode);
  }
View Full Code Here

  {
    _instance = this;
    _serverStarted = time();
    _listeners = new GameServerListenerList();
    new File("./log/").mkdir();
    version = new Version(GameServer.class);
    _log.info("=================================================");
    _log.info("Revision: ................ " + version.getRevisionNumber());
    _log.info("Build date: .............. " + version.getBuildDate());
    _log.info("Compiler version: ........ " + version.getBuildJdk());
    _log.info("=================================================");
View Full Code Here

    {
      synchronized (this)
      {
        if (_ai == null)
        {
          _ai = new ClonePlayerAI(this);
        }
      }
    }
    return (ClonePlayerAI) _ai;
  }
View Full Code Here

    }
    catch (Exception e)
    {
      _log.error("Unable to create ai of doorId " + _id, e);
    }
    return new DoorAI(door);
  }
View Full Code Here

   * Constructor for UserCommandHandler.
   */
  private UserCommandHandler()
  {
    registerUserCommandHandler(new ClanWarsList());
    registerUserCommandHandler(new ClanPenalty());
    registerUserCommandHandler(new CommandChannel());
    registerUserCommandHandler(new Escape());
    registerUserCommandHandler(new Loc());
    registerUserCommandHandler(new MyBirthday());
    registerUserCommandHandler(new OlympiadStat());
View Full Code Here

  /**
   * Constructor for UserCommandHandler.
   */
  private UserCommandHandler()
  {
    registerUserCommandHandler(new ClanWarsList());
    registerUserCommandHandler(new ClanPenalty());
    registerUserCommandHandler(new CommandChannel());
    registerUserCommandHandler(new Escape());
    registerUserCommandHandler(new Loc());
    registerUserCommandHandler(new MyBirthday());
View Full Code Here

   */
  private UserCommandHandler()
  {
    registerUserCommandHandler(new ClanWarsList());
    registerUserCommandHandler(new ClanPenalty());
    registerUserCommandHandler(new CommandChannel());
    registerUserCommandHandler(new Escape());
    registerUserCommandHandler(new Loc());
    registerUserCommandHandler(new MyBirthday());
    registerUserCommandHandler(new OlympiadStat());
    registerUserCommandHandler(new PartyInfo());
View Full Code Here

TOP

Related Classes of lineage2.commons.dao.JdbcEntityStats

Copyright © 2018 www.massapicom. 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.