public interface InfrastructureProvider
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(Infrastructure infrastructure)
This method returns whether the provider can handle the requested infrastructure.
|
Deployment |
createInfrastructure(Infrastructure infrastructure,
String infraRepoDir)
This method creates the necessary infrastructure using the provided configuration.
|
String |
getProviderName()
This method returns the provider name (AWS/GCP/Open Stack etc).
|
boolean |
removeInfrastructure(Infrastructure infrastructure,
String infraRepoDir)
This method executes commands needed to remove the infrastructure.
|
String getProviderName()
boolean canHandle(Infrastructure infrastructure)
Deployment createInfrastructure(Infrastructure infrastructure, String infraRepoDir) throws TestGridInfrastructureException
infrastructure - an instance of a Infrastructure which includes the details of the infrastructure
that should be created.infraRepoDir - location of the cloned repository related to infrastructure.TestGridInfrastructureException - thrown when error occurs in the infrastructure creation process.boolean removeInfrastructure(Infrastructure infrastructure, String infraRepoDir) throws TestGridInfrastructureException
infrastructure - an instance of a Infrastructure in which Infrastructure should be removed.infraRepoDir - location of the cloned repository related to infrastructure.TestGridInfrastructureException - thrown when error occurs in the infrastructure destroy process.Copyright © 2018 WSO2. All rights reserved.