Examples of Stats


Examples of ariba.util.core.PerformanceState.Stats

            }

            EventDetail ev = (EventDetail)_statsByType.get(type);
            if (ev == null) {
                // create a new EventDetail if one does not exist
                Stats stats = PerformanceState.getThisThreadHashtable();
                PerformanceCheck check = stats._performanceCheck;
                long[] levels = check == null ?
                    null : check.getThresholds(_name, type);
                long stackTraceThreshold = levels == null ? 0 : levels[1];
                ev = new EventDetail(type, stackTraceThreshold);
View Full Code Here

Examples of beans.Stats

                try {
                    JSONObject jsonObject = (JSONObject) new JSONParser().parse(data);
                    for (Object c : (JSONArray) jsonObject.get("objects")){
                        jsonObject = (JSONObject) c;
                        total_count = total_count + (long) jsonObject.get("count");
                        Stats stats = new Stats(Integer.parseInt((String)jsonObject.get("id")),(String) jsonObject.get("name"),(long) jsonObject.get("count"));
                        stats_array.add(stats);
                    }
                } catch (ParseException ex) {
                    Logger.getLogger(Login.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
       
        this.print.getjTextArea1().setText("************STATISTICS FOR MOVIES *******************" + "\n\n");
        //get percentage
        for (int i=0; i<stats_array.size();i++){
            Stats aux= (Statsstats_array.get(i);
            aux.setPercen(aux.getPercentage((float)100, aux.getCount(), total_count));
            this.print.getjTextArea1().setText(this.print.getjTextArea1().getText() + aux.getProduct_url() +" : " + aux.getPercen() + " % " +"\n");
        }
    }
View Full Code Here

Examples of com.browseengine.bobo.perf.BrowseThread.Stats

          for (int docid : docsToFetch) {

            long start = System.nanoTime();
            _idxReader.document(docid);
            long end = System.nanoTime();
            _collector.collect(new Stats((end - start), null));
          }
        } catch (Exception e) {
          e.printStackTrace();
          _collector.collect(new Stats(0L, e));
        }
        try {
          Thread.sleep(_throttleWait);
        } catch (InterruptedException e) {
          e.printStackTrace();
View Full Code Here

Examples of com.garbagemule.MobArena.leaderboards.Stats

            return;
        }
       
        String text = event.getLine(0).substring((4));
        Arena arena;
        Stats stat;
       
        if ((arena = am.getArenaWithName(text)) != null) {
            arena.getEventListener().onSignChange(event);
            setSignLines(event, ChatColor.GREEN + "MobArena", ChatColor.YELLOW + arena.arenaName(), ChatColor.AQUA + "Players", "---------------");
        }
        else if ((stat = Stats.getByShortName(text)) != null) {
            setSignLines(event, ChatColor.GREEN + "", "", ChatColor.AQUA + stat.getFullName(), "---------------");
            Messenger.tell(event.getPlayer(), "Stat sign created.");
        }
    }
View Full Code Here

Examples of com.google.appengine.api.memcache.Stats

    private final Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        MemcacheService memcacheService = MemcacheServiceFactory.getMemcacheService();
        Stats stats = memcacheService.getStatistics();
        long itemCount = stats.getItemCount();
        logger.info("Clearing memcache, item count in cache: {}", itemCount);
        memcacheService.clearAll();
        resp.getWriter().write("OK, " + itemCount);
    }
View Full Code Here

Examples of com.google.javascript.jscomp.PerformanceTracker.Stats

    assertEquals(tracker.getLoopRuns(), 3);
    assertEquals(tracker.getChanges(), 4); /* reportChange was called 4 times */
    assertEquals(tracker.getLoopChanges(), 1);

    ImmutableMap<String, Stats> stats = tracker.getStats();
    Stats st = stats.get("noloopA");
    assertEquals(st.runs, 1);
    assertEquals(st.runtime, passRuntime);
    assertEquals(st.changes, 1);

    st = stats.get("noloopB");
View Full Code Here

Examples of com.hazelcast.ascii.memcache.Stats

        return data.getBuffer();
    }

    @Override
    public Stats getStats() {
        Stats stats = new Stats();
        stats.setUptime((int) ((Clock.currentTimeMillis() - startTime) / MILLIS_TO_SECONDS));
        stats.setCmdGet(getMisses.get() + getHits.get());
        stats.setCmdSet(sets.get());
        stats.setCmdTouch(touches.get());
        stats.setGetHits(getHits.get());
        stats.setGetMisses(getMisses.get());
        stats.setDeleteHits(deleteHits.get());
        stats.setDeleteMisses(deleteMisses.get());
        stats.setIncrHits(incrementHits.get());
        stats.setIncrMisses(incrementMisses.get());
        stats.setDecrHits(decrementHits.get());
        stats.setDecrMisses(decrementMisses.get());
        stats.setCurrConnections(node.connectionManager.getCurrentClientConnections());
        stats.setTotalConnections(node.connectionManager.getAllTextConnections());
        return stats;
    }
View Full Code Here

Examples of com.l2jfrozen.gameserver.skills.Stats

    double attack = _activeChar.getTemplate().baseMAtk * bonusAtk;

    // Get the skill type to calculate its effect in function of base stats
    // of the L2Character target
    Stats stat = skill == null ? null : skill.getStat();

    if(stat != null)
    {
      switch(stat)
      {
View Full Code Here

Examples of com.linkedin.d2.discovery.util.Stats

  private final Stats                 _putStats;
  private final Stats                 _removeStats;

  public FileStore(String path, String extension, PropertySerializer<T> serializer)
  {
    _getStats = new Stats(60000);
    _putStats = new Stats(60000);
    _removeStats = new Stats(60000);
    _path = path;
    _extension = extension;
    _serializer = serializer;

    File file = new File(_path);
View Full Code Here

Examples of com.s3auth.hosts.Stats

                public String syslog() {
                    return "localhost:12345";
                }
            },
            new UriInfoMocker().mock(),
            new Stats() {
                @Override
                public long bytesTransferred() {
                    //@checkstyle MagicNumber (1 line)
                    return 42L;
                }
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.