Interface CloudStateManager
-
- All Known Implementing Classes:
DBCloudStateManagerImpl
public interface CloudStateManager
- Since:
- 5.0
- Author:
- Eugene Petrenko
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CloudState
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.
-
-
-
Method Detail
-
forProfile
CloudState forProfile(@NotNull CloudProfile profile)
Creates cloud-specific storage handle- Parameters:
profile
- profile- Returns:
- storage handle
-
markImageWithoutAgent
void markImageWithoutAgent(@NotNull CloudProfile profile, @NotNull CloudImage image)
Marks that created instance will not able to start build agent. Such instances will be expelled from auto-start candidates.- Parameters:
profile
- profileimage
- image
-
markImageWithAgent
void markImageWithAgent(@NotNull CloudProfile profile, @NotNull CloudImage image)
Marks that create instance will be able to start build agent.- Parameters:
profile
- profileimage
- image
-
isImageWithAgent
boolean isImageWithAgent(@NotNull CloudProfile profile, @NotNull CloudImage image)
Checks if the image is configured to start agent. If unknown - true is returned- Parameters:
profile
- profileimage
- image- Returns:
- true is this image may contain agent, false if it is definitly broken
-
-