Class AffinityGroupsServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.AffinityGroupsServiceImpl
-
- All Implemented Interfaces:
Service
,AffinityGroupsService
public class AffinityGroupsServiceImpl extends ServiceImpl implements AffinityGroupsService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.AffinityGroupsService
AffinityGroupsService.AddRequest, AffinityGroupsService.AddResponse, AffinityGroupsService.ListRequest, AffinityGroupsService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description AffinityGroupsServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AffinityGroupsService.AddRequest
add()
Create a new affinity group.AffinityGroupService
groupService(String id)
Access the affinity group service that manages the affinity group specified by an ID.AffinityGroupsService.ListRequest
list()
List existing affinity groups.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
-
AffinityGroupsServiceImpl
public AffinityGroupsServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public AffinityGroupsService.AddRequest add()
Description copied from interface:AffinityGroupsService
Create a new affinity group. Post a request like in the example below to create a new affinity group: [source] ---- POST /ovirt-engine/api/clusters/000-000/affinitygroups ---- And use the following example in its body: [source,xml] ----AF_GROUP_001 true true false - Specified by:
add
in interfaceAffinityGroupsService
-
list
public AffinityGroupsService.ListRequest list()
Description copied from interface:AffinityGroupsService
List existing affinity groups. The order of the affinity groups results isn't guaranteed.- Specified by:
list
in interfaceAffinityGroupsService
-
groupService
public AffinityGroupService groupService(String id)
Description copied from interface:AffinityGroupsService
Access the affinity group service that manages the affinity group specified by an ID.- Specified by:
groupService
in interfaceAffinityGroupsService
-
service
public Service service(String path)
Description copied from interface:AffinityGroupsService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceAffinityGroupsService
-
-