zhijiang created FLINK-12067: -------------------------------- Summary: Refactor the constructor of NetworkEnvironment Key: FLINK-12067 URL: https://issues.apache.org/jira/browse/FLINK-12067 Project: Flink Issue Type: Sub-task Components: Runtime / Network Reporter: zhijiang Assignee: zhijiang
The constructor of {{NetworkEnvironment}} could be refactored to only contain {{NetworkEnvironmentConfiguration}}, the other related components such as {{TaskEventDispatcher}}, {{ResultPartitionManager}}, {{NetworkBufferPool}} could be created internally. We also refactor the process of generating {{NetworkEnvironmentConfiguration}} in {{TaskManagerServiceConfiguration}} to add {{numNetworkBuffers}} instead of previous {{networkBufFraction}}, {{networkBufMin}}, {{networkBufMax}}. Further we introduce the {{NetworkEnvironmentConfigurationBuilder}} for creating {{NetworkEnvironmentConfiguration}} easily especially for tests. -- This message was sent by Atlassian JIRA (v7.6.3#76005)