Class ReadonlyClientFactory
- java.lang.Object
-
- jetbrains.buildServer.clouds.server.impl.ReadonlyClientFactory
-
- All Implemented Interfaces:
BaseAgentType
,CloudClientFactory
,CloudType
,Describable
,ServerExtension
,TeamCityExtension
public class ReadonlyClientFactory extends Object implements CloudClientFactory
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLOUD_CODE
-
Constructor Summary
Constructors Constructor Description ReadonlyClientFactory(CloudRegistrar registrar, ServerResponsibility serverResponsibility, CloudStateHolder cloudStateHolder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeAgentOfType(AgentDescription description)
Checks it the agent could be an instance of one of the running profiles.CloudClientEx
createNewClient(CloudState state, CloudClientParameters params)
Creates a new cloud client.String
getCloudCode()
The formal name of the cloud type.String
getDisplayName()
Description to be shown on the web pagesString
getEditProfileUrl()
Properties editor jspMap<String,String>
getInitialParameterValues()
Return initial values for form pareters.PropertiesProcessor
getPropertiesProcessor()
Returns the properties processor instance (validator).-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.clouds.BaseAgentType
getProfileIconUrl
-
Methods inherited from interface jetbrains.buildServer.clouds.CloudType
getType, getTypeDescription
-
-
-
-
Field Detail
-
CLOUD_CODE
public static final String CLOUD_CODE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReadonlyClientFactory
public ReadonlyClientFactory(@NotNull CloudRegistrar registrar, @NotNull ServerResponsibility serverResponsibility, @NotNull CloudStateHolder cloudStateHolder)
-
-
Method Detail
-
createNewClient
@NotNull public CloudClientEx createNewClient(@NotNull CloudState state, @NotNull CloudClientParameters params)
Description copied from interface:CloudClientFactory
Creates a new cloud client. Always creates a new client instance, doesn't cache instances. Implementation will callCloudClientEx.dispose()
to dispose created client. It is expected from implementation for return new client quick- Specified by:
createNewClient
in interfaceCloudClientFactory
- Parameters:
state
- persistable object to write all plugin-specific stateparams
- parameters- Returns:
- just created new client instance.
-
getCloudCode
@NotNull public String getCloudCode()
Description copied from interface:CloudType
The formal name of the cloud type. This is used to identify cloud implementations inside.- Specified by:
getCloudCode
in interfaceCloudType
- Returns:
- cloud name
-
getDisplayName
@NotNull public String getDisplayName()
Description copied from interface:CloudType
Description to be shown on the web pages- Specified by:
getDisplayName
in interfaceCloudType
- Specified by:
getDisplayName
in interfaceDescribable
- Returns:
- display name to be shown to the user
-
getEditProfileUrl
@Nullable public String getEditProfileUrl()
Description copied from interface:BaseAgentType
Properties editor jsp- Specified by:
getEditProfileUrl
in interfaceBaseAgentType
- Returns:
- properties editor JSP file
-
getInitialParameterValues
@NotNull public Map<String,String> getInitialParameterValues()
Description copied from interface:BaseAgentType
Return initial values for form pareters.- Specified by:
getInitialParameterValues
in interfaceBaseAgentType
- Returns:
- map of initial values
-
getPropertiesProcessor
@NotNull public PropertiesProcessor getPropertiesProcessor()
Description copied from interface:BaseAgentType
Returns the properties processor instance (validator).- Specified by:
getPropertiesProcessor
in interfaceBaseAgentType
- Returns:
- properties processor
-
canBeAgentOfType
public boolean canBeAgentOfType(@NotNull AgentDescription description)
Description copied from interface:CloudType
Checks it the agent could be an instance of one of the running profiles. This method is called to check weather it is needed to open connection for a cloud profiles of that type to check if the agent is started from a cloud profiles of that type.- Specified by:
canBeAgentOfType
in interfaceCloudType
- Parameters:
description
- agent info to check- Returns:
- true if this agent could be an instance of that cloud type
-
-