Package com.yahoo.container.handler
Class VipStatus
java.lang.Object
com.yahoo.container.handler.VipStatus
A component which keeps track of whether or not this container instance should receive traffic
and respond that it is in good health.
This is multithread safe.
- Author:
- Steinar Knutsen, bratseth
-
Constructor Summary
ConstructorDescriptionFor testingVipStatus
(ClustersStatus clustersStatus) For testingVipStatus
(QrSearchersConfig dispatchers) For testingVipStatus
(QrSearchersConfig dispatchers, VipStatusConfig vipStatusConfig, ClustersStatus clustersStatus, StateMonitor healthState, com.yahoo.jdisc.Metric metric) VipStatus
(QrSearchersConfig dispatchers, ClustersStatus clustersStatus) For testing -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToRotation
(String clusterIdentifier) Note that a cluster (which influences up/down state) is upboolean
Returns whether this container should receive traffic at this timevoid
removeFromRotation
(String clusterIdentifier) Note that a cluster (which influences up/down state) is downvoid
setInRotation
(Boolean inRotation) Explicitly set this container in or out of rotation
-
Constructor Details
-
VipStatus
public VipStatus()For testing -
VipStatus
For testing -
VipStatus
For testing -
VipStatus
For testing -
VipStatus
@Inject public VipStatus(QrSearchersConfig dispatchers, VipStatusConfig vipStatusConfig, ClustersStatus clustersStatus, StateMonitor healthState, com.yahoo.jdisc.Metric metric)
-
-
Method Details
-
setInRotation
Explicitly set this container in or out of rotation- Parameters:
inRotation
- true to set this in rotation regardless of any clusters and of the default value, false to set it out, and null to make this decision using the usual cluster-dependent logic
-
addToRotation
Note that a cluster (which influences up/down state) is up -
removeFromRotation
Note that a cluster (which influences up/down state) is down -
isInRotation
public boolean isInRotation()Returns whether this container should receive traffic at this time
-