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.CloudStartedInstanceTableforProfile(CloudProfile profile)Creates cloud-specific storage handlebooleanisImageWithAgent(CloudProfile profile, CloudImage image)Checks if the image is configured to start agent.voidmarkImageWithAgent(CloudProfile profile, CloudImage image)Marks that create instance will be able to start build agent.voidmarkImageWithoutAgent(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:CloudStateManagerCreates cloud-specific storage handle- Specified by:
forProfilein interfaceCloudStateManager- Parameters:
profile- profile- Returns:
- storage handle
-
isImageWithAgent
public boolean isImageWithAgent(@NotNull CloudProfile profile, @NotNull CloudImage image)Description copied from interface:CloudStateManagerChecks if the image is configured to start agent. If unknown - true is returned- Specified by:
isImageWithAgentin 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:CloudStateManagerMarks that created instance will not able to start build agent. Such instances will be expelled from auto-start candidates.- Specified by:
markImageWithoutAgentin interfaceCloudStateManager- Parameters:
profile- profileimage- image
-
markImageWithAgent
public void markImageWithAgent(@NotNull CloudProfile profile, @NotNull CloudImage image)Description copied from interface:CloudStateManagerMarks that create instance will be able to start build agent.- Specified by:
markImageWithAgentin interfaceCloudStateManager- Parameters:
profile- profileimage- image
-
-