Beispiel #1
0
  public TaskMetricGroup(
      MetricRegistry registry,
      TaskManagerJobMetricGroup parent,
      @Nullable AbstractID vertexId,
      AbstractID executionId,
      @Nullable String taskName,
      int subtaskIndex,
      int attemptNumber) {
    super(
        registry,
        registry
            .getScopeFormats()
            .getTaskFormat()
            .formatScope(
                checkNotNull(parent),
                vertexId,
                checkNotNull(executionId),
                taskName,
                subtaskIndex,
                attemptNumber));

    this.parent = parent;
    this.executionId = executionId;
    this.vertexId = vertexId;
    this.taskName = taskName;
    this.subtaskIndex = subtaskIndex;
    this.attemptNumber = attemptNumber;

    this.ioMetrics = new IOMetricGroup(this);
  }
 public JobManagerMetricGroup(MetricRegistry registry, String hostname) {
   super(registry, registry.getScopeFormats().getJobManagerFormat().formatScope(hostname));
   this.hostname = hostname;
 }