Package com.morpheusdata.core.providers
Interface ScaleProvider
- All Superinterfaces:
PluginProvider
Provides a standard set of methods for interacting with auto scale integrations
-
Method Summary
Modifier and TypeMethodDescriptionGrabs the description for the ScaleProvidergetIcon()
Returns the logo for display.Provides a Collection of OptionType inputs that define the required input fields for defining a scale type (if applicable)Provides a collection of scale types that need to be configured in the morpheus environment along with the various child entities required by the scale typedefault ServiceResponse
postProvisionInstance
(Instance instance) Implement this method to perform some tasks after an instance has been provisioned via morpheus.default ServiceResponse
provisionInstance
(Instance instance) Implement this method to perform any operations that occur PRIOR to the instance being provisioned.default ServiceResponse
removeInstance
(Instance instance) Implement this method to perform some operations when an instance has been removed from morpheusdefault ServiceResponse
updateInstance
(Instance instance) Implement this method to perform some operations when an instance has been updatedMethods inherited from interface com.morpheusdata.core.providers.PluginProvider
getCode, getMorpheus, getName, getPlugin, isPlugin
-
Method Details
-
getDescription
String getDescription()Grabs the description for the ScaleProvider- Returns:
- String
-
getIcon
Icon getIcon()Returns the logo for display. SVGs are preferred.- Returns:
- Icon representation of assets stored in the src/assets of the project.
- Since:
- 0.13.0
-
getOptionTypes
Collection<OptionType> getOptionTypes()Provides a Collection of OptionType inputs that define the required input fields for defining a scale type (if applicable)- Returns:
- Collection of OptionType
-
getScaleTypes
Collection<InstanceScaleType> getScaleTypes()Provides a collection of scale types that need to be configured in the morpheus environment along with the various child entities required by the scale type- Returns:
- Collection of InstanceScaleType
-
provisionInstance
Implement this method to perform any operations that occur PRIOR to the instance being provisioned.- Parameters:
instance
- anInstance
to be provisioned- Returns:
ServiceResponse
-
postProvisionInstance
Implement this method to perform some tasks after an instance has been provisioned via morpheus. For example, update a scale group details etc.- Parameters:
instance
- a provisionedInstance
- Returns:
ServiceResponse
-
removeInstance
Implement this method to perform some operations when an instance has been removed from morpheus- Parameters:
instance
- theInstance
to be removed- Returns:
ServiceResponse
-
updateInstance
Implement this method to perform some operations when an instance has been updated- Parameters:
instance
- theInstance
being updated- Returns:
ServiceResponse
-