Add void add(Service service) to ServiceDataSource
Why?
RangerHub aims to be a single place to discover nodes for all services. In cases when the list of services are not known prehand, like usage of smart clients or dynamically created clients. Having capability to register service dynamically is also useful for services which cannot be known upfront.
Generally Smart clients have there own configuration management block. Service owners would have to do some wiring to make sure they merge smart client's configuration blocks with other config blocks to create rangerHub Service DataSource.
By adding these hooks, smart clients can dynamically add there service descriptors to Datasource dynamically
What?
Add
void add(Service service)
to ServiceDataSourceWhy?
RangerHub aims to be a single place to discover nodes for all services. In cases when the list of services are not known prehand, like usage of smart clients or dynamically created clients. Having capability to register service dynamically is also useful for services which cannot be known upfront.
Generally Smart clients have there own configuration management block. Service owners would have to do some wiring to make sure they merge smart client's configuration blocks with other config blocks to create rangerHub Service DataSource. By adding these hooks, smart clients can dynamically add there service descriptors to Datasource dynamically
Addresses https://github.com/appform-io/ranger/issues/10