forked from apache/geode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GEODE-7704: Replacing inheritance of MemberIdentifierImpl with delaga…
…tion (apache#4636) * Deduplicate fields betweeen MemberIdentifierImpl and GMSMemberData Moving all state down into GMSMemberData and removing duplicate fields isPartial and versionObject. GMSMemberData now has all of the state of a member. * Delegate rather than inherit InternalDistributedMember Delegating to MemberIdentifierImpl, rather than inheriting from it. * Delegate to MemberIdentifier, rather than MemberIdentifierImpl Having InternalDistributedMember delegate to MemberIdentifier, rather than MemberIdentifierImpl, so that we are not relying on the concrete class and all required methods are part of the interface. As a result, adding a number of additional methods to the MemberIdentifier interface. * Removing uses of getMemberData Removing uses of getMemberData and adding methods to MemberIdentifier that delegate to memberData. * Hiding MemberIdentiferImpl Using MemberIdentifier everywhere insteand of MemberIdentiferImpl. Still need to move MemberIdentiferImpl to an internal package. * Making PMD happy Marking the MemberIdentifierFactory as immutable. * Fixing NPE in getGroups The MemberIdentifierImpl.getGroups needs to check for a null array. Places that used to call getMemberData.getGroups were throwing an NPE. * Fixing a test that used MemberIdentifierFactoryImpl This factory is not going to play well with other parts of the test that are generating InternalDistributedMembers. * Fixing AnalyzeSerializablesJUnitTest InternalDistributedMember now has new serialization methods that delegate to the methods that it previously was just inheriting. * Fixing a unit test failure due to mocking MemberData InternalDistributedMemberTest was mocking the underlying MemberData and changing state on the InternalDistributedMember. Now that all state is delegated to the MemberData, this test was failing because the mock was not reflecting the state changes. Co-authored-by: Ernie Burghardt <[email protected]>
- Loading branch information
1 parent
e1467e5
commit 40d6b47
Showing
31 changed files
with
775 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.