Package com.morpheusdata.core.providers
Interface ScaleProvider
- All Superinterfaces:
PluginProvider
Provides a standard set of methods for interacting with auto scale integrations
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.morpheusdata.core.providers.PluginProvider
PluginProvider.EventSubscriberFacet<E extends Event> -
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 ServiceResponsepostProvisionInstance(Instance instance) Implement this method to perform some tasks after an instance has been provisioned via morpheus.default ServiceResponseprovisionInstance(Instance instance) Implement this method to perform any operations that occur PRIOR to the instance being provisioned.default ServiceResponseremoveInstance(Instance instance) Implement this method to perform some operations when an instance has been removed from morpheusdefault ServiceResponseupdateInstance(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- anInstanceto 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- theInstanceto be removed- Returns:
ServiceResponse
-
updateInstance
Implement this method to perform some operations when an instance has been updated- Parameters:
instance- theInstancebeing updated- Returns:
ServiceResponse
-