Class AffinityGroupVmsServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.AffinityGroupVmsServiceImpl
-
- All Implemented Interfaces:
Service
,AffinityGroupVmsService
public class AffinityGroupVmsServiceImpl extends ServiceImpl implements AffinityGroupVmsService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.AffinityGroupVmsService
AffinityGroupVmsService.AddRequest, AffinityGroupVmsService.AddResponse, AffinityGroupVmsService.ListRequest, AffinityGroupVmsService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description AffinityGroupVmsServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AffinityGroupVmsService.AddRequest
add()
Adds a virtual machine to the affinity group.AffinityGroupVmsService.ListRequest
list()
List all virtual machines assigned to this affinity group.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.String
toString()
AffinityGroupVmService
vmService(String id)
Access the service that manages the virtual machine assignment to this affinity group.-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
AffinityGroupVmsServiceImpl
public AffinityGroupVmsServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public AffinityGroupVmsService.AddRequest add()
Description copied from interface:AffinityGroupVmsService
Adds a virtual machine to the affinity group. For example, to add the virtual machine `789` to the affinity group `456` of cluster `123`, send a request like this: .... POST /ovirt-engine/api/clusters/123/affinitygroups/456/vms .... With the following body: [source,xml] -------- - Specified by:
add
in interfaceAffinityGroupVmsService
-
list
public AffinityGroupVmsService.ListRequest list()
Description copied from interface:AffinityGroupVmsService
List all virtual machines assigned to this affinity group. The order of the returned virtual machines isn't guaranteed.- Specified by:
list
in interfaceAffinityGroupVmsService
-
vmService
public AffinityGroupVmService vmService(String id)
Description copied from interface:AffinityGroupVmsService
Access the service that manages the virtual machine assignment to this affinity group.- Specified by:
vmService
in interfaceAffinityGroupVmsService
-
service
public Service service(String path)
Description copied from interface:AffinityGroupVmsService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceAffinityGroupVmsService
-
-