Interface MorpheusComputeServerService

All Superinterfaces:
MorpheusDataQueryService<ComputeServer>, MorpheusDataService<ComputeServer,ComputeServerIdentityProjection>, MorpheusIdentityService<ComputeServerIdentityProjection>

Context methods for syncing ComputeServer in Morpheus
Since:
0.8.0
  • Method Details

    • listIdentityProjections

      io.reactivex.rxjava3.core.Observable<ComputeServerIdentityProjection> listIdentityProjections(Long cloudId, String regionCode)
      Get a list of ComputeServer projections based on Cloud id
      Parameters:
      cloudId - Cloud id
      regionCode - the ComputeZoneRegion to optionally filter by
      Returns:
      Observable stream of sync projection
    • listSyncProjections

      @Deprecated io.reactivex.rxjava3.core.Observable<ComputeServerIdentityProjection> listSyncProjections(Long cloudId)
      Deprecated.
      Get a list of ComputeServer 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 all ComputeServer 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

      io.reactivex.rxjava3.core.Observable<ComputeServer> listByResourcePoolId(Long resourcePoolId)
      Lists all ComputeServer objects by a ComputeZonePool.
      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 the ComputeServer
      state - power state
      Returns:
      void
    • getComputeServerInterface

      MorpheusComputeServerInterfaceService getComputeServerInterface()
      Returns the ComputeServerInterfaceContext used for performing updates or queries on ComputeServerInterface related assets within Morpheus.
      Returns:
      An instance of the ComputeServerInterface Context
    • getComputePort

      MorpheusComputePortService getComputePort()
      Returns the ComputePort context used for performing sync operations on ComputePort related assets within Morpheus.
      Returns:
      An instance of the ComputePort context
    • getAccess

      Returns the ComputePort context used for performing sync operations on ComputeServerAccess 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 the InstanceScale they are associated with
      Parameters:
      computeServers - ComputeServers to delete
      instanceScale - the InstanceScale instance to remove the servers from
      Returns:
      success
    • stopServer

      io.reactivex.rxjava3.core.Single<Boolean> stopServer(Long computeServerId)
      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

      io.reactivex.rxjava3.core.Single<Boolean> startServer(Long computeServerId)
      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

      io.reactivex.rxjava3.core.Single<Boolean> restartServer(Long computeServerId)
      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