|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ElasticInstanceSchedule
Represents an schedule to attempt to manage the number of elastic agents
Method Summary | |
---|---|
ActiveInstanceAdjustmentType |
getActiveInstanceAdjustmentType()
Whether to bring # of instances to <=, >= or ==. |
java.lang.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(java.lang.String cronExpression)
|
void |
setElasticImageConfiguration(ElasticImageConfiguration elasticImageConfiguration)
|
void |
setEnabled(boolean enabled)
|
void |
setTargetActiveInstances(int targetActiveInstances)
|
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
setId |
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider |
---|
getId |
Method Detail |
---|
boolean isEnabled()
@Nullable java.lang.String getCronExpression()
@Nullable ElasticImageConfiguration getElasticImageConfiguration()
@NotNull ActiveInstanceAdjustmentType getActiveInstanceAdjustmentType()
ActiveInstanceAdjustmentType.EQUALS
int getTargetActiveInstances()
boolean isRunOnStartup()
boolean isAllElasticConfigurations()
void setCronExpression(java.lang.String cronExpression)
void setElasticImageConfiguration(ElasticImageConfiguration elasticImageConfiguration)
void setActiveInstanceAdjustmentType(ActiveInstanceAdjustmentType activeInstanceAdjustmentType)
void setTargetActiveInstances(int targetActiveInstances)
int getNumberToAdjust(int currentInstances)
currentInstances
-
void setEnabled(boolean enabled)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |