Class StorageDomainDiskServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.MeasurableServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.StorageDomainDiskServiceImpl
-
- All Implemented Interfaces:
Service
,MeasurableService
,StorageDomainDiskService
public class StorageDomainDiskServiceImpl extends MeasurableServiceImpl implements StorageDomainDiskService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.StorageDomainDiskService
StorageDomainDiskService.CopyRequest, StorageDomainDiskService.CopyResponse, StorageDomainDiskService.ExportRequest, StorageDomainDiskService.ExportResponse, StorageDomainDiskService.GetRequest, StorageDomainDiskService.GetResponse, StorageDomainDiskService.MoveRequest, StorageDomainDiskService.MoveResponse, StorageDomainDiskService.ReduceRequest, StorageDomainDiskService.ReduceResponse, StorageDomainDiskService.RemoveRequest, StorageDomainDiskService.RemoveResponse, StorageDomainDiskService.SparsifyRequest, StorageDomainDiskService.SparsifyResponse, StorageDomainDiskService.UpdateRequest, StorageDomainDiskService.UpdateResponse
-
-
Constructor Summary
Constructors Constructor Description StorageDomainDiskServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageDomainDiskService.CopyRequest
copy()
Copies a disk to the specified storage domain.StorageDomainDiskService.ExportRequest
export()
Exports a disk to an export storage domain.StorageDomainDiskService.GetRequest
get()
Retrieves the description of the disk.StorageDomainDiskService.MoveRequest
move()
Moves a disk to another storage domain.AssignedPermissionsService
permissionsService()
Reference to the service that manages the permissions assigned to the disk.StorageDomainDiskService.ReduceRequest
reduce()
Reduces the size of the disk image.StorageDomainDiskService.RemoveRequest
remove()
Removes a disk.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.StorageDomainDiskService.SparsifyRequest
sparsify()
Sparsify the disk.StatisticsService
statisticsService()
String
toString()
StorageDomainDiskService.UpdateRequest
update()
Updates the disk.-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
StorageDomainDiskServiceImpl
public StorageDomainDiskServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
copy
public StorageDomainDiskService.CopyRequest copy()
Description copied from interface:StorageDomainDiskService
Copies a disk to the specified storage domain. IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards compatibility. It will be removed in the future. To copy a disk use the <> operation of the service that manages that disk. - Specified by:
copy
in interfaceStorageDomainDiskService
-
export
public StorageDomainDiskService.ExportRequest export()
Description copied from interface:StorageDomainDiskService
Exports a disk to an export storage domain. IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards compatibility. It will be removed in the future. To export a disk use the <> operation of the service that manages that disk. - Specified by:
export
in interfaceStorageDomainDiskService
-
get
public StorageDomainDiskService.GetRequest get()
Description copied from interface:StorageDomainDiskService
Retrieves the description of the disk.- Specified by:
get
in interfaceStorageDomainDiskService
-
move
public StorageDomainDiskService.MoveRequest move()
Description copied from interface:StorageDomainDiskService
Moves a disk to another storage domain. IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards compatibility. It will be removed in the future. To move a disk use the <> operation of the service that manages that disk. - Specified by:
move
in interfaceStorageDomainDiskService
-
reduce
public StorageDomainDiskService.ReduceRequest reduce()
Description copied from interface:StorageDomainDiskService
Reduces the size of the disk image. Invokes _reduce_ on the logical volume (i.e. this is only applicable for block storage domains). This is applicable for floating disks and disks attached to non-running virtual machines. There is no need to specify the size as the optimal size is calculated automatically.- Specified by:
reduce
in interfaceStorageDomainDiskService
-
remove
public StorageDomainDiskService.RemoveRequest remove()
Description copied from interface:StorageDomainDiskService
Removes a disk. IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards compatibility. It will be removed in the future. To remove a disk use the <> operation of the service that manages that disk. - Specified by:
remove
in interfaceStorageDomainDiskService
-
sparsify
public StorageDomainDiskService.SparsifyRequest sparsify()
Description copied from interface:StorageDomainDiskService
Sparsify the disk. IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards compatibility. It will be removed in the future. To remove a disk use the <> operation of the service that manages that disk. - Specified by:
sparsify
in interfaceStorageDomainDiskService
-
update
public StorageDomainDiskService.UpdateRequest update()
Description copied from interface:StorageDomainDiskService
Updates the disk. IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards compatibility. It will be removed in the future. To update a disk use the <> operation of the service that manages that disk. - Specified by:
update
in interfaceStorageDomainDiskService
-
permissionsService
public AssignedPermissionsService permissionsService()
Description copied from interface:StorageDomainDiskService
Reference to the service that manages the permissions assigned to the disk.- Specified by:
permissionsService
in interfaceStorageDomainDiskService
-
statisticsService
public StatisticsService statisticsService()
- Specified by:
statisticsService
in interfaceMeasurableService
- Overrides:
statisticsService
in classMeasurableServiceImpl
-
service
public Service service(String path)
Description copied from interface:MeasurableService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceMeasurableService
- Specified by:
service
in interfaceStorageDomainDiskService
- Overrides:
service
in classMeasurableServiceImpl
-
toString
public String toString()
- Overrides:
toString
in classMeasurableServiceImpl
-
-