Class DummyCloudClientFactory
- java.lang.Object
 - 
- jetbrains.buildServer.clouds.fakeCloud.DummyCloudClientFactory
 
 
- 
- All Implemented Interfaces:
 BaseAgentType,CloudClientFactory,CloudType,Describable,ServerExtension,TeamCityExtension
public class DummyCloudClientFactory extends Object implements CloudClientFactory
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringCLOUD_CODEList<DummyCloudClient>createdClients 
- 
Constructor Summary
Constructors Constructor Description DummyCloudClientFactory() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanBeAgentOfType(AgentDescription description)Checks it the agent could be an instance of one of the running profiles.CloudClientExcreateNewClient(CloudState state, CloudClientParameters params)Creates a new cloud client.StringgetCloudCode()The formal name of the cloud type.StringgetDisplayName()Description to be shown on the web pagesStringgetEditProfileUrl()Properties editor jspMap<String,String>getInitialParameterValues()Return initial values for form pareters.PropertiesProcessorgetPropertiesProcessor()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
 
 
- 
createdClients
public List<DummyCloudClient> createdClients
 
 - 
 
- 
Method Detail
- 
createNewClient
@NotNull public CloudClientEx createNewClient(@NotNull CloudState state, @NotNull CloudClientParameters params)
Description copied from interface:CloudClientFactoryCreates 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:
 createNewClientin 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:CloudTypeThe formal name of the cloud type. This is used to identify cloud implementations inside.- Specified by:
 getCloudCodein interfaceCloudType- Returns:
 - cloud name
 
 
- 
getDisplayName
@NotNull public String getDisplayName()
Description copied from interface:CloudTypeDescription to be shown on the web pages- Specified by:
 getDisplayNamein interfaceCloudType- Specified by:
 getDisplayNamein interfaceDescribable- Returns:
 - display name to be shown to the user
 
 
- 
getEditProfileUrl
@Nullable public String getEditProfileUrl()
Description copied from interface:BaseAgentTypeProperties editor jsp- Specified by:
 getEditProfileUrlin interfaceBaseAgentType- Returns:
 - properties editor JSP file
 
 
- 
getInitialParameterValues
@NotNull public Map<String,String> getInitialParameterValues()
Description copied from interface:BaseAgentTypeReturn initial values for form pareters.- Specified by:
 getInitialParameterValuesin interfaceBaseAgentType- Returns:
 - map of initial values
 
 
- 
getPropertiesProcessor
@NotNull public PropertiesProcessor getPropertiesProcessor()
Description copied from interface:BaseAgentTypeReturns the properties processor instance (validator).- Specified by:
 getPropertiesProcessorin interfaceBaseAgentType- Returns:
 - properties processor
 
 
- 
canBeAgentOfType
public boolean canBeAgentOfType(@NotNull AgentDescription description)Description copied from interface:CloudTypeChecks 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:
 canBeAgentOfTypein interfaceCloudType- Parameters:
 description- agent info to check- Returns:
 - true if this agent could be an instance of that cloud type
 
 
 - 
 
 -