Class DBCloudStateManagerImpl
- java.lang.Object
-
- jetbrains.buildServer.clouds.server.impl.DBCloudStateManagerImpl
-
- All Implemented Interfaces:
CloudStateManager
public class DBCloudStateManagerImpl extends Object implements CloudStateManager
- Author:
- Eugene Petrenko Created: 09.10.2009 17:34:03
-
-
Constructor Summary
Constructors Constructor Description DBCloudStateManagerImpl(SQLRunnerEx sql)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jetbrains.buildServer.clouds.server.impl.DBCloudStateManagerImpl.CloudStartedInstanceTable
forProfile(CloudProfile profile)
Creates cloud-specific storage handleboolean
isImageWithAgent(CloudProfile profile, CloudImage image)
Checks if the image is configured to start agent.void
markImageWithAgent(CloudProfile profile, CloudImage image)
Marks that create instance will be able to start build agent.void
markImageWithoutAgent(CloudProfile profile, CloudImage image)
Marks that created instance will not able to start build agent.
-
-
-
Constructor Detail
-
DBCloudStateManagerImpl
public DBCloudStateManagerImpl(SQLRunnerEx sql)
-
-
Method Detail
-
forProfile
public jetbrains.buildServer.clouds.server.impl.DBCloudStateManagerImpl.CloudStartedInstanceTable forProfile(@NotNull CloudProfile profile)
Description copied from interface:CloudStateManager
Creates cloud-specific storage handle- Specified by:
forProfile
in interfaceCloudStateManager
- Parameters:
profile
- profile- Returns:
- storage handle
-
isImageWithAgent
public boolean isImageWithAgent(@NotNull CloudProfile profile, @NotNull CloudImage image)
Description copied from interface:CloudStateManager
Checks if the image is configured to start agent. If unknown - true is returned- Specified by:
isImageWithAgent
in interfaceCloudStateManager
- Parameters:
profile
- profileimage
- image- Returns:
- true is this image may contain agent, false if it is definitly broken
-
markImageWithoutAgent
public void markImageWithoutAgent(@NotNull CloudProfile profile, @NotNull CloudImage image)
Description copied from interface:CloudStateManager
Marks that created instance will not able to start build agent. Such instances will be expelled from auto-start candidates.- Specified by:
markImageWithoutAgent
in interfaceCloudStateManager
- Parameters:
profile
- profileimage
- image
-
markImageWithAgent
public void markImageWithAgent(@NotNull CloudProfile profile, @NotNull CloudImage image)
Description copied from interface:CloudStateManager
Marks that create instance will be able to start build agent.- Specified by:
markImageWithAgent
in interfaceCloudStateManager
- Parameters:
profile
- profileimage
- image
-
-