Interface MorpheusSynchronousComputeServerService
- All Superinterfaces:
MorpheusSynchronousDataService<ComputeServer,,ComputeServerIdentityProjection> MorpheusSynchronousIdentityService<ComputeServerIdentityProjection>
public interface MorpheusSynchronousComputeServerService
extends MorpheusSynchronousDataService<ComputeServer,ComputeServerIdentityProjection>, MorpheusSynchronousIdentityService<ComputeServerIdentityProjection>
-
Method Summary
Modifier and TypeMethodDescriptionaddHost(Cloud cloud, AddHostRequest request) Provisions a new host onto the targetCloudusing the supplied request details.buildComputeServerInterface(Account account, Instance instance, ComputeServer server, MorpheusComputeServerNetworkInterfaceConfig networkInterfaceConfig) Returns a ComputeNetworkInterface built from the provided parameters.executeUpdate(UpdateDefinition updateDefinition, ComputeServer... computeServer) Returns the ComputePort context used for performing sync operations onComputeServerAccessrelated assets within Morpheus.Returns the ComputeDevice context used for performing sync operations onComputeDevicerelated assets within Morpheus.Returns the ComputePort context used for performing sync operations onComputePortrelated assets within Morpheus.Returns the ComputeServerInterfaceContext used for performing updates or queries onComputeServerInterfacerelated assets within Morpheus.getConfigurationDriftDetails(ComputeServer... computeServer) postUpdate(UpdateDefinition updateDefinition, ComputeServer... computeServer) refreshUpdate(UpdateOperation updateOperation, ComputeServer... computeServer) removeHost(ComputeServer server, RemoveHostRequest request) Removes the specified host using the supplied request details.restartServer(Long computeServerId) Restart a ComputeServer.rollbackUpdate(UpdateDefinition updateDefinition, ComputeServer... computeServer) runConfigurationDriftCheck(CheckLevel checkLevel, ComputeServer... computeServer) startServer(Long computeServerId) Start a ComputeServer.stopServer(Long computeServerId) Stop a ComputeServer.validateUpdate(UpdateDefinition updateDefinition, ComputeServer... computeServer) Methods inherited from interface com.morpheusdata.core.MorpheusSynchronousDataService
bulkCreate, bulkRemove, bulkSave, count, create, create, find, get, getDataService, list, listById, listOptions, remove, remove, save, save, searchMethods inherited from interface com.morpheusdata.core.MorpheusSynchronousIdentityService
getDataIdentityService, listIdentityProjections
-
Method Details
-
getComputeServerInterface
MorpheusSynchronousComputeServerInterfaceService getComputeServerInterface()Returns the ComputeServerInterfaceContext used for performing updates or queries onComputeServerInterfacerelated assets within Morpheus.- Returns:
- An instance of the ComputeServerInterface Context
-
getComputeDevice
MorpheusSynchronousComputeDeviceService getComputeDevice()Returns the ComputeDevice context used for performing sync operations onComputeDevicerelated assets within Morpheus.- Returns:
- An instance of the ComputeDevice context
-
getComputePort
MorpheusSynchronousComputePortService getComputePort()Returns the ComputePort context used for performing sync operations onComputePortrelated assets within Morpheus.- Returns:
- An instance of the ComputePort context
-
getAccess
MorpheusSynchronousComputeServerAccessService getAccess()Returns the ComputePort context used for performing sync operations onComputeServerAccessrelated assets within Morpheus.- Returns:
- An instance of the ComputeServerAccess context
-
validateUpdate
-
executeUpdate
-
postUpdate
-
rollbackUpdate
-
refreshUpdate
-
runConfigurationDriftCheck
-
getConfigurationDriftDetails
-
addHost
Provisions a new host onto the targetCloudusing the supplied request details.This triggers host provisioning. A new
ComputeServeris created and queued for provisioning on the cloud; on success the returned server may still be in a provisioning state. This is not a metadata-only registration of an existing machine â it stands up a new compute host on the cloud.- Parameters:
cloud- the target cloud that should receive the newly provisioned hostrequest- the request object describing the host to provision- Returns:
- a
ServiceResponsecontaining the newly provisionedComputeServeron success - Since:
- 1.4.2
-
removeHost
Removes the specified host using the supplied request details.- Parameters:
server- theComputeServerhost to removerequest- the request object describing the host removal- Returns:
- a
ServiceResponseindicating success or failure - Since:
- 1.4.2
-
stopServer
Stop a ComputeServer. This is an async operation and the server may not be stopped immediately.- Parameters:
computeServerId- ComputeServer id to stop- Returns:
- success if the request to stop the server was successful
-
startServer
Start a ComputeServer. This is an async operation and the server may not be started immediately.- Parameters:
computeServerId- ComputeServer id to start- Returns:
- success if the request to start the server was successful
-
restartServer
Restart a ComputeServer. This is an async operation and the server may not be restarted immediately.- Parameters:
computeServerId- ComputeServer id to restart- Returns:
- success if the request to restart the server was successful
-
buildComputeServerInterface
ComputeServerInterface buildComputeServerInterface(Account account, Instance instance, ComputeServer server, MorpheusComputeServerNetworkInterfaceConfig networkInterfaceConfig) Returns a ComputeNetworkInterface built from the provided parameters.- Parameters:
account-Accountinstance-Instanceserver-ComputeServernetworkInterfaceConfig-MorpheusComputeServerNetworkInterfaceConfig- Returns:
- A ComputeServerInterface instance
-