public class CreateScalingPolicy extends Object implements Comparable<CreateScalingPolicy>
Modifier and Type | Class and Description |
---|---|
static class |
CreateScalingPolicy.Builder |
static class |
CreateScalingPolicy.ScalingPolicyScheduleType
Enumerates different types of targets a policy might have
|
static class |
CreateScalingPolicy.ScalingPolicyTargetType
Enumerates different types of targets a policy might have
|
static class |
CreateScalingPolicy.ScalingPolicyType
Enumerates different types of scaling policies
|
Modifier | Constructor and Description |
---|---|
protected |
CreateScalingPolicy(String name,
CreateScalingPolicy.ScalingPolicyType type,
int cooldown,
String target,
CreateScalingPolicy.ScalingPolicyTargetType targetType,
Map<String,String> args) |
Modifier and Type | Method and Description |
---|---|
static CreateScalingPolicy.Builder |
builder() |
int |
compareTo(CreateScalingPolicy that) |
boolean |
equals(Object obj) |
int |
getCooldown() |
String |
getName() |
protected Map<String,String> |
getSchedulingArgs() |
String |
getSchedulingString() |
CreateScalingPolicy.ScalingPolicyScheduleType |
getSchedulingType() |
String |
getTarget() |
CreateScalingPolicy.ScalingPolicyTargetType |
getTargetType() |
CreateScalingPolicy.ScalingPolicyType |
getType() |
int |
hashCode() |
protected com.google.common.base.Objects.ToStringHelper |
string() |
CreateScalingPolicy.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"name","type","cooldown","target","targetType","args"}) protected CreateScalingPolicy(String name, CreateScalingPolicy.ScalingPolicyType type, int cooldown, String target, CreateScalingPolicy.ScalingPolicyTargetType targetType, Map<String,String> args)
public String getName()
CreateScalingPolicy.Builder.name(String)
public CreateScalingPolicy.ScalingPolicyType getType()
CreateScalingPolicy.ScalingPolicyType
,
CreateScalingPolicy.Builder#type(String)
public int getCooldown()
CreateScalingPolicy.Builder.cooldown(int)
public String getTarget()
CreateScalingPolicy.Builder#target(int)
public CreateScalingPolicy.ScalingPolicyTargetType getTargetType()
CreateScalingPolicy.ScalingPolicyTargetType
,
CreateScalingPolicy.Builder#targetType(int)
protected Map<String,String> getSchedulingArgs()
CreateScalingPolicy.Builder.atSchedule(String)
,
CreateScalingPolicy.Builder.cronSchedule(String)
public String getSchedulingString()
CreateScalingPolicy.Builder.atSchedule(String)
,
CreateScalingPolicy.Builder.cronSchedule(String)
public CreateScalingPolicy.ScalingPolicyScheduleType getSchedulingType()
protected com.google.common.base.Objects.ToStringHelper string()
public static CreateScalingPolicy.Builder builder()
public CreateScalingPolicy.Builder toBuilder()
public int compareTo(CreateScalingPolicy that)
compareTo
in interface Comparable<CreateScalingPolicy>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.