[ 
https://issues.apache.org/jira/browse/GEODE-4541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16359101#comment-16359101
 ] 

Darrel Schneider commented on GEODE-4541:
-----------------------------------------

EventStateHelper has a static method named "dataSerialize" and it just needs to 
know the current member's InternalDistributedMember.

This could be passed in pretty easily by having the two messages that call it 
set their "sender" instance variable before calling putOutgoing. Note that the 
sender is not always set on the sender side because it is filled in 
automatically during deserialization of messages based on the connections 
handshake info. This prevents every message send from serializing the senderĀ 
InternalDistributedMember object.

> Remove singleton calls from regions product code in 
> org.apache.geode.internal.cache
> -----------------------------------------------------------------------------------
>
>                 Key: GEODE-4541
>                 URL: https://issues.apache.org/jira/browse/GEODE-4541
>             Project: Geode
>          Issue Type: Sub-task
>          Components: regions
>            Reporter: Kirk Lund
>            Priority: Major
>
> These regions product classes in org.apache.geode.internal.cache invoke 
> singleton getters.
> GemFireCacheImpl.getInstance():
> * CacheServerLauncher
> * EntryEventImpl
> * GemFireCacheImpl
> * DistributedPutAllOperation
> InternalDistributedSystem.getAnyInstance():
> * EventStateHelper
> * GemFireCacheImpl
> * PartitionAttributesImpl
> * PartitionedRegionHelper



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to