@Entity public class ElasticInstanceScheduleImpl extends BambooEntityObject implements ElasticInstanceSchedule
Constructor and Description |
---|
ElasticInstanceScheduleImpl() |
ElasticInstanceScheduleImpl(String cronExpression,
ElasticImageConfiguration elasticImageConfiguration,
ActiveInstanceAdjustmentType activeInstanceAdjustmentType,
int targetActiveInstances) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ActiveInstanceAdjustmentType |
getActiveInstanceAdjustmentType()
Whether to bring # of instances to <=, >= or ==.
|
String |
getCronExpression()
Cron expression representing when the logic should be run
|
ElasticImageConfiguration |
getElasticImageConfiguration()
The Elastic Configuration that will be managed.
|
int |
getNumberToAdjust(int currentInstances)
Given the curent instance count, by how many agents do we need to adjust by?
|
int |
getTargetActiveInstances()
Postive integer for # of active instances to have
|
int |
hashCode() |
boolean |
isAllElasticConfigurations()
Does this scheudle apply for all instances?
|
boolean |
isEnabled()
Is this schedule enabled or not
|
boolean |
isRunOnStartup()
if the schedule should be run on startup
|
void |
setActiveInstanceAdjustmentType(ActiveInstanceAdjustmentType activeInstanceAdjustmentType) |
void |
setCronExpression(String cronExpression) |
void |
setElasticImageConfiguration(ElasticImageConfiguration elasticImageConfiguration) |
void |
setEnabled(boolean enabled) |
void |
setTargetActiveInstances(int targetActiveInstances) |
String |
toString() |
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, wait, wait, wait
setId
getId
public ElasticInstanceScheduleImpl()
public ElasticInstanceScheduleImpl(String cronExpression, ElasticImageConfiguration elasticImageConfiguration, ActiveInstanceAdjustmentType activeInstanceAdjustmentType, int targetActiveInstances)
public String getCronExpression()
ElasticInstanceSchedule
getCronExpression
in interface ElasticInstanceSchedule
public void setCronExpression(String cronExpression)
setCronExpression
in interface ElasticInstanceSchedule
public ElasticImageConfiguration getElasticImageConfiguration()
ElasticInstanceSchedule
getElasticImageConfiguration
in interface ElasticInstanceSchedule
public void setElasticImageConfiguration(ElasticImageConfiguration elasticImageConfiguration)
setElasticImageConfiguration
in interface ElasticInstanceSchedule
@NotNull public ActiveInstanceAdjustmentType getActiveInstanceAdjustmentType()
ElasticInstanceSchedule
ActiveInstanceAdjustmentType.EQUALS
getActiveInstanceAdjustmentType
in interface ElasticInstanceSchedule
public void setActiveInstanceAdjustmentType(ActiveInstanceAdjustmentType activeInstanceAdjustmentType)
setActiveInstanceAdjustmentType
in interface ElasticInstanceSchedule
public int getTargetActiveInstances()
ElasticInstanceSchedule
getTargetActiveInstances
in interface ElasticInstanceSchedule
public void setTargetActiveInstances(int targetActiveInstances)
setTargetActiveInstances
in interface ElasticInstanceSchedule
public int getNumberToAdjust(int currentInstances)
ElasticInstanceSchedule
getNumberToAdjust
in interface ElasticInstanceSchedule
public boolean isEnabled()
ElasticInstanceSchedule
isEnabled
in interface ElasticInstanceSchedule
public void setEnabled(boolean enabled)
setEnabled
in interface ElasticInstanceSchedule
public boolean isRunOnStartup()
ElasticInstanceSchedule
isRunOnStartup
in interface ElasticInstanceSchedule
public boolean isAllElasticConfigurations()
ElasticInstanceSchedule
isAllElasticConfigurations
in interface ElasticInstanceSchedule
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
public boolean equals(Object o)
equals
in class com.atlassian.core.bean.EntityObject
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.