|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.bamboo.core.BambooEntityObject com.atlassian.bamboo.agent.elastic.schedule.ElasticInstanceScheduleImpl
public class ElasticInstanceScheduleImpl
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Constructor Summary | |
---|---|
ElasticInstanceScheduleImpl()
|
|
ElasticInstanceScheduleImpl(java.lang.String cronExpression,
ElasticImageConfiguration elasticImageConfiguration,
ActiveInstanceAdjustmentType activeInstanceAdjustmentType,
int targetActiveInstances)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
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 |
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(java.lang.String cronExpression)
|
void |
setElasticImageConfiguration(ElasticImageConfiguration elasticImageConfiguration)
|
void |
setEnabled(boolean enabled)
|
void |
setTargetActiveInstances(int targetActiveInstances)
|
java.lang.String |
toString()
|
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
getId, setId |
Methods inherited from class com.atlassian.core.bean.EntityObject |
---|
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
getId, setId |
Constructor Detail |
---|
public ElasticInstanceScheduleImpl()
public ElasticInstanceScheduleImpl(java.lang.String cronExpression, ElasticImageConfiguration elasticImageConfiguration, ActiveInstanceAdjustmentType activeInstanceAdjustmentType, int targetActiveInstances)
Method Detail |
---|
public java.lang.String getCronExpression()
ElasticInstanceSchedule
getCronExpression
in interface ElasticInstanceSchedule
public void setCronExpression(java.lang.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(java.lang.Object o)
equals
in class com.atlassian.core.bean.EntityObject
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |