Examples of addNormalValue()


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

      if (metaBlocks >= 0) sample.addIntValue(LOGKEYS.MetaBlocks.name(),
          metaBlocks);
      if (metaBytes >=0) sample.addIntValue(LOGKEYS.MetaBytes.name(), metaBytes);
      if (savingBytes >=0) sample.addIntValue(LOGKEYS.SavingBytes.name(),
          savingBytes);
      sample.addNormalValue(LOGKEYS.Path.name(), srcPath.toString());
      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()

          metaBlocks);
      if (metaBytes >=0) sample.addIntValue(LOGKEYS.MetaBytes.name(), metaBytes);
      if (savingBytes >=0) sample.addIntValue(LOGKEYS.SavingBytes.name(),
          savingBytes);
      sample.addNormalValue(LOGKEYS.Path.name(), srcPath.toString());
      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()

      if (metaBytes >=0) sample.addIntValue(LOGKEYS.MetaBytes.name(), metaBytes);
      if (savingBytes >=0) sample.addIntValue(LOGKEYS.SavingBytes.name(),
          savingBytes);
      sample.addNormalValue(LOGKEYS.Path.name(), srcPath.toString());
      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));
      }
      ENCODER_METRICS_LOG.info(sample.toJSON());
View Full Code Here

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

          savingBytes);
      sample.addNormalValue(LOGKEYS.Path.name(), srcPath.toString());
      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));
      }
      ENCODER_METRICS_LOG.info(sample.toJSON());
    } catch(Exception e) {
      LOG.warn("Exception when logging the Raid metrics: " + e.getMessage(),
View Full Code Here

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

      Throwable ex, Progressable context) {
    LOGTYPES type = LOGTYPES.TOOL_FILECHECK;
    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);
      sample.addNormalValue(LOGKEYS.Path.name(), srcPath.toString());
      sample.addNormalValue(LOGKEYS.Type.name(), type.name());
      sample.addNormalValue(LOGKEYS.Cluster.name(), fs.getUri().getAuthority());
      sample.addIntValue(LOGKEYS.Offset.name(), offset);
View Full Code Here

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

    LOGTYPES type = LOGTYPES.TOOL_FILECHECK;
    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);
      sample.addNormalValue(LOGKEYS.Path.name(), srcPath.toString());
      sample.addNormalValue(LOGKEYS.Type.name(), type.name());
      sample.addNormalValue(LOGKEYS.Cluster.name(), fs.getUri().getAuthority());
      sample.addIntValue(LOGKEYS.Offset.name(), offset);
      sample.addIntValue(LOGKEYS.Limit.name(), limit);
View Full Code Here

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

    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);
      sample.addNormalValue(LOGKEYS.Path.name(), srcPath.toString());
      sample.addNormalValue(LOGKEYS.Type.name(), type.name());
      sample.addNormalValue(LOGKEYS.Cluster.name(), fs.getUri().getAuthority());
      sample.addIntValue(LOGKEYS.Offset.name(), offset);
      sample.addIntValue(LOGKEYS.Limit.name(), limit);
      if (ex != null) {
View Full Code Here

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

      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);
      sample.addNormalValue(LOGKEYS.Path.name(), srcPath.toString());
      sample.addNormalValue(LOGKEYS.Type.name(), type.name());
      sample.addNormalValue(LOGKEYS.Cluster.name(), fs.getUri().getAuthority());
      sample.addIntValue(LOGKEYS.Offset.name(), offset);
      sample.addIntValue(LOGKEYS.Limit.name(), limit);
      if (ex != null) {
        sample.addNormalValue(LOGKEYS.Error.name(),
View Full Code Here

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

      LogSample sample = new LogSample();
      sample.addNormalValue(LOGKEYS.Result.name(), result.name());
      sample.addNormalValue(LOGKEYS.Code.name(), codec.id);
      sample.addNormalValue(LOGKEYS.Path.name(), srcPath.toString());
      sample.addNormalValue(LOGKEYS.Type.name(), type.name());
      sample.addNormalValue(LOGKEYS.Cluster.name(), fs.getUri().getAuthority());
      sample.addIntValue(LOGKEYS.Offset.name(), offset);
      sample.addIntValue(LOGKEYS.Limit.name(), limit);
      if (ex != null) {
        sample.addNormalValue(LOGKEYS.Error.name(),
            StringUtils.stringifyException(ex));
View Full Code Here

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

      sample.addNormalValue(LOGKEYS.Type.name(), type.name());
      sample.addNormalValue(LOGKEYS.Cluster.name(), fs.getUri().getAuthority());
      sample.addIntValue(LOGKEYS.Offset.name(), offset);
      sample.addIntValue(LOGKEYS.Limit.name(), limit);
      if (ex != null) {
        sample.addNormalValue(LOGKEYS.Error.name(),
            StringUtils.stringifyException(ex));
      }
      new Throwable().printStackTrace();
      FILECHECK_METRICS_LOG.info(sample.toJSON());
    } catch(Exception e) {
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.