Package com.morpheusdata.core
Interface MorpheusInstanceService
- All Superinterfaces:
MorpheusDataQueryService<Instance>
,MorpheusDataService<Instance,
InstanceIdentityProjection>
public interface MorpheusInstanceService
extends MorpheusDataService<Instance,InstanceIdentityProjection>
Context methods for dealing with
Instance
in Morpheus-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<ServiceResponse>
delete
(Instance instance, DeleteInstanceRequest deleteRequest) Delete the existing Instance from Morpheus and the resources from the underlying Cloud.io.reactivex.rxjava3.core.Observable<Cloud>
getInstanceClouds
(Instance instance) getScale()
Returns the Instance Scale ServiceReturns the Instance Threshold ServiceMethods inherited from interface com.morpheusdata.core.MorpheusDataQueryService
count, find, get, list, list, listById, listOptions, listOptions, search
Methods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, create, create, remove, remove, save, save
-
Method Details
-
delete
io.reactivex.rxjava3.core.Single<ServiceResponse> delete(Instance instance, DeleteInstanceRequest deleteRequest) Delete the existing Instance from Morpheus and the resources from the underlying Cloud. Use with caution as resources within the Cloud will be deleted.- Parameters:
instance
- Instance to deletedeleteRequest
- Options for the delete- Returns:
- ServiceResponse indicating success or failure. This is an async request within Morpheus and the return will not capture any underlying errors experienced asynchronously.
-
getInstanceClouds
-
getScale
MorpheusInstanceScaleService getScale()Returns the Instance Scale Service- Returns:
- An instance of the Instance Scale Service
-
getThreshold
MorpheusInstanceThresholdService getThreshold()Returns the Instance Threshold Service- Returns:
- An instance of the Instance Threshold Service
-