Interface MorpheusSynchronousComputeServerService
- All Superinterfaces:
MorpheusSynchronousDataService<ComputeServer,,ComputeServerIdentityProjection> MorpheusSynchronousIdentityService<ComputeServerIdentityProjection>
public interface MorpheusSynchronousComputeServerService
extends MorpheusSynchronousDataService<ComputeServer,ComputeServerIdentityProjection>, MorpheusSynchronousIdentityService<ComputeServerIdentityProjection>
-
Method Summary
Modifier and TypeMethodDescriptionbuildComputeServerInterface(Account account, Instance instance, ComputeServer server, MorpheusComputeServerNetworkInterfaceConfig networkInterfaceConfig) Returns a ComputeNetworkInterface built from the provided parameters.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.restartServer(Long computeServerId) Restart a ComputeServer.startServer(Long computeServerId) Start a ComputeServer.stopServer(Long computeServerId) Stop a 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
-
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
-