Class StorageDomainServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.StorageDomainServiceImpl
-
- All Implemented Interfaces:
Service
,StorageDomainService
public class StorageDomainServiceImpl extends ServiceImpl implements StorageDomainService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.StorageDomainService
StorageDomainService.GetRequest, StorageDomainService.GetResponse, StorageDomainService.IsAttachedRequest, StorageDomainService.IsAttachedResponse, StorageDomainService.ReduceLunsRequest, StorageDomainService.ReduceLunsResponse, StorageDomainService.RefreshLunsRequest, StorageDomainService.RefreshLunsResponse, StorageDomainService.RemoveRequest, StorageDomainService.RemoveResponse, StorageDomainService.UpdateOvfStoreRequest, StorageDomainService.UpdateOvfStoreResponse, StorageDomainService.UpdateRequest, StorageDomainService.UpdateResponse
-
-
Constructor Summary
Constructors Constructor Description StorageDomainServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssignedDiskProfilesService
diskProfilesService()
DiskSnapshotsService
diskSnapshotsService()
StorageDomainDisksService
disksService()
Reference to the service that manages the disks available in the storage domain.FilesService
filesService()
Returns a reference to the service that manages the files available in the storage domain.StorageDomainService.GetRequest
get()
Retrieves the description of the storage domain.ImagesService
imagesService()
StorageDomainService.IsAttachedRequest
isAttached()
Used for querying if the storage domain is already attached to a data center using the is_attached boolean field, which is part of the storage server.AssignedPermissionsService
permissionsService()
StorageDomainService.ReduceLunsRequest
reduceLuns()
This operation reduces logical units from the storage domain.StorageDomainService.RefreshLunsRequest
refreshLuns()
This operation refreshes the LUN size.StorageDomainService.RemoveRequest
remove()
Removes the storage domain.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.StorageDomainServerConnectionsService
storageConnectionsService()
Returns a reference to the service that manages the storage connections.StorageDomainTemplatesService
templatesService()
String
toString()
StorageDomainService.UpdateRequest
update()
Updates a storage domain.StorageDomainService.UpdateOvfStoreRequest
updateOvfStore()
This operation forces the update of the `OVF_STORE` of this storage domain.StorageDomainVmsService
vmsService()
-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
StorageDomainServiceImpl
public StorageDomainServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
get
public StorageDomainService.GetRequest get()
Description copied from interface:StorageDomainService
Retrieves the description of the storage domain.- Specified by:
get
in interfaceStorageDomainService
-
isAttached
public StorageDomainService.IsAttachedRequest isAttached()
Description copied from interface:StorageDomainService
Used for querying if the storage domain is already attached to a data center using the is_attached boolean field, which is part of the storage server. IMPORTANT: Executing this API will cause the host to disconnect from the storage domain.- Specified by:
isAttached
in interfaceStorageDomainService
-
reduceLuns
public StorageDomainService.ReduceLunsRequest reduceLuns()
Description copied from interface:StorageDomainService
This operation reduces logical units from the storage domain. In order to do so the data stored on the provided logical units will be moved to other logical units of the storage domain and only then they will be reduced from the storage domain. For example, in order to reduce two logical units from a storage domain send a request like this: [source] ---- POST /ovirt-engine/api/storageDomains/123/reduceluns ---- With a request body like this: [source,xml] ----of iSCSI or FCP). - Specified by:
reduceLuns
in interfaceStorageDomainService
-
refreshLuns
public StorageDomainService.RefreshLunsRequest refreshLuns()
Description copied from interface:StorageDomainService
This operation refreshes the LUN size. After increasing the size of the underlying LUN on the storage server, the user can refresh the LUN size. This action forces a rescan of the provided LUNs and updates the database with the new size, if required. For example, in order to refresh the size of two LUNs send a request like this: [source] ---- POST /ovirt-engine/api/storageDomains/262b056b-aede-40f1-9666-b883eff59d40/refreshluns ---- With a request body like this: [source,xml] ----- Specified by:
refreshLuns
in interfaceStorageDomainService
-
remove
public StorageDomainService.RemoveRequest remove()
Description copied from interface:StorageDomainService
Removes the storage domain. Without any special parameters, the storage domain is detached from the system and removed from the database. The storage domain can then be imported to the same or to a different setup, with all the data on it. If the storage is not accessible the operation will fail. If the `destroy` parameter is `true` then the operation will always succeed, even if the storage is not accessible, the failure is just ignored and the storage domain is removed from the database anyway. If the `format` parameter is `true` then the actual storage is formatted, and the metadata is removed from the LUN or directory, so it can no longer be imported to the same or to a different setup.- Specified by:
remove
in interfaceStorageDomainService
-
update
public StorageDomainService.UpdateRequest update()
Description copied from interface:StorageDomainService
Updates a storage domain. Not all of the <>'s attributes are updatable after creation. Those that can be updated are: `name`, `description`, `comment`, `warning_low_space_indicator`, `critical_space_action_blocker` and `wipe_after_delete.` (Note that changing the `wipe_after_delete` attribute will not change the wipe after delete property of disks that already exist). To update the `name` and `wipe_after_delete` attributes of a storage domain with an identifier `123`, send a request as follows: [source] ---- PUT /ovirt-engine/api/storageDomains/123 ---- With a request body as follows: [source,xml] ---- data2 true - Specified by:
update
in interfaceStorageDomainService
-
updateOvfStore
public StorageDomainService.UpdateOvfStoreRequest updateOvfStore()
Description copied from interface:StorageDomainService
This operation forces the update of the `OVF_STORE` of this storage domain. The `OVF_STORE` is a disk image that contains the metadata of virtual machines and disks that reside in the storage domain. This metadata is used in case the domain is imported or exported to or from a different data center or a different installation. By default the `OVF_STORE` is updated periodically (set by default to 60 minutes) but users might want to force an update after an important change, or when the they believe the `OVF_STORE` is corrupt. When initiated by the user, `OVF_STORE` update will be performed whether an update is needed or not.- Specified by:
updateOvfStore
in interfaceStorageDomainService
-
diskProfilesService
public AssignedDiskProfilesService diskProfilesService()
- Specified by:
diskProfilesService
in interfaceStorageDomainService
-
diskSnapshotsService
public DiskSnapshotsService diskSnapshotsService()
- Specified by:
diskSnapshotsService
in interfaceStorageDomainService
-
disksService
public StorageDomainDisksService disksService()
Description copied from interface:StorageDomainService
Reference to the service that manages the disks available in the storage domain.- Specified by:
disksService
in interfaceStorageDomainService
-
filesService
public FilesService filesService()
Description copied from interface:StorageDomainService
Returns a reference to the service that manages the files available in the storage domain.- Specified by:
filesService
in interfaceStorageDomainService
-
imagesService
public ImagesService imagesService()
- Specified by:
imagesService
in interfaceStorageDomainService
-
permissionsService
public AssignedPermissionsService permissionsService()
- Specified by:
permissionsService
in interfaceStorageDomainService
-
storageConnectionsService
public StorageDomainServerConnectionsService storageConnectionsService()
Description copied from interface:StorageDomainService
Returns a reference to the service that manages the storage connections.- Specified by:
storageConnectionsService
in interfaceStorageDomainService
-
templatesService
public StorageDomainTemplatesService templatesService()
- Specified by:
templatesService
in interfaceStorageDomainService
-
vmsService
public StorageDomainVmsService vmsService()
- Specified by:
vmsService
in interfaceStorageDomainService
-
service
public Service service(String path)
Description copied from interface:StorageDomainService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceStorageDomainService
-
-