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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigurationStategetConfigurationState()longgetDeploymentProjectId()@Nullable StringgetDescription()longgetId()@NotNull DeploymentKeygetKey()Key representing this environment.@NotNull StringgetName()intgetPosition()@NotNull ReleaseApprovalPrerequisitegetReleaseApprovalPrerequisite()@NotNull ImmutableRequirementSetgetRequirementSet()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>getRequirementSetSupplier()Return (possibly lazy) supplier of the requirement set.@NotNull Supplier<List<TaskDefinition>>getTaskDefinitionsSupplier()Return (possibly lazy) supplier of tasks.@NotNull Supplier<List<TriggerDefinition>>getTriggerDefinitionsSupplier()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 Detail
-
getId
long getId()
- Specified by:
getIdin interfaceBambooIdProvider- Returns:
- unique identifier (in this case from database)
-
getKey
@NotNull @NotNull DeploymentKey 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
@NotNull @NotNull String getName()
- Specified by:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceNameProvider- Returns:
- User friendly shortish name for this environment. Must be unique within a deployment project
-
getDescription
@Nullable @Nullable String getDescription()
- Specified by:
getDescriptionin interfaceDescriptionProvider- Returns:
- Optional, longer description of the environment
-
getDeploymentProjectId
long getDeploymentProjectId()
- Returns:
- id of the
DeploymentProjectwhich 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
@NotNull @NotNull ImmutableRequirementSet getRequirementSet()
Return effective value ofImmutableRequirementSet, that is value that is considered when checking which agents and elastic images can deploy to this environment.
-
getReleaseApprovalPrerequisite
@NotNull @NotNull ReleaseApprovalPrerequisite getReleaseApprovalPrerequisite()
-
getTaskDefinitionsSupplier
@NotNull @NotNull Supplier<List<TaskDefinition>> getTaskDefinitionsSupplier()
Return (possibly lazy) supplier of tasks.- Since:
- 9.1
-
getTriggerDefinitionsSupplier
@NotNull @NotNull Supplier<List<TriggerDefinition>> getTriggerDefinitionsSupplier()
Return (possibly lazy) supplier of triggers.- Since:
- 9.1
-
getRequirementSetSupplier
@NotNull @NotNull Supplier<ImmutableRequirementSet> getRequirementSetSupplier()
Return (possibly lazy) supplier of the requirement set.- Since:
- 9.4
-
-