Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-2860

refactor EventTracker to be on DistributedRegion instead of LocalRegion

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • regions

    Description

      Currently LocalRegion has a non-final field named "eventTracker". It is initialized in a method named createEventTracker which does nothing on LocalRegion but is implemented on DistributedRegion and BucketRegion to initialize the eventTracker field.

      I think things would be clearer if this field was moved to DistributedRegion.
      All the code on LocalRegion that currently tests for a non-null eventTracker can be changed to do nothing and overridden on DistributedRegion to use its eventTracker. DistributedRegion can make this field final and always set it in its constructor. Since BucketRegion extends DistributedRegion it does not to do anything (it currently implements createEventTracker but that was not needed since it inherits the same impl from DistributedRegion).

      Attachments

        Issue Links

          Activity

            People

              nreich Nick Reich
              dschneider Darrel Schneider
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: