Class CloudProfileImpl
- java.lang.Object
-
- jetbrains.buildServer.clouds.server.impl.profile.CloudProfileImpl
-
- All Implemented Interfaces:
CloudProfile
public class CloudProfileImpl extends Object implements CloudProfile
- Author:
- Eugene Petrenko Created: 30.08.2009 17:01:20
-
-
Constructor Summary
Constructors Constructor Description CloudProfileImpl(String name, String projectInternalId, String profileId, String profileDescription, String cloudCode, Long terminateIdleTime, boolean isEnabled, Map<String,String> profileProps, Collection<CloudImageParameters> imageParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)StringgetCloudCode()StringgetDescription()User's comment for the profile.Collection<CloudImageParameters>getImages()CloudClientParametersgetParameters()Cloud implementation specific parametersStringgetProfileId()Abstract identifier.StringgetProfileName()User defined profile nameMap<String,String>getProfileProperties()returns all profile-level properties as mapStringgetProjectId()Internal id of project containing that profileLonggetTerminateIdleTime()Time to wait before idle agent is terminatedinthashCode()booleanisEnabled()Indicates whether the profile is enabledStringprofileDescription()Deprecated.use #toString()StringtoString()
-
-
-
Constructor Detail
-
CloudProfileImpl
public CloudProfileImpl(@NotNull String name, @NotNull String projectInternalId, @NotNull String profileId, @NotNull String profileDescription, @NotNull String cloudCode, @Nullable Long terminateIdleTime, boolean isEnabled, @NotNull Map<String,String> profileProps, @NotNull Collection<CloudImageParameters> imageParameters)
-
-
Method Detail
-
getProfileId
@NotNull public String getProfileId()
Description copied from interface:CloudProfileAbstract identifier. Unique in the buildserver runtime instance scope.- Specified by:
getProfileIdin interfaceCloudProfile- Returns:
- the profile identifier
-
profileDescription
@NotNull public String profileDescription()
Deprecated.use #toString()- Specified by:
profileDescriptionin interfaceCloudProfile
-
getProjectId
@NotNull public String getProjectId()
Description copied from interface:CloudProfileInternal id of project containing that profile- Specified by:
getProjectIdin interfaceCloudProfile- Returns:
- internal id of project containing that profile
-
getCloudCode
@NotNull public String getCloudCode()
- Specified by:
getCloudCodein interfaceCloudProfile- Returns:
- name of the cloud plugin
- See Also:
CloudType.getCloudCode()
-
getProfileName
@NotNull public String getProfileName()
User defined profile name- Specified by:
getProfileNamein interfaceCloudProfile- Returns:
- name.
-
getDescription
@NotNull public String getDescription()
User's comment for the profile.- Specified by:
getDescriptionin interfaceCloudProfile- Returns:
- description
-
getParameters
@NotNull public CloudClientParameters getParameters()
Cloud implementation specific parameters- Specified by:
getParametersin interfaceCloudProfile- Returns:
- connection parameters
-
getTerminateIdleTime
@Nullable public Long getTerminateIdleTime()
Time to wait before idle agent is terminated- Specified by:
getTerminateIdleTimein interfaceCloudProfile- Returns:
- Time to wait before idle agent is terminated
-
getImages
@NotNull public Collection<CloudImageParameters> getImages()
- Specified by:
getImagesin interfaceCloudProfile- Returns:
- list of
CloudImageParametersfor images defined in this profile
-
isEnabled
public boolean isEnabled()
Indicates whether the profile is enabled- Specified by:
isEnabledin interfaceCloudProfile- Returns:
- true, when profile is enabled. False otherwise
-
getProfileProperties
@NotNull public Map<String,String> getProfileProperties()
returns all profile-level properties as map- Specified by:
getProfilePropertiesin interfaceCloudProfile- Returns:
- see above
- Since:
- 2017.1
-
-