Skip to content

Commit

Permalink
Deprecate DiscoveryPlugin#getDiscoveryTypes (#38410)
Browse files Browse the repository at this point in the history
Marks `DiscoveryPlugin#getDiscoveryTypes` as deprecated since we intend to
remove the ability for plugins to provide their own discovery type in a future
version.

Relates #38414
  • Loading branch information
DaveCTurner committed Feb 5, 2019
1 parent 766f7b5 commit 65b0493
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ public interface DiscoveryPlugin {
* @param clusterApplier Use to locally apply cluster state updates
* @param clusterSettings Use to get cluster settings
* @param hostsProvider Use to find configured hosts which should be pinged for initial discovery
*
* @deprecated Future versions will not support pluggable discovery implementations.
*/
@Deprecated
default Map<String, Supplier<Discovery>> getDiscoveryTypes(ThreadPool threadPool, TransportService transportService,
NamedWriteableRegistry namedWriteableRegistry,
MasterService masterService,
Expand Down

0 comments on commit 65b0493

Please sign in to comment.