Search in sources :

Example 1 with InputGateWithMetrics

use of org.apache.flink.runtime.taskmanager.InputGateWithMetrics in project flink by apache.

the class StreamNetworkBenchmarkEnvironment method createInputGateWithMetrics.

private IndexedInputGate createInputGateWithMetrics(SingleInputGateFactory gateFactory, InputGateDeploymentDescriptor gateDescriptor, int gateIndex) {
    final TaskMetricGroup taskMetricGroup = UnregisteredMetricGroups.createUnregisteredTaskMetricGroup();
    final SingleInputGate singleGate = gateFactory.create(receiverEnv.createShuffleIOOwnerContext("receiving task[" + gateIndex + "]", taskMetricGroup.executionId(), taskMetricGroup), gateIndex, gateDescriptor, SingleInputGateBuilder.NO_OP_PRODUCER_CHECKER);
    return new InputGateWithMetrics(singleGate, new SimpleCounter());
}
Also used : InputGateWithMetrics(org.apache.flink.runtime.taskmanager.InputGateWithMetrics) SimpleCounter(org.apache.flink.metrics.SimpleCounter) TaskMetricGroup(org.apache.flink.runtime.metrics.groups.TaskMetricGroup) SingleInputGate(org.apache.flink.runtime.io.network.partition.consumer.SingleInputGate)

Aggregations

SimpleCounter (org.apache.flink.metrics.SimpleCounter)1 SingleInputGate (org.apache.flink.runtime.io.network.partition.consumer.SingleInputGate)1 TaskMetricGroup (org.apache.flink.runtime.metrics.groups.TaskMetricGroup)1 InputGateWithMetrics (org.apache.flink.runtime.taskmanager.InputGateWithMetrics)1