Class ClustersServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.ClustersServiceImpl
-
- All Implemented Interfaces:
Service
,ClustersService
public class ClustersServiceImpl extends ServiceImpl implements ClustersService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.ClustersService
ClustersService.AddRequest, ClustersService.AddResponse, ClustersService.ListRequest, ClustersService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description ClustersServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClustersService.AddRequest
add()
Creates a new cluster.ClusterService
clusterService(String id)
A reference to the service that manages a specific cluster.ClustersService.ListRequest
list()
Returns the list of clusters of the system.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
-
ClustersServiceImpl
public ClustersServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public ClustersService.AddRequest add()
Description copied from interface:ClustersService
Creates a new cluster. This requires the `name`, `cpu.type`, and `data_center` attributes. Identify the data center with either the `id` or `name` attribute. [source] ---- POST /ovirt-engine/api/clusters ---- With a request body like this: [source,xml] ----mycluster Intel Nehalem Family mycluster Intel Nehalem Family - Specified by:
add
in interfaceClustersService
-
list
public ClustersService.ListRequest list()
Description copied from interface:ClustersService
Returns the list of clusters of the system. The order of the returned clusters is guaranteed only if the `sortby` clause is included in the `search` parameter.- Specified by:
list
in interfaceClustersService
-
clusterService
public ClusterService clusterService(String id)
Description copied from interface:ClustersService
A reference to the service that manages a specific cluster.- Specified by:
clusterService
in interfaceClustersService
-
service
public Service service(String path)
Description copied from interface:ClustersService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceClustersService
-
-