Examples of addNormalValue()


Examples of org.apache.hadoop.log.LogSample.addNormalValue()

      Throwable ex, Context context, long recoveryTime) {
    try {
      incrLogMetricCounter(context, fs, type, result,
          codec == null? null: codec.id);
      LogSample sample = new LogSample();
      sample.addNormalValue(LOGKEYS.Result.name(), result.name());
      sample.addIntValue(LOGKEYS.ConstructedBytes.name(), bytes);
      if (null != codec) {
        sample.addNormalValue(LOGKEYS.Code.name(), codec.id);
      } else {
        sample.addNormalValue(LOGKEYS.Code.name(), "unknown");
View Full Code Here

Examples of org.apache.hadoop.log.LogSample.addNormalValue()

          codec == null? null: codec.id);
      LogSample sample = new LogSample();
      sample.addNormalValue(LOGKEYS.Result.name(), result.name());
      sample.addIntValue(LOGKEYS.ConstructedBytes.name(), bytes);
      if (null != codec) {
        sample.addNormalValue(LOGKEYS.Code.name(), codec.id);
      } else {
        sample.addNormalValue(LOGKEYS.Code.name(), "unknown");
      }
      if (delay >= 0) sample.addIntValue(LOGKEYS.Delay.name(), delay);
      if (decodingTime >= 0) sample.addIntValue(LOGKEYS.DecodingTime.name(),
View Full Code Here

Examples of org.apache.hadoop.log.LogSample.addNormalValue()

      sample.addNormalValue(LOGKEYS.Result.name(), result.name());
      sample.addIntValue(LOGKEYS.ConstructedBytes.name(), bytes);
      if (null != codec) {
        sample.addNormalValue(LOGKEYS.Code.name(), codec.id);
      } else {
        sample.addNormalValue(LOGKEYS.Code.name(), "unknown");
      }
      if (delay >= 0) sample.addIntValue(LOGKEYS.Delay.name(), delay);
      if (decodingTime >= 0) sample.addIntValue(LOGKEYS.DecodingTime.name(),
          decodingTime);
      if (numMissingBlocks >= 0)
View Full Code Here

Examples of org.apache.hadoop.log.LogSample.addNormalValue()

      }
      if (delay >= 0) sample.addIntValue(LOGKEYS.Delay.name(), delay);
      if (decodingTime >= 0) sample.addIntValue(LOGKEYS.DecodingTime.name(),
          decodingTime);
      if (numMissingBlocks >= 0)
        sample.addNormalValue(LOGKEYS.MissingBlocks.name(),
            Integer.toString(numMissingBlocks));
      if (numReadBytes >= 0) sample.addIntValue(LOGKEYS.ReadBytes.name(),
          numReadBytes);
      if (numReadRemoteRackBytes >= 0)
        sample.addIntValue(LOGKEYS.RemoteRackReadBytes.name(),
View Full Code Here

Examples of org.apache.hadoop.log.LogSample.addNormalValue()

        sample.addIntValue(LOGKEYS.RemoteRackReadBytes.name(),
            numReadRemoteRackBytes);
      if (recoveryTime > 0) {
        sample.addIntValue(LOGKEYS.RecoveryTime.name(), recoveryTime);
      }
      sample.addNormalValue(LOGKEYS.Path.name(), srcFile.toString());
      sample.addIntValue(LOGKEYS.Offset.name(), errorOffset);
      sample.addNormalValue(LOGKEYS.Type.name(), type.name());
      sample.addNormalValue(LOGKEYS.Cluster.name(), fs.getUri().getAuthority());
      if (ex != null) {
        sample.addNormalValue(LOGKEYS.Error.name(),
View Full Code Here

Examples of org.apache.hadoop.log.LogSample.addNormalValue()

      if (recoveryTime > 0) {
        sample.addIntValue(LOGKEYS.RecoveryTime.name(), recoveryTime);
      }
      sample.addNormalValue(LOGKEYS.Path.name(), srcFile.toString());
      sample.addIntValue(LOGKEYS.Offset.name(), errorOffset);
      sample.addNormalValue(LOGKEYS.Type.name(), type.name());
      sample.addNormalValue(LOGKEYS.Cluster.name(), fs.getUri().getAuthority());
      if (ex != null) {
        sample.addNormalValue(LOGKEYS.Error.name(),
            StringUtils.stringifyException(ex));
      }
View Full Code Here

Examples of org.apache.hadoop.log.LogSample.addNormalValue()

        sample.addIntValue(LOGKEYS.RecoveryTime.name(), recoveryTime);
      }
      sample.addNormalValue(LOGKEYS.Path.name(), srcFile.toString());
      sample.addIntValue(LOGKEYS.Offset.name(), errorOffset);
      sample.addNormalValue(LOGKEYS.Type.name(), type.name());
      sample.addNormalValue(LOGKEYS.Cluster.name(), fs.getUri().getAuthority());
      if (ex != null) {
        sample.addNormalValue(LOGKEYS.Error.name(),
            StringUtils.stringifyException(ex));
      }
      DECODER_METRICS_LOG.info(sample.toJSON());
View Full Code Here

Examples of org.apache.hadoop.log.LogSample.addNormalValue()

      sample.addNormalValue(LOGKEYS.Path.name(), srcFile.toString());
      sample.addIntValue(LOGKEYS.Offset.name(), errorOffset);
      sample.addNormalValue(LOGKEYS.Type.name(), type.name());
      sample.addNormalValue(LOGKEYS.Cluster.name(), fs.getUri().getAuthority());
      if (ex != null) {
        sample.addNormalValue(LOGKEYS.Error.name(),
            StringUtils.stringifyException(ex));
      }
      DECODER_METRICS_LOG.info(sample.toJSON());

    } catch(Exception e) {
View Full Code Here

Examples of org.apache.hadoop.log.LogSample.addNormalValue()

      long savingBytes, Path srcPath, LOGTYPES type,
      FileSystem fs, Throwable ex, Progressable context) {
    try {
      incrLogMetricCounter(context, fs, type, result, codec.id);
      LogSample sample = new LogSample();
      sample.addNormalValue(LOGKEYS.Result.name(), result.name());
      sample.addNormalValue(LOGKEYS.Code.name(), codec.id);
      if (delay >= 0) sample.addIntValue(LOGKEYS.Delay.name(), delay);
      if (numReadBytes >= 0) sample.addIntValue(LOGKEYS.ReadBytes.name(),
          numReadBytes);
      if (numReadBlocks >= 0) sample.addIntValue(LOGKEYS.ReadBlocks.name(),
View Full Code Here

Examples of org.apache.hadoop.log.LogSample.addNormalValue()

      FileSystem fs, Throwable ex, Progressable context) {
    try {
      incrLogMetricCounter(context, fs, type, result, codec.id);
      LogSample sample = new LogSample();
      sample.addNormalValue(LOGKEYS.Result.name(), result.name());
      sample.addNormalValue(LOGKEYS.Code.name(), codec.id);
      if (delay >= 0) sample.addIntValue(LOGKEYS.Delay.name(), delay);
      if (numReadBytes >= 0) sample.addIntValue(LOGKEYS.ReadBytes.name(),
          numReadBytes);
      if (numReadBlocks >= 0) sample.addIntValue(LOGKEYS.ReadBlocks.name(),
          numReadBlocks);
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.