Package com.yahoo.container.handler
Class VipStatus
- java.lang.Object
-
- com.yahoo.container.handler.VipStatus
-
public class VipStatus extends java.lang.Object
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
Constructors Constructor Description VipStatus()
For 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)
VipStatus(QrSearchersConfig dispatchers, ClustersStatus clustersStatus)
For testingVipStatus(QrSearchersConfig dispatchers, ClustersStatus clustersStatus, StateMonitor healthState)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addToRotation(java.lang.Object clusterIdentifier)
Deprecated.use addToRotation(String) insteadvoid
addToRotation(java.lang.String clusterIdentifier)
Note that a cluster (which influences up/down state) is upboolean
isInRotation()
Returns whether this container should receive traffic at this timevoid
removeFromRotation(java.lang.Object clusterIdentifier)
Deprecated.use removeFromRotation(String) insteadvoid
removeFromRotation(java.lang.String clusterIdentifier)
Note that a cluster (which influences up/down state) is downvoid
setInRotation(java.lang.Boolean inRotation)
Explicitly set this container in or out of rotation
-
-
-
Constructor Detail
-
VipStatus
public VipStatus()
For testing
-
VipStatus
public VipStatus(QrSearchersConfig dispatchers)
For testing
-
VipStatus
public VipStatus(ClustersStatus clustersStatus)
For testing
-
VipStatus
public VipStatus(QrSearchersConfig dispatchers, ClustersStatus clustersStatus)
For testing
-
VipStatus
@Inject public VipStatus(QrSearchersConfig dispatchers, VipStatusConfig vipStatusConfig, ClustersStatus clustersStatus, StateMonitor healthState)
-
VipStatus
@Deprecated public VipStatus(QrSearchersConfig dispatchers, ClustersStatus clustersStatus, StateMonitor healthState)
Deprecated.
-
VipStatus
@Deprecated public VipStatus(QrSearchersConfig dispatchers, VipStatusConfig ignored, ClustersStatus clustersStatus)
Deprecated.
-
-
Method Detail
-
setInRotation
public void setInRotation(java.lang.Boolean inRotation)
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
public void addToRotation(java.lang.String clusterIdentifier)
Note that a cluster (which influences up/down state) is up
-
removeFromRotation
public void removeFromRotation(java.lang.String clusterIdentifier)
Note that a cluster (which influences up/down state) is down
-
addToRotation
@Deprecated public void addToRotation(java.lang.Object clusterIdentifier)
Deprecated.use addToRotation(String) instead
-
removeFromRotation
@Deprecated public void removeFromRotation(java.lang.Object clusterIdentifier)
Deprecated.use removeFromRotation(String) instead
-
isInRotation
public boolean isInRotation()
Returns whether this container should receive traffic at this time
-
-