Class AffinityGroupHostsServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.AffinityGroupHostsServiceImpl
-
- All Implemented Interfaces:
Service
,AffinityGroupHostsService
public class AffinityGroupHostsServiceImpl extends ServiceImpl implements AffinityGroupHostsService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.AffinityGroupHostsService
AffinityGroupHostsService.AddRequest, AffinityGroupHostsService.AddResponse, AffinityGroupHostsService.ListRequest, AffinityGroupHostsService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description AffinityGroupHostsServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AffinityGroupHostsService.AddRequest
add()
Adds a host to the affinity group.AffinityGroupHostService
hostService(String id)
Access the service that manages the host assignment to this affinity group.AffinityGroupHostsService.ListRequest
list()
List all hosts assigned to this affinity group.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
-
AffinityGroupHostsServiceImpl
public AffinityGroupHostsServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public AffinityGroupHostsService.AddRequest add()
Description copied from interface:AffinityGroupHostsService
Adds a host to the affinity group. For example, to add the host `789` to the affinity group `456` of cluster `123`, send a request like this: .... POST /ovirt-engine/api/clusters/123/affinitygroups/456/hosts .... With the following body: [source,xml] -------- - Specified by:
add
in interfaceAffinityGroupHostsService
-
list
public AffinityGroupHostsService.ListRequest list()
Description copied from interface:AffinityGroupHostsService
List all hosts assigned to this affinity group. The order of the returned hosts isn't guaranteed.- Specified by:
list
in interfaceAffinityGroupHostsService
-
hostService
public AffinityGroupHostService hostService(String id)
Description copied from interface:AffinityGroupHostsService
Access the service that manages the host assignment to this affinity group.- Specified by:
hostService
in interfaceAffinityGroupHostsService
-
service
public Service service(String path)
Description copied from interface:AffinityGroupHostsService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceAffinityGroupHostsService
-
-