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 boolean
equals(Object o)
String
getCloudCode()
String
getDescription()
User's comment for the profile.Collection<CloudImageParameters>
getImages()
CloudClientParameters
getParameters()
Cloud implementation specific parametersString
getProfileId()
Abstract identifier.String
getProfileName()
User defined profile nameMap<String,String>
getProfileProperties()
returns all profile-level properties as mapString
getProjectId()
Internal id of project containing that profileLong
getTerminateIdleTime()
Time to wait before idle agent is terminatedint
hashCode()
boolean
isEnabled()
Indicates whether the profile is enabledString
profileDescription()
Deprecated.use #toString()String
toString()
-
-
-
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:CloudProfile
Abstract identifier. Unique in the buildserver runtime instance scope.- Specified by:
getProfileId
in interfaceCloudProfile
- Returns:
- the profile identifier
-
profileDescription
@NotNull public String profileDescription()
Deprecated.use #toString()- Specified by:
profileDescription
in interfaceCloudProfile
-
getProjectId
@NotNull public String getProjectId()
Description copied from interface:CloudProfile
Internal id of project containing that profile- Specified by:
getProjectId
in interfaceCloudProfile
- Returns:
- internal id of project containing that profile
-
getCloudCode
@NotNull public String getCloudCode()
- Specified by:
getCloudCode
in interfaceCloudProfile
- Returns:
- name of the cloud plugin
- See Also:
CloudType.getCloudCode()
-
getProfileName
@NotNull public String getProfileName()
User defined profile name- Specified by:
getProfileName
in interfaceCloudProfile
- Returns:
- name.
-
getDescription
@NotNull public String getDescription()
User's comment for the profile.- Specified by:
getDescription
in interfaceCloudProfile
- Returns:
- description
-
getParameters
@NotNull public CloudClientParameters getParameters()
Cloud implementation specific parameters- Specified by:
getParameters
in interfaceCloudProfile
- Returns:
- connection parameters
-
getTerminateIdleTime
@Nullable public Long getTerminateIdleTime()
Time to wait before idle agent is terminated- Specified by:
getTerminateIdleTime
in interfaceCloudProfile
- Returns:
- Time to wait before idle agent is terminated
-
getImages
@NotNull public Collection<CloudImageParameters> getImages()
- Specified by:
getImages
in interfaceCloudProfile
- Returns:
- list of
CloudImageParameters
for images defined in this profile
-
isEnabled
public boolean isEnabled()
Indicates whether the profile is enabled- Specified by:
isEnabled
in 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:
getProfileProperties
in interfaceCloudProfile
- Returns:
- see above
- Since:
- 2017.1
-
-