public class VipStatus extends Object
Modifier and Type | Field and Description |
---|---|
private Map<Object,Boolean> |
clusters |
private com.yahoo.container.core.VipStatusConfig |
vipStatusConfig |
Constructor and Description |
---|
VipStatus() |
VipStatus(QrSearchersConfig dispatchers) |
VipStatus(QrSearchersConfig dispatchers,
com.yahoo.container.core.VipStatusConfig vipStatusConfig) |
Modifier and Type | Method and Description |
---|---|
void |
addToRotation(Object clusterIdentifier)
Set a service or cluster into rotation.
|
boolean |
isInRotation()
Tell whether the container is connected to any active services at all.
|
void |
removeFromRotation(Object clusterIdentifier)
Set a service or cluster out of rotation.
|
public VipStatus()
public VipStatus(QrSearchersConfig dispatchers)
@Inject public VipStatus(QrSearchersConfig dispatchers, com.yahoo.container.core.VipStatusConfig vipStatusConfig)
public void addToRotation(Object clusterIdentifier)
clusterIdentifier
- an object where the object identity will serve to identify the
cluster or servicepublic void removeFromRotation(Object clusterIdentifier)
clusterIdentifier
- an object where the object identity will serve to identify the
cluster or servicepublic boolean isInRotation()
Copyright © 2018. All rights reserved.