public interface ElasticInstanceSchedule extends BambooObject
Modifier and Type | Method and Description |
---|---|
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
|
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) |
setId
getId
boolean isEnabled()
@Nullable String getCronExpression()
@Nullable ElasticImageConfiguration getElasticImageConfiguration()
@NotNull ActiveInstanceAdjustmentType getActiveInstanceAdjustmentType()
ActiveInstanceAdjustmentType.EQUALS
int getTargetActiveInstances()
boolean isRunOnStartup()
boolean isAllElasticConfigurations()
void setCronExpression(String cronExpression)
void setElasticImageConfiguration(ElasticImageConfiguration elasticImageConfiguration)
void setActiveInstanceAdjustmentType(ActiveInstanceAdjustmentType activeInstanceAdjustmentType)
void setTargetActiveInstances(int targetActiveInstances)
int getNumberToAdjust(int currentInstances)
currentInstances
- void setEnabled(boolean enabled)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.