Package com.morpheusdata.core.providers
Interface ClusterProvider.ServerPowerFacet
- Enclosing interface:
- ClusterProvider
public static interface ClusterProvider.ServerPowerFacet
-
Method Summary
Modifier and TypeMethodDescriptionstartServer(ComputeServer computeServer) Called when a server should be started.stopServer(ComputeServer computeServer) Called when a server should be stopped.
-
Method Details
-
startServer
Called when a server should be started. Returning a response of success will cause corresponding updates to usage records, result in the powerState of the computeServer to be set to 'on', and related instances set to 'running'- Parameters:
computeServer- server to start- Returns:
- ServiceResponse
-
stopServer
Called when a server should be stopped. Returning a response of success will cause corresponding updates to usage records, result in the powerState of the computeServer to be set to 'off', and related instances set to 'stopped'- Parameters:
computeServer- server to stop- Returns:
- ServiceResponse
-