Class IndexedEnvironmentImpl
- java.lang.Object
-
- com.atlassian.bamboo.deployments.environments.index.IndexedEnvironmentImpl
-
- All Implemented Interfaces:
IndexedEnvironment
public class IndexedEnvironmentImpl extends Object implements IndexedEnvironment
Represents the environment object indexed in lucene
-
-
Constructor Summary
Constructors Constructor Description IndexedEnvironmentImpl(@NotNull InternalDeploymentProject internalDeploymentProject, @NotNull EnvironmentStatus environmentStatus, @Nullable PlanResultKey latestVersionPlanResultKey)
IndexedEnvironmentImpl(@NotNull InternalDeploymentProject project, @NotNull InternalEnvironment environment, @Nullable DeploymentResult latestResult, @Nullable PlanResultKey latestVersionPlanResultKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildState
getCurrentState()
long
getCurrentVersionId()
String
getCurrentVersionName()
PlanResultKey
getCurrentVersionPlanResultKey()
String
getEnvironmentDescription()
long
getEnvironmentId()
String
getEnvironmentName()
int
getEnvironmentPosition()
@Nullable Date
getLastDeployedDate()
long
getProjectId()
String
getProjectName()
-
-
-
Constructor Detail
-
IndexedEnvironmentImpl
public IndexedEnvironmentImpl(@NotNull @NotNull InternalDeploymentProject project, @NotNull @NotNull InternalEnvironment environment, @Nullable @Nullable DeploymentResult latestResult, @Nullable @Nullable PlanResultKey latestVersionPlanResultKey)
-
IndexedEnvironmentImpl
public IndexedEnvironmentImpl(@NotNull @NotNull InternalDeploymentProject internalDeploymentProject, @NotNull @NotNull EnvironmentStatus environmentStatus, @Nullable @Nullable PlanResultKey latestVersionPlanResultKey)
-
-
Method Detail
-
getEnvironmentName
public String getEnvironmentName()
- Specified by:
getEnvironmentName
in interfaceIndexedEnvironment
- Returns:
- name of the environment
-
getEnvironmentDescription
public String getEnvironmentDescription()
- Specified by:
getEnvironmentDescription
in interfaceIndexedEnvironment
- Returns:
- description of the environment
-
getEnvironmentId
public long getEnvironmentId()
- Specified by:
getEnvironmentId
in interfaceIndexedEnvironment
- Returns:
- if of the environment
-
getEnvironmentPosition
public int getEnvironmentPosition()
- Specified by:
getEnvironmentPosition
in interfaceIndexedEnvironment
- Returns:
- visual position of the environment relative to other environments in the project
-
getProjectName
public String getProjectName()
- Specified by:
getProjectName
in interfaceIndexedEnvironment
- Returns:
- name of the project the environment belongs to
-
getProjectId
public long getProjectId()
- Specified by:
getProjectId
in interfaceIndexedEnvironment
- Returns:
- id of the project the environment belongs to
-
getCurrentVersionName
public String getCurrentVersionName()
- Specified by:
getCurrentVersionName
in interfaceIndexedEnvironment
- Returns:
- the name of the current version on this environments
-
getCurrentVersionId
public long getCurrentVersionId()
- Specified by:
getCurrentVersionId
in interfaceIndexedEnvironment
- Returns:
- the id of the current version on this environments, may be -1 if never deployed to OR if versino was deleted
-
getCurrentVersionPlanResultKey
public PlanResultKey getCurrentVersionPlanResultKey()
- Specified by:
getCurrentVersionPlanResultKey
in interfaceIndexedEnvironment
- Returns:
- the plan result key of the result that the version, currently on this environment, was created from.
-
getCurrentState
public BuildState getCurrentState()
- Specified by:
getCurrentState
in interfaceIndexedEnvironment
-
getLastDeployedDate
@Nullable public @Nullable Date getLastDeployedDate()
- Specified by:
getLastDeployedDate
in interfaceIndexedEnvironment
- Returns:
- the date at which environment was last deployed to
-
-