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 ignored, ClustersStatus clustersStatus) Deprecated.VipStatus
(QrSearchersConfig dispatchers, VipStatusConfig vipStatusConfig, ClustersStatus clustersStatus, StateMonitor healthState) Deprecated.VipStatus
(QrSearchersConfig dispatchers, VipStatusConfig vipStatusConfig, ClustersStatus clustersStatus, StateMonitor healthState, com.yahoo.jdisc.Metric metric) VipStatus
(QrSearchersConfig dispatchers, ClustersStatus clustersStatus) For testingVipStatus
(QrSearchersConfig dispatchers, ClustersStatus clustersStatus, StateMonitor healthState) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToRotation
(Object clusterIdentifier) Deprecated.use addToRotation(String) insteadvoid
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
(Object clusterIdentifier) Deprecated.use removeFromRotation(String) insteadvoid
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) -
VipStatus
@Deprecated public VipStatus(QrSearchersConfig dispatchers, VipStatusConfig vipStatusConfig, ClustersStatus clustersStatus, StateMonitor healthState) Deprecated. -
VipStatus
@Deprecated public VipStatus(QrSearchersConfig dispatchers, ClustersStatus clustersStatus, StateMonitor healthState) Deprecated. -
VipStatus
@Deprecated public VipStatus(QrSearchersConfig dispatchers, VipStatusConfig ignored, ClustersStatus clustersStatus) Deprecated.
-
-
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 -
addToRotation
Deprecated.use addToRotation(String) instead -
removeFromRotation
Deprecated.use removeFromRotation(String) instead -
isInRotation
public boolean isInRotation()Returns whether this container should receive traffic at this time
-