Interface InternalEnvironment
- All Superinterfaces:
BambooIdProvider
,DescriptionProvider
,NameProvider
,TaskContainer
,Triggerable
- All Known Subinterfaces:
DecoratedEnvironment
,Environment
,EnvironmentStub
,MutableEnvironment
- All Known Implementing Classes:
DecoratedEnvironmentImpl
,EnvironmentImpl
,EnvironmentStubDto
,EnvironmentStubImpl
,EnvironmentWithConfigCounts
,InternalEnvironmentImpl
,InternalEnvironmentStubImpl
,MutableEnvironmentImpl
@Internal
public interface InternalEnvironment
extends BambooIdProvider, NameProvider, DescriptionProvider, Triggerable, TaskContainer
Common interface between all types of deployment environments. Defines relationship between client side objects and
db objects. Though probably not useful for anything else. Be wary when adding things to this interface - be sure
it makes sense in all contexts.
-
Method Summary
Modifier and TypeMethodDescriptionlong
@Nullable String
long
getId()
@NotNull DeploymentKey
getKey()
Key representing this environment.@NotNull String
getName()
int
@NotNull ReleaseApprovalPrerequisite
@NotNull ImmutableRequirementSet
Return effective value ofImmutableRequirementSet
, that is value that is considered when checking which agents and elastic images can deploy to this environment.@NotNull Supplier<ImmutableRequirementSet>
Return (possibly lazy) supplier of the requirement set.@NotNull Supplier<List<TaskDefinition>>
Return (possibly lazy) supplier of tasks.@NotNull Supplier<List<TriggerDefinition>>
Return (possibly lazy) supplier of triggers.Methods inherited from interface com.atlassian.bamboo.task.TaskContainer
getTaskDefinitions
Methods inherited from interface com.atlassian.bamboo.trigger.Triggerable
getTriggerDefinitions, isSuspended
-
Method Details
-
getId
long getId()- Specified by:
getId
in interfaceBambooIdProvider
- Returns:
- unique identifier (in this case from database)
-
getKey
Key representing this environment. Keys have much less significance in deployments than in plans. Please consider usinggetId()
instead.- Returns:
- key of this environment.
-
getName
- Specified by:
getName
in interfaceDescriptionProvider
- Specified by:
getName
in interfaceNameProvider
- Returns:
- User friendly shortish name for this environment. Must be unique within a deployment project
-
getDescription
- Specified by:
getDescription
in interfaceDescriptionProvider
- Returns:
- Optional, longer description of the environment
-
getDeploymentProjectId
long getDeploymentProjectId()- Returns:
- id of the
DeploymentProject
which is owner of this environment
-
getConfigurationState
ConfigurationState getConfigurationState()- Returns:
- Enum representing how completed the configuration of this environments is.
-
getPosition
int getPosition()- Returns:
- position of this environment in deployment project's environment list.
-
getRequirementSet
Return effective value ofImmutableRequirementSet
, that is value that is considered when checking which agents and elastic images can deploy to this environment. -
getReleaseApprovalPrerequisite
-
getTaskDefinitionsSupplier
Return (possibly lazy) supplier of tasks.- Since:
- 9.1
-
getTriggerDefinitionsSupplier
Return (possibly lazy) supplier of triggers.- Since:
- 9.1
-
getRequirementSetSupplier
Return (possibly lazy) supplier of the requirement set.- Since:
- 9.4
-