Package com.morpheusdata.core
Interface MorpheusComputeServerService
- All Superinterfaces:
MorpheusDataService<ComputeServer,
,ComputeServerIdentityProjection> MorpheusIdentityService<ComputeServerIdentityProjection>
public interface MorpheusComputeServerService
extends MorpheusDataService<ComputeServer,ComputeServerIdentityProjection>, MorpheusIdentityService<ComputeServerIdentityProjection>
Context methods for syncing
ComputeServer
in Morpheus- Since:
- 0.8.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the ComputePort context used for performing sync operations onComputeServerAccess
related assets within Morpheus.Returns the ComputePort context used for performing sync operations onComputePort
related assets within Morpheus.Returns the ComputeServerInterfaceContext used for performing updates or queries onComputeServerInterface
related assets within Morpheus.io.reactivex.rxjava3.core.Observable<ComputeServer>
listByCloudAndExternalIdIn
(Long cloudId, Collection<String> externalIds) Lists allComputeServer
objects by cloud ID and a list of External IDs.io.reactivex.rxjava3.core.Observable<ComputeServer>
listByResourcePoolId
(Long resourcePoolId) Lists allComputeServer
objects by aComputeZonePool
.io.reactivex.rxjava3.core.Observable<ComputeServerIdentityProjection>
listIdentityProjections
(Long cloudId, String regionCode) Get a list ofComputeServer
projections based on Cloud idio.reactivex.rxjava3.core.Observable<ComputeServerIdentityProjection>
listSyncProjections
(Long cloudId) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>
remove
(List<ComputeServer> computeServers, InstanceScale instanceScale) Remove persisted ComputeServers from Morpheus and remove them theInstanceScale
they are associated withio.reactivex.rxjava3.core.Single<Void>
updatePowerState
(Long computeServerId, ComputeServer.PowerState state) Update the power state of a server and any related vmsMethods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, count, create, create, find, get, list, listById, listOptions, remove, remove, save, save, search
Methods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
listIdentityProjections
io.reactivex.rxjava3.core.Observable<ComputeServerIdentityProjection> listIdentityProjections(Long cloudId, String regionCode) Get a list ofComputeServer
projections based on Cloud id- Parameters:
cloudId
- Cloud idregionCode
- theComputeZoneRegion
to optionally filter by- Returns:
- Observable stream of sync projection
-
listSyncProjections
@Deprecated io.reactivex.rxjava3.core.Observable<ComputeServerIdentityProjection> listSyncProjections(Long cloudId) Deprecated.replaced by {listIdentityProjections(Long, String)
}Get a list ofComputeServer
projections based on Cloud id- Parameters:
cloudId
- Cloud id- Returns:
- Observable stream of sync projection
-
listByCloudAndExternalIdIn
io.reactivex.rxjava3.core.Observable<ComputeServer> listByCloudAndExternalIdIn(Long cloudId, Collection<String> externalIds) Lists allComputeServer
objects by cloud ID and a list of External IDs.- Parameters:
cloudId
- the cloud to filter the list of servers by.externalIds
- a Collection of external Ids to filter the list of servers by- Returns:
- an RxJava Observable stream of
ComputeServer
to be subscribed to.
-
listByResourcePoolId
Lists allComputeServer
objects by aComputeZonePool
.- Parameters:
resourcePoolId
- the id of the resource pool (ComputeZonePool) to filter the list of servers by.- Returns:
- an RxJava Observable stream of
ComputeServer
to be subscribed to.
-
updatePowerState
io.reactivex.rxjava3.core.Single<Void> updatePowerState(Long computeServerId, ComputeServer.PowerState state) Update the power state of a server and any related vms- Parameters:
computeServerId
- id of theComputeServer
state
- power state- Returns:
- void
-
getComputeServerInterface
MorpheusComputeServerInterfaceService getComputeServerInterface()Returns the ComputeServerInterfaceContext used for performing updates or queries onComputeServerInterface
related assets within Morpheus.- Returns:
- An instance of the ComputeServerInterface Context
-
getComputePort
MorpheusComputePortService getComputePort()Returns the ComputePort context used for performing sync operations onComputePort
related assets within Morpheus.- Returns:
- An instance of the ComputePort context
-
getAccess
MorpheusComputeServerAccessService getAccess()Returns the ComputePort context used for performing sync operations onComputeServerAccess
related assets within Morpheus.- Returns:
- An instance of the ComputeServerAccess context
-
remove
io.reactivex.rxjava3.core.Single<Boolean> remove(List<ComputeServer> computeServers, InstanceScale instanceScale) Remove persisted ComputeServers from Morpheus and remove them theInstanceScale
they are associated with- Parameters:
computeServers
- ComputeServers to deleteinstanceScale
- the InstanceScale instance to remove the servers from- Returns:
- success
-
listIdentityProjections(Long, String)
}