Package dev.galasa.cloud.spi
Interface ICloudManagerSpi
public interface ICloudManagerSpi
SPI for the Cloud Manager
-
Method Summary
Modifier and TypeMethodDescription@NotNull ICloudContainer
generateCloudContainer
(@NotNull String tag, @NotNull String provider, @NotNull String image, @NotNull ICloudContainerPort[] ports, Properties environmentProperties, String[] runArguments, boolean autoStart, int startOrder) Generate a new Cloud Container, normal called by an application Manager during provision generate, but can be called at anytime (exception shutdown)@NotNull ICloudContainer
getCloudContainerByTag
(@NotNull String tag) Retrieve the cloud container by tagvoid
registerCloudContainerProvider
(@NotNull ICloudContainerProvider containerProvider) Register a provider for Cloud Containers
-
Method Details
-
getCloudContainerByTag
@NotNull @NotNull ICloudContainer getCloudContainerByTag(@NotNull @NotNull String tag) throws CloudManagerException Retrieve the cloud container by tag- Parameters:
tag
- - The tag name- Returns:
- the Cloud Container if found
- Throws:
CloudManagerException
- - If the tag is unknown
-
generateCloudContainer
@NotNull @NotNull ICloudContainer generateCloudContainer(@NotNull @NotNull String tag, @NotNull @NotNull String provider, @NotNull @NotNull String image, @NotNull @NotNull ICloudContainerPort[] ports, Properties environmentProperties, String[] runArguments, boolean autoStart, int startOrder) throws CloudManagerException Generate a new Cloud Container, normal called by an application Manager during provision generate, but can be called at anytime (exception shutdown)- Parameters:
tag
- - The tag to assign, must not exist alreadyprovider
- - optional (null), the provider to use to provision the Cloud Containerimage
- - The image name to useports
- - The ports to be exposedenvironmentProperties
- - Any environment properties to provide to the containerrunArguments
- - Any run arguments to start the container withautoStart
- - The container is to be started during provisionStart, only relevant if this method is called during provisionGenerate.startOrder
- - If autoStart = true, then the order the container is to be started, only relevant if this method is called during provisionGenerate.- Returns:
- a ICloudContainer instance.
- Throws:
CloudManagerException
-
registerCloudContainerProvider
Register a provider for Cloud Containers- Parameters:
containerProvider
- A Cloud Container provisioner
-