Package com.morpheusdata.core
Interface MorpheusComputeServerGroupService
- All Superinterfaces:
MorpheusDataQueryService<ComputeServerGroup>,MorpheusDataService<ComputeServerGroup,,ComputeServerGroup> MorpheusIdentityService<ComputeServerGroup>
public interface MorpheusComputeServerGroupService
extends MorpheusDataService<ComputeServerGroup,ComputeServerGroup>, MorpheusIdentityService<ComputeServerGroup>
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<ServiceResponse<List<ComputeServer>>>addServerGroupServers(ComputeServerGroup cluster, ComputeTypeLayout layout, AddServerGroupServersRequest request) Add one or more servers to an existing cluster.io.reactivex.rxjava3.core.Single<ServiceResponse>executeUpdate(UpdateDefinition updateDefinition, ComputeServerGroup serverGroup) Executes an update definition against the target cluster via the plugin'sClusterUpdateFacet.getType()Returns the Compute Server Group Type Serviceio.reactivex.rxjava3.core.Single<ServiceResponse>postUpdate(UpdateDefinition updateDefinition, ComputeServerGroup serverGroup) Runs post-update logic for the target cluster via the plugin'sClusterUpdateFacet.io.reactivex.rxjava3.core.Single<ServiceResponse>refreshUpdate(ComputeServerGroup serverGroup) Refreshes update status on the target cluster via the plugin'sClusterUpdateFacet.io.reactivex.rxjava3.core.Single<ServiceResponse>rollbackUpdate(UpdateDefinition updateDefinition, ComputeServerGroup serverGroup) Rolls back an update on the target cluster via the plugin'sClusterUpdateFacet.io.reactivex.rxjava3.core.Single<ServiceResponse>validateUpdate(UpdateDefinition updateDefinition, ComputeServerGroup serverGroup) Validates an update definition against the target cluster via the plugin'sClusterUpdateFacet.Methods inherited from interface com.morpheusdata.core.MorpheusDataQueryService
count, find, get, list, list, listById, listOptions, listOptions, searchMethods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, create, create, remove, remove, save, saveMethods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
getType
MorpheusComputeServerGroupTypeService getType()Returns the Compute Server Group Type Service- Returns:
- An instance of the Compute Server Group Type Service
-
addServerGroupServers
io.reactivex.rxjava3.core.Single<ServiceResponse<List<ComputeServer>>> addServerGroupServers(ComputeServerGroup cluster, ComputeTypeLayout layout, AddServerGroupServersRequest request) Add one or more servers to an existing cluster. Follows the same flow as thePOST /api/clusters/:id/serversREST API endpoint, including license checks, policy enforcement, and async provisioning.- Parameters:
cluster- the target cluster (server group)layout- the ComputeTypeLayout to use for provisioningrequest- the request object describing the server(s) to add- Returns:
- a
ServiceResponseindicating success. If the servers are created synchronously, the response data will include the list of added servers. If the servers are provisioned asynchronously, the response data will be empty - Since:
- 1.4.0
-
validateUpdate
io.reactivex.rxjava3.core.Single<ServiceResponse> validateUpdate(UpdateDefinition updateDefinition, ComputeServerGroup serverGroup) Validates an update definition against the target cluster via the plugin'sClusterUpdateFacet.- Parameters:
updateDefinition- the update definition to validateserverGroup- the target cluster- Returns:
- a ServiceResponse indicating validation success or failure
- Since:
- 1.4.0
-
executeUpdate
io.reactivex.rxjava3.core.Single<ServiceResponse> executeUpdate(UpdateDefinition updateDefinition, ComputeServerGroup serverGroup) Executes an update definition against the target cluster via the plugin'sClusterUpdateFacet.- Parameters:
updateDefinition- the update definition to executeserverGroup- the target cluster- Returns:
- a ServiceResponse indicating execution success or failure
- Since:
- 1.4.0
-
postUpdate
io.reactivex.rxjava3.core.Single<ServiceResponse> postUpdate(UpdateDefinition updateDefinition, ComputeServerGroup serverGroup) Runs post-update logic for the target cluster via the plugin'sClusterUpdateFacet.- Parameters:
updateDefinition- the update definitionserverGroup- the target cluster- Returns:
- a ServiceResponse indicating success or failure
- Since:
- 1.4.0
-
rollbackUpdate
io.reactivex.rxjava3.core.Single<ServiceResponse> rollbackUpdate(UpdateDefinition updateDefinition, ComputeServerGroup serverGroup) Rolls back an update on the target cluster via the plugin'sClusterUpdateFacet.- Parameters:
updateDefinition- the update definition to rollbackserverGroup- the target cluster- Returns:
- a ServiceResponse indicating success or failure
- Since:
- 1.4.0
-
refreshUpdate
Refreshes update status on the target cluster via the plugin'sClusterUpdateFacet.- Parameters:
serverGroup- the target cluster- Returns:
- a ServiceResponse indicating success or failure
- Since:
- 1.4.0
-