public class AsgEnabledRule extends java.lang.Object implements InstanceStatusOverrideRule
| Constructor and Description |
|---|
AsgEnabledRule(AwsAsgUtil awsAsgUtil) |
| Modifier and Type | Method and Description |
|---|---|
StatusOverrideResult |
apply(com.netflix.appinfo.InstanceInfo instanceInfo,
Lease<com.netflix.appinfo.InstanceInfo> existingLease,
boolean isReplication)
Match this rule.
|
java.lang.String |
toString() |
public AsgEnabledRule(AwsAsgUtil awsAsgUtil)
public StatusOverrideResult apply(com.netflix.appinfo.InstanceInfo instanceInfo, Lease<com.netflix.appinfo.InstanceInfo> existingLease, boolean isReplication)
InstanceStatusOverrideRuleapply in interface InstanceStatusOverrideRuleinstanceInfo - The instance info whose status we care about.existingLease - Does the instance have an existing lease already? If so let's consider that.isReplication - When overriding consider if we are under a replication mode from other servers.public java.lang.String toString()
toString in class java.lang.Object