Introduction of a ServiceDataSource in AbstractRangerHubClient, instead of the Collection, this enables users to bind their own service data source where they can define the Set of services to be polled. This will also help not fetch the entire data source when service list is empty
This also includes an introduction of AbstractRangerHttpHubClient, from which Sharded and Unsharded Http clients are extended, instead of directly extending from AbstractRangerHuBClient, the httpHubClient holds on to the common methods like the getDefaultDataSource, like the AbstractRangerZkHubClient.
This is a PR addressing, https://github.com/appform-io/ranger/issues/9
This has the following changes.
Introduction of a ServiceDataSource in AbstractRangerHubClient, instead of the Collection, this enables users to bind their own service data source where they can define the Set of services to be polled. This will also help not fetch the entire data source when service list is empty
This also includes an introduction of AbstractRangerHttpHubClient, from which Sharded and Unsharded Http clients are extended, instead of directly extending from AbstractRangerHuBClient, the httpHubClient holds on to the common methods like the getDefaultDataSource, like the AbstractRangerZkHubClient.
Added tests for the above two.