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());
}
Aggregations