Examples of addData()


Examples of ca.carleton.gcrc.couch.onUpload.conversion.ExifDataDescriptor.addData()

      for(String key : exifData.getKeys()){
        String value = exifData.getRawData(key);
        if( null != value ){
          value = value.trim();
          if( false == "".equals(value) ){
            exifDescriptor.addData(key, value);
          }
        }
      }
     
      // Create geometry if one is present in the EXIF
View Full Code Here

Examples of com.amazonaws.services.kinesis.metrics.interfaces.IMetricsScope.addData()

       
        if (shardId != null) {
            scope.addDimension("ShardId", shardId);
        }

        scope.addData(realPrefix + MetricsHelper.SUCCESS, success ? 1 : 0, StandardUnit.Count);
        scope.addData(realPrefix + MetricsHelper.TIME,
                System.currentTimeMillis() - startTimeMillis,
                StandardUnit.Milliseconds);
    }
View Full Code Here

Examples of com.arjuna.mwlabs.testframework.utils.PerformanceLogger.addData()

                else
                    thisTime = recoverableTest(iters);

                logInformation("Number of Iterations:"+ iters +", Time Taken:" +thisTime);

                logger.addData( iters, (double)((double)iters/((double)thisTime/1000)) );
            }

            try
            {
                logger.output(System.out);
View Full Code Here

Examples of com.dianping.cat.message.Event.addData()

  @Test
  public void sendEvent() throws Exception {
    for (int i = 0; i < 100; i++) {
      Event t = Cat.getProducer().newEvent("Test", "Test");

      t.addData("key and value");
      t.complete();
    }
    Thread.sleep(1000);
  }
View Full Code Here

Examples of com.dianping.cat.message.Heartbeat.addData()

  @Override
  public void logHeartbeat(String type, String name, String status, String nameValuePairs) {
    Heartbeat heartbeat = newHeartbeat(type, name);

    heartbeat.addData(nameValuePairs);
    heartbeat.setStatus(status);
    heartbeat.complete();
  }

  @Override
View Full Code Here

Examples of com.dianping.cat.message.Metric.addData()

  public void logMetric(String name, String status, String nameValuePairs) {
    String type = "";
    Metric metric = newMetric(type, name);

    if (nameValuePairs != null && nameValuePairs.length() > 0) {
      metric.addData(nameValuePairs);
    }

    metric.setStatus(status);
    metric.complete();
  }
View Full Code Here

Examples of com.dianping.cat.message.Trace.addData()

        Cat.logTrace("Trace", "Info");
        Cat.logTrace("Trace", "Dubug", Trace.SUCCESS, "sss");
        Trace trace = Cat.newTrace("Trace", "Error");

        trace.setStatus(Trace.SUCCESS);
        trace.addData("errorTrace");
        t.setStatus("Fail");
      } catch (Exception e) {
        t.setStatus(Transaction.SUCCESS);
        Cat.logError(e);
        throw e;
View Full Code Here

Examples of com.dianping.cat.message.Transaction.addData()

      String ip = NetworkInterfaceManager.INSTANCE.getLocalHostAddress();
      Transaction root = cat.newTransaction("System", "Dump-" + ip);

      Collections.sort(paths);

      root.addData("files", paths);
      root.setStatus(Message.SUCCESS);

      for (int i = 0; i < len; i++) {
        String path = paths.get(i);
        Transaction t = cat.newTransaction("System", "UploadDump");
View Full Code Here

Examples of com.dianping.cat.message.internal.DefaultEvent.addData()

    DefaultEvent event = new DefaultEvent(type, name);

    m_current.addChild(event);

    if (nameValuePairs != null && nameValuePairs.length() > 0) {
      event.addData(nameValuePairs);
    }
    event.setStatus(status);
    event.complete();
  }
View Full Code Here

Examples of com.dianping.cat.message.internal.DefaultHeartbeat.addData()

  private Heartbeat newHeartbeat(String type, String name, long timestamp, String status, String data) {
    DefaultHeartbeat heartbeat = new DefaultHeartbeat(type, name);

    heartbeat.setStatus(status);
    heartbeat.addData(data);
    heartbeat.setTimestamp(timestamp);
    return heartbeat;
  }

  private MessageTree newMessageTree() {
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.