GitHub user lei-xia opened a pull request:
https://github.com/apache/helix/pull/155
Features and improvements to Helix RoutingTableProvider.
This PR includes a few of features and improvements to existing Helix's
RoutingTableProvider interface and implements. There are:
1) Add to getResources() into RoutingTableProvider.
2) RoutingTableProvider to support direct aggregating routing information
from CurrentStates in each liveinstance. When sourceDataType is set as
CurrentState, RoutingTableProvider will listen on CurrentStateChanges and
refresh routing table from CurrentStates upon changes.
3) Add RoutingTableSnapshot class to hold a snapshot of routing table
information and provide API to return RoutingTableSnapshot from
RoutingTableProvider.
4) Support RoutingTableChangeListener in RoutingTableProvider, which will
be called when there is anything changed in the RoutingTable information.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/lei-xia/helix routingTableChanges
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/helix/pull/155.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #155
----
commit 03656dcc41dfb735e75b970171e9ea80cfe1c0da
Author: Lei Xia <lxia@...>
Date: 2018-02-08T23:52:01Z
Allow to get all resources from RoutingTableProvider class.
commit f908193355e132e149ad9525f7770a15b8bca513
Author: Lei Xia <lxia@...>
Date: 2018-03-20T22:04:30Z
Change RoutingTableProvider to support direct aggregating routing
information from CurrentStates in each liveinstance. When sourceDataType is set
as CurrentState, RoutingTableProvider will listen on CurrentStateChanges and
refresh routing table from CurrentStates upon changes.
commit d2288d61b32f36b08987d06007b2aead68fa1be4
Author: Lei Xia <lxia@...>
Date: 2018-02-17T07:05:49Z
Including version number in Participant and Controller history, and add
additional logs.
commit 8709e6015930a691b6a72acad207d68b7365bcc1
Author: Lei Xia <lxia@...>
Date: 2018-02-16T00:12:22Z
Add RoutingTableSnapshot class to hold a snapshot of routing table
information and provide API to return RoutingTableSnapshot from
RoutingTableProvider.
commit 85537299d46c2f96130671d93d9118bed4a5492f
Author: Junkai Xue <jxue@...>
Date: 2018-02-28T22:12:31Z
Support RoutingTableChangeListener in RoutingTableProvider. Add test for it.
----
---