Package jp.freeex.us.fourtypes.shared

Examples of jp.freeex.us.fourtypes.shared.Results


   */
  @Override
  public void execute() {
    long elapse = System.currentTimeMillis();
    log.info("[ResultsCronService#execute()] start");
    Results results = StatisticsManager.getInstance().getResults();
    if(results==null||results.size()<=0){
      log.info("[ResultsCronService#execute()] no-results/end: " +
          (System.currentTimeMillis() - elapse) + "mSec.");
      return;
    }
    List<Result> resultList = results.getResultList();
    PersistenceManagerFactory pmf = PMF.get();
    PersistenceManager pm = null;
    try{
      pm = pmf.getPersistenceManager();
      Transaction tx = pm.currentTransaction();
View Full Code Here


    props.put("name", C_NAME);
    try{
      CacheFactory cFac = cMan.getCacheFactory();
      Cache cache = cFac.createCache(props);
      cMan.registerCache(C_NAME, cache);
      cache.put(C_KEY_RESULTS, new Results());
      cache.put(C_KEY_SUMMARY, retrieveSummary());
    }catch(CacheException e){
     
    }
  }
View Full Code Here

    log.info("[StatisticsManager#setResult()] count up summary: " +
        summary.toString());
    cache.put(C_KEY_SUMMARY, summary);

    // 結果キャッシュを更新
    Results results =
        (Results) cache.get(C_KEY_RESULTS);
    log.info("[StatisticsManager#setResult()] got results from cache: " +
        results);
    if(results == null){
      results = new Results();
      log.info("[StatisticsManager#setResult()] results(cache) is null " +
          "/create new result: " + results.toString());
    }
    results.add(x, y, evaluatedAt);
    log.info("[StatisticsManager#setResult()] count up results: " +
        results.toString());
    cache.put(C_KEY_RESULTS, results);
    log.info("[StatisticsManager#setResult()] update result cache:" +
        results.toString());
    log.info("[StatisticsManager#setResult()] end" +
        (System.currentTimeMillis() - elapse) + "mSec.");
  }
View Full Code Here

    long elapse = System.currentTimeMillis();
    log.info("[StatisticsManager#getResults()] start");
    // キャッシュ上のすべての結果をリストへ移動
    Cache cache =
        CacheManager.getInstance().getCache(C_NAME);
    Results results =
          (Results) cache.get(C_KEY_RESULTS);
    if(results==null){
      results = new Results();
    }
    log.info("[StatisticsManager#getResults()] end: " +
        (System.currentTimeMillis() - elapse) + "mSec.");
    return results;
   
View Full Code Here

    long elapse = System.currentTimeMillis();
    log.info("[StatisticsManager#clearResults()] start");
    // キャッシュ上のすべての結果をリストへ移動
    Cache cache =
        CacheManager.getInstance().getCache(C_NAME);
    cache.put(C_KEY_RESULTS, new Results());
    log.info("[StatisticsManager#clearResults()] end: " +
        (System.currentTimeMillis() - elapse) + "mSec.");
  }
View Full Code Here

TOP

Related Classes of jp.freeex.us.fourtypes.shared.Results

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.