Package com.linkedin.venice.router.api
Class VeniceHostFinder
- java.lang.Object
-
- com.linkedin.venice.router.api.VeniceHostFinder
-
- All Implemented Interfaces:
HostFinder<Instance,VeniceRole>
public class VeniceHostFinder extends java.lang.Object implements HostFinder<Instance,VeniceRole>
{code VeniceHostFinder} finds a set of hosts that can serve the given Venice resource partition.
-
-
Constructor Summary
Constructors Constructor Description VeniceHostFinder(OnlineInstanceFinder onlineInstanceFinder, RouterStats<AggRouterHttpRequestStats> routerStats, HostHealthMonitor<Instance> instanceHealthMonitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Instance>
findHosts(java.lang.String requestMethod, java.lang.String resourceName, java.lang.String storeName, int partitionNumber, HostHealthMonitor<Instance> hostHealthMonitor)
java.util.List<Instance>
findHosts(java.lang.String requestMethod, java.lang.String resourceName, java.lang.String partitionName, HostHealthMonitor<Instance> hostHealthMonitor, VeniceRole roles)
This parameter list is based on the router API.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.linkedin.alpini.router.api.HostFinder
getChangeFuture, getSnapshot
-
-
-
-
Constructor Detail
-
VeniceHostFinder
public VeniceHostFinder(OnlineInstanceFinder onlineInstanceFinder, RouterStats<AggRouterHttpRequestStats> routerStats, HostHealthMonitor<Instance> instanceHealthMonitor)
-
-
Method Detail
-
findHosts
public java.util.List<Instance> findHosts(java.lang.String requestMethod, java.lang.String resourceName, java.lang.String partitionName, HostHealthMonitor<Instance> hostHealthMonitor, VeniceRole roles)
This parameter list is based on the router API. The Venice router currently ignores all but the resourceName and partitionName- Specified by:
findHosts
in interfaceHostFinder<Instance,VeniceRole>
- Parameters:
requestMethod
- - used to identify the read request typeresourceName
- - requiredpartitionName
- - requiredhostHealthMonitor
- - ignored, this class will use its ownHostHealthMonitor
roles
- - ignored- Returns:
-
findHosts
public java.util.List<Instance> findHosts(java.lang.String requestMethod, java.lang.String resourceName, java.lang.String storeName, int partitionNumber, HostHealthMonitor<Instance> hostHealthMonitor)
-
-