Class ImageTransferServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.ImageTransferServiceImpl
-
- All Implemented Interfaces:
Service
,ImageTransferService
public class ImageTransferServiceImpl extends ServiceImpl implements ImageTransferService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.ImageTransferService
ImageTransferService.CancelRequest, ImageTransferService.CancelResponse, ImageTransferService.ExtendRequest, ImageTransferService.ExtendResponse, ImageTransferService.FinalizeRequest, ImageTransferService.FinalizeResponse, ImageTransferService.GetRequest, ImageTransferService.GetResponse, ImageTransferService.PauseRequest, ImageTransferService.PauseResponse, ImageTransferService.ResumeRequest, ImageTransferService.ResumeResponse
-
-
Constructor Summary
Constructors Constructor Description ImageTransferServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageTransferService.CancelRequest
cancel()
Cancel the image transfer session.ImageTransferService.ExtendRequest
extend()
Extend the image transfer session.ImageTransferService.FinalizeRequest
finalize_()
After finishing to transfer the data, finalize the transfer.ImageTransferService.GetRequest
get()
Get the image transfer entity.ImageTransferService.PauseRequest
pause()
Pause the image transfer session.ImageTransferService.ResumeRequest
resume()
Resume the image transfer session.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.String
toString()
-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
ImageTransferServiceImpl
public ImageTransferServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
cancel
public ImageTransferService.CancelRequest cancel()
Description copied from interface:ImageTransferService
Cancel the image transfer session. This terminates the transfer operation and removes the partial image.- Specified by:
cancel
in interfaceImageTransferService
-
extend
public ImageTransferService.ExtendRequest extend()
Description copied from interface:ImageTransferService
Extend the image transfer session.- Specified by:
extend
in interfaceImageTransferService
-
finalize_
public ImageTransferService.FinalizeRequest finalize_()
Description copied from interface:ImageTransferService
After finishing to transfer the data, finalize the transfer. This will make sure that the data being transferred is valid and fits the image entity that was targeted in the transfer. Specifically, will verify that if the image entity is a QCOW disk, the data uploaded is indeed a QCOW file, and that the image doesn't have a backing file.- Specified by:
finalize_
in interfaceImageTransferService
-
get
public ImageTransferService.GetRequest get()
Description copied from interface:ImageTransferService
Get the image transfer entity.- Specified by:
get
in interfaceImageTransferService
-
pause
public ImageTransferService.PauseRequest pause()
Description copied from interface:ImageTransferService
Pause the image transfer session.- Specified by:
pause
in interfaceImageTransferService
-
resume
public ImageTransferService.ResumeRequest resume()
Description copied from interface:ImageTransferService
Resume the image transfer session. The client will need to poll the transfer's phase until it is different than `resuming`. For example: [source,python] ---- transfer_service = transfers_service.image_transfer_service(transfer.id) transfer_service.resume() transfer = transfer_service.get() while transfer.phase == types.ImageTransferPhase.RESUMING: time.sleep(1) transfer = transfer_service.get() ----- Specified by:
resume
in interfaceImageTransferService
-
service
public Service service(String path)
Description copied from interface:ImageTransferService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceImageTransferService
-
-