Class DataCenterServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.DataCenterServiceImpl
-
- All Implemented Interfaces:
Service
,DataCenterService
public class DataCenterServiceImpl extends ServiceImpl implements DataCenterService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.DataCenterService
DataCenterService.CleanFinishedTasksRequest, DataCenterService.CleanFinishedTasksResponse, DataCenterService.GetRequest, DataCenterService.GetResponse, DataCenterService.RemoveRequest, DataCenterService.RemoveResponse, DataCenterService.SetMasterRequest, DataCenterService.SetMasterResponse, DataCenterService.UpdateRequest, DataCenterService.UpdateResponse
-
-
Constructor Summary
Constructors Constructor Description DataCenterServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataCenterService.CleanFinishedTasksRequest
cleanFinishedTasks()
Currently, the storage pool manager (SPM) fails to switch to another host if the SPM has uncleared tasks.ClustersService
clustersService()
DataCenterService.GetRequest
get()
Get a data center.IscsiBondsService
iscsiBondsService()
Reference to the iSCSI bonds service.DataCenterNetworksService
networksService()
Returns a reference to the service, that manages the networks, that are associated with the data center.AssignedPermissionsService
permissionsService()
Reference to the permissions service.QossService
qossService()
Reference to the QOSs service.QuotasService
quotasService()
Reference to the quotas service.DataCenterService.RemoveRequest
remove()
Removes the data center.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.DataCenterService.SetMasterRequest
setMaster()
Used for manually setting a storage domain in the data center as a master.AttachedStorageDomainsService
storageDomainsService()
Attach and detach storage domains to and from a data center.String
toString()
DataCenterService.UpdateRequest
update()
Updates the data center.-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
DataCenterServiceImpl
public DataCenterServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
cleanFinishedTasks
public DataCenterService.CleanFinishedTasksRequest cleanFinishedTasks()
Description copied from interface:DataCenterService
Currently, the storage pool manager (SPM) fails to switch to another host if the SPM has uncleared tasks. Clearing all finished tasks enables the SPM switching. For example, to clean all the finished tasks on a data center with ID `123` send a request like this: [source] ---- POST /ovirt-engine/api/datacenters/123/cleanfinishedtasks ---- With a request body like this: [source,xml] -------- - Specified by:
cleanFinishedTasks
in interfaceDataCenterService
-
get
public DataCenterService.GetRequest get()
Description copied from interface:DataCenterService
Get a data center. An example of getting a data center: [source] ---- GET /ovirt-engine/api/datacenters/123 ---- [source,xml] ----Default The default Data Center false disabled up v3 4 0 4 0 - Specified by:
get
in interfaceDataCenterService
-
remove
public DataCenterService.RemoveRequest remove()
Description copied from interface:DataCenterService
Removes the data center. [source] ---- DELETE /ovirt-engine/api/datacenters/123 ---- Without any special parameters, the storage domains attached to the data center are detached and then removed from the storage. If something fails when performing this operation, for example if there is no host available to remove the storage domains from the storage, the complete operation will fail. If the `force` parameter is `true` then the operation will always succeed, even if something fails while removing one storage domain, for example. The failure is just ignored and the data center is removed from the database anyway.- Specified by:
remove
in interfaceDataCenterService
-
setMaster
public DataCenterService.SetMasterRequest setMaster()
Description copied from interface:DataCenterService
Used for manually setting a storage domain in the data center as a master. For example, for setting a storage domain with ID '456' as a master on a data center with ID '123', send a request like this: [source] ---- POST /ovirt-engine/api/datacenters/123/setmaster ---- With a request body like this: [source,xml] ----- Specified by:
setMaster
in interfaceDataCenterService
-
update
public DataCenterService.UpdateRequest update()
Description copied from interface:DataCenterService
Updates the data center. The `name`, `description`, `storage_type`, `version`, `storage_format` and `mac_pool` elements are updatable post-creation. For example, to change the name and description of data center `123` send a request like this: [source] ---- PUT /ovirt-engine/api/datacenters/123 ---- With a request body like this: [source,xml] ----myupdatedname An updated description for the data center - Specified by:
update
in interfaceDataCenterService
-
clustersService
public ClustersService clustersService()
- Specified by:
clustersService
in interfaceDataCenterService
-
iscsiBondsService
public IscsiBondsService iscsiBondsService()
Description copied from interface:DataCenterService
Reference to the iSCSI bonds service.- Specified by:
iscsiBondsService
in interfaceDataCenterService
-
networksService
public DataCenterNetworksService networksService()
Description copied from interface:DataCenterService
Returns a reference to the service, that manages the networks, that are associated with the data center.- Specified by:
networksService
in interfaceDataCenterService
-
permissionsService
public AssignedPermissionsService permissionsService()
Description copied from interface:DataCenterService
Reference to the permissions service.- Specified by:
permissionsService
in interfaceDataCenterService
-
qossService
public QossService qossService()
Description copied from interface:DataCenterService
Reference to the QOSs service.- Specified by:
qossService
in interfaceDataCenterService
-
quotasService
public QuotasService quotasService()
Description copied from interface:DataCenterService
Reference to the quotas service.- Specified by:
quotasService
in interfaceDataCenterService
-
storageDomainsService
public AttachedStorageDomainsService storageDomainsService()
Description copied from interface:DataCenterService
Attach and detach storage domains to and from a data center. For attaching a single storage domain we should use the following POST request: [source] ---- POST /ovirt-engine/api/datacenters/123/storagedomains ---- With a request body like this: [source,xml] ----data1 - Specified by:
storageDomainsService
in interfaceDataCenterService
-
service
public Service service(String path)
Description copied from interface:DataCenterService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceDataCenterService
-
-