Class SnapshotServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.SnapshotServiceImpl
-
- All Implemented Interfaces:
Service
,SnapshotService
public class SnapshotServiceImpl extends ServiceImpl implements SnapshotService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.SnapshotService
SnapshotService.GetRequest, SnapshotService.GetResponse, SnapshotService.RemoveRequest, SnapshotService.RemoveResponse, SnapshotService.RestoreRequest, SnapshotService.RestoreResponse
-
-
Constructor Summary
Constructors Constructor Description SnapshotServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnapshotCdromsService
cdromsService()
SnapshotDisksService
disksService()
SnapshotService.GetRequest
get()
SnapshotNicsService
nicsService()
SnapshotService.RemoveRequest
remove()
SnapshotService.RestoreRequest
restore()
Restores a virtual machine snapshot.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
-
SnapshotServiceImpl
public SnapshotServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
get
public SnapshotService.GetRequest get()
- Specified by:
get
in interfaceSnapshotService
-
remove
public SnapshotService.RemoveRequest remove()
- Specified by:
remove
in interfaceSnapshotService
-
restore
public SnapshotService.RestoreRequest restore()
Description copied from interface:SnapshotService
Restores a virtual machine snapshot. For example, to restore the snapshot with identifier `456` of virtual machine with identifier `123` send a request like this: [source] ---- POST /ovirt-engine/api/vms/123/snapshots/456/restore ---- With an empty `action` in the body: [source,xml] -------- NOTE: Confirm that the commit operation is finished and the virtual machine is down before running the virtual machine. - Specified by:
restore
in interfaceSnapshotService
-
cdromsService
public SnapshotCdromsService cdromsService()
- Specified by:
cdromsService
in interfaceSnapshotService
-
disksService
public SnapshotDisksService disksService()
- Specified by:
disksService
in interfaceSnapshotService
-
nicsService
public SnapshotNicsService nicsService()
- Specified by:
nicsService
in interfaceSnapshotService
-
service
public Service service(String path)
Description copied from interface:SnapshotService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceSnapshotService
-
-