Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GEODE-7361: sever ties to PoolStatHelper & CoreLoggingExecutors #4238

Merged
merged 1 commit into from Oct 29, 2019

Conversation

Bill
Copy link
Contributor

@Bill Bill commented Oct 28, 2019

GEODE-7361

As part of the effort to sever dependencies on geode-core in geode-membership we are severing ties on geode-core in TcpServer. This PR eliminates two such dependencies on geode-core in TcpServer:

  • PoolStatsHelper
  • CoreLoggingExecutors

Formerly, the TcpServer constructor took a PoolStatHelper poolHelper parameter. TcpServer retained that parameter. It then constructed a new ExecutorService via CoreLoggingExecutors.newThreadPoolWithSynchronousFeed(). In the TcpServer.restarting() method it also had to create an ExecutorService the same way.

This PR changes the TcpServer constructor to take a Supplier<ExecutorService>. That supplier hides both the PoolStatHelper class and the CoreLoggingExecutors class (from TcpServer).

For all changes:

  • Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

  • Has your PR been rebased against the latest commit within the target branch (typically develop)?

  • Is your initial contribution a single, squashed commit?

  • Does gradlew build run cleanly?

  • Have you written or updated unit tests to verify your changes?

  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:

Please ensure that once the PR is submitted, check Concourse for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to dev@geode.apache.org.

@Bill Bill marked this pull request as ready for review October 29, 2019 23:16
@Bill Bill merged commit 7868cb6 into apache:develop Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants