Package jetbrains.buildServer.clouds
Class CloudInstanceUserData
- java.lang.Object
-
- jetbrains.buildServer.clouds.CloudInstanceUserData
-
public class CloudInstanceUserData extends Object
Represent information that will be transfered to starting build agent image- Author:
- Eugene Petrenko
-
-
Constructor Summary
Constructors Constructor Description CloudInstanceUserData(String agentName, String authToken, String serverAddress, Long idleTimeout, String profileId, String profileDescr, Map<String,String> customAgentConfigurationParameters)
CloudInstanceUserData(String agentName, String authToken, String serverAddress, Long idleTimeout, String profileDescr, Map<String,String> customAgentConfigurationParameters)
Deprecated.CloudInstanceUserData(CloudInstanceUserData src)
CloudInstanceUserData(CloudInstanceUserData src, String actualServerAddress)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAgentConfigurationParameter(String key, String value)
static CloudInstanceUserData
deserialize(String serialized)
boolean
equals(Object o)
String
getAgentConfigurationParameter(String key)
String
getAgentName()
String
getAuthToken()
Map<String,String>
getCustomAgentConfigurationParameters()
Long
getIdleTimeout()
String
getProfileDescription()
String
getProfileId()
String
getServerAddress()
int
hashCode()
String
serialize()
void
setAgentRemovePolicy(CloudConstants.AgentRemovePolicyValue policy)
Allows to set agent parameter for removal policy.String
toString()
-
-
-
Constructor Detail
-
CloudInstanceUserData
@Deprecated public CloudInstanceUserData(@NotNull String agentName, @NotNull String authToken, @NotNull String serverAddress, @Nullable Long idleTimeout, @NotNull String profileDescr, @NotNull Map<String,String> customAgentConfigurationParameters)
Deprecated.
-
CloudInstanceUserData
public CloudInstanceUserData(@NotNull String agentName, @NotNull String authToken, @NotNull String serverAddress, @Nullable Long idleTimeout, @NotNull String profileId, @NotNull String profileDescr, @NotNull Map<String,String> customAgentConfigurationParameters)
-
CloudInstanceUserData
public CloudInstanceUserData(@NotNull CloudInstanceUserData src)
-
CloudInstanceUserData
public CloudInstanceUserData(@NotNull CloudInstanceUserData src, @NotNull String actualServerAddress)
-
-
Method Detail
-
setAgentRemovePolicy
public void setAgentRemovePolicy(@NotNull CloudConstants.AgentRemovePolicyValue policy)
Allows to set agent parameter for removal policy. SeeCloudConstants.AGENT_REMOVE_POLICY
- Parameters:
policy
- policy value- Since:
- 7.1
-
addAgentConfigurationParameter
public void addAgentConfigurationParameter(@NotNull String key, @NotNull String value)
-
getAgentConfigurationParameter
@Nullable public String getAgentConfigurationParameter(@NotNull String key)
-
getCustomAgentConfigurationParameters
@NotNull public Map<String,String> getCustomAgentConfigurationParameters()
-
getProfileDescription
@NotNull public String getProfileDescription()
-
getProfileId
@NotNull public String getProfileId()
-
getIdleTimeout
@Nullable public Long getIdleTimeout()
-
getAgentName
@NotNull public String getAgentName()
-
getAuthToken
@NotNull public String getAuthToken()
-
getServerAddress
@NotNull public String getServerAddress()
-
serialize
public String serialize()
-
deserialize
@Nullable public static CloudInstanceUserData deserialize(@NotNull String serialized)
-
-