Package com.yammer.metrics.core

Examples of com.yammer.metrics.core.Histogram.update()


              RESPONSE_LOG
                  .info(requestId + "\t" + connectionString + "\tSUCCESS\t" + name + "\t" + ms + "\t" + argsStr);
            }
          }
          Histogram histogram = histogramMap.get(name);
          histogram.update((end - start) / 1000);
        }
      }

      private String getArgsStr(Object[] args, String name, LoggerArgsState loggerArgsState) {
        String argsStr;
View Full Code Here


            } else {
              RESPONSE_LOG.info(getSuccessfulResponseLogMessage(requestId, connectionString, argsStr, name, ms, user));
            }
          }
          Histogram histogram = histogramMap.get(name);
          histogram.update((end - start) / 1000);
          if (loggerArgsState != null) {
            loggerArgsState.reset();
          }
        }
      }
View Full Code Here

  public void doRequest(ServerData<I, V, E, M> serverData) {
    ConcurrentHashMap<I, VertexMutations<I, V, E, M>> vertexMutations =
      serverData.getVertexMutations();
    Histogram verticesInMutationHist = GiraphMetrics.get().perSuperstep()
        .getUniformHistogram(MetricNames.VERTICES_IN_MUTATION_REQUEST);
    verticesInMutationHist.update(vertexMutations.size());
    for (Entry<I, VertexMutations<I, V, E, M>> entry :
        vertexIdMutations.entrySet()) {
      VertexMutations<I, V, E, M> mutations =
          vertexMutations.get(entry.getKey());
      if (mutations == null) {
View Full Code Here

                nextBlockPosition = 0;
            }
            // parse the next block
            int countIDs = input.readShort();
            chunks += countIDs;
            chunksPerBlock.update(countIDs);
            ArrayList<Integer> streamList = new ArrayList<>(50);
            for (int i = 0; i < countIDs; i++) {
                int streamID = input.readInt();
                streamList.add(streamID);
            }
View Full Code Here

    Constructor<?> ctor =
      Histogram.class.getDeclaredConstructor(com.yammer.metrics.stats.Sample.class);
    ctor.setAccessible(true);
    Histogram histogram = (Histogram)ctor.newInstance(new UniformSample(1024 * 500));
    for (int i = 0; i < 100; i++) {
      histogram.update(rrt.getValueLength(null));
    }
    double stddev = histogram.stdDev();
    assertTrue(stddev != 0 && stddev != 1.0);
    assertTrue(histogram.stdDev() != 0);
    Snapshot snapshot = histogram.getSnapshot();
View Full Code Here

                nextBlockPosition = 0;
            }
            // parse the next block
            int countIDs = input.readShort();
            chunks += countIDs;
            chunksPerBlock.update(countIDs);
            ArrayList<Integer> streamList = new ArrayList<>(50);
            for (int i = 0; i < countIDs; i++) {
                int streamID = input.readInt();
                streamList.add(streamID);
            }
View Full Code Here

  public void doRequest(ServerData<I, V, E> serverData) {
    ConcurrentHashMap<I, VertexMutations<I, V, E>> vertexMutations =
      serverData.getVertexMutations();
    Histogram verticesInMutationHist = GiraphMetrics.get().perSuperstep()
        .getUniformHistogram(MetricNames.VERTICES_IN_MUTATION_REQUEST);
    verticesInMutationHist.update(vertexMutations.size());
    for (Entry<I, VertexMutations<I, V, E>> entry :
        vertexIdMutations.entrySet()) {
      VertexMutations<I, V, E> mutations =
          vertexMutations.get(entry.getKey());
      if (mutations == null) {
View Full Code Here

                nextBlockPosition = 0;
            }
            // parse the next block
            int countIDs = input.readShort();
            chunks += countIDs;
            chunksPerBlock.update(countIDs);
            ArrayList<Integer> streamList = new ArrayList<>(50);
            for (int i = 0; i < countIDs; i++) {
                int streamID = input.readInt();
                streamList.add(streamID);
            }
View Full Code Here

            }
            // parse the next block
            long currentBlock = blocks++;
            int countIDs = input.readShort();
            chunks += countIDs;
            chunksPerBlock.update(countIDs);
            ArrayList<Integer> streamList = new ArrayList<>(50);
            for (int i = 0; i < countIDs; i++) {
                int streamID = input.readInt();
                streamList.add(streamID);
            }
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.