public class ServiceInstanceEvaluator extends ServiceEvaluator
serviceName
Constructor and Description |
---|
ServiceInstanceEvaluator(String serviceName) |
Modifier and Type | Method and Description |
---|---|
List<String> |
evaluate(Cluster cluster,
Set<Node> clusterNodes,
Node node)
Evaluate the macro expression on the given node of the given cluster, with the given cluster nodes.
|
equals, getNthServiceNode, getServiceInstanceNum, hashCode, sortServiceNodes
public ServiceInstanceEvaluator(String serviceName)
public List<String> evaluate(Cluster cluster, Set<Node> clusterNodes, Node node) throws IncompleteClusterException
Evaluator
cluster
- Cluster the macro is being expanded for.clusterNodes
- Nodes in the cluster the macro is being expanded for.node
- The cluster node that the macro is being expanded for.IncompleteClusterException
- if the cluster does not contain the information required to evaluate the macro.Copyright © 2013-2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.