public class DataCenterClusters extends CollectionDecorator<Cluster,Clusters,DataCenterCluster>
DataCenterClusters providing relation and functional services
to Clusters
.
Constructor and Description |
---|
DataCenterClusters(HttpProxyBroker proxy,
DataCenter parent) |
Modifier and Type | Method and Description |
---|---|
DataCenterCluster |
add(Cluster cluster)
Adds Cluster object.
|
DataCenterCluster |
add(Cluster cluster,
String expect)
Adds Cluster object.
|
DataCenterCluster |
add(Cluster cluster,
String expect,
String correlationId)
Adds Cluster object.
|
DataCenterCluster |
get(UUID id)
Fetches DataCenterCluster object by id.
|
DataCenterCluster |
getById(String id)
Fetches DataCenterCluster object by id.
|
List<DataCenterCluster> |
list()
Lists DataCenterCluster objects.
|
List<DataCenterCluster> |
list(Integer max)
Lists DataCenterCluster objects.
|
get
public DataCenterClusters(HttpProxyBroker proxy, DataCenter parent)
proxy
- HttpProxyBrokerparent
- DataCenterpublic List<DataCenterCluster> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Cluster,Clusters,DataCenterCluster>
DataCenterCluster
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public DataCenterCluster get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Cluster,Clusters,DataCenterCluster>
id
- entity idDataCenterCluster
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public DataCenterCluster getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<Cluster,Clusters,DataCenterCluster>
id
- entity idDataCenterCluster
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public DataCenterCluster add(Cluster cluster) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
cluster
- Cluster
cluster.name cluster.version.major cluster.version.minor cluster.cpu.id [cluster.description] [cluster.memory_policy.overcommit.percent] [cluster.memory_policy.transparent_hugepages.enabled] [cluster.scheduling_policy.policy] [cluster.scheduling_policy.thresholds.low] [cluster.scheduling_policy.thresholds.high] [cluster.scheduling_policy.thresholds.duration] [cluster.scheduling_policy.id] [cluster.scheduling_policy.properties.property] [cluster.error_handling.on_error] [cluster.virt_service] [cluster.gluster_service] [cluster.threads_as_cores] [cluster.tunnel_migration] [cluster.ballooning_enabled] [cluster.cpu.architecture] [cluster.display.proxy] [cluster.ksm.enabled] [cluster.management_network.id|name]
DataCenterCluster
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public DataCenterCluster add(Cluster cluster, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
cluster
- Cluster
cluster.name cluster.version.major cluster.version.minor cluster.cpu.id [cluster.description] [cluster.memory_policy.overcommit.percent] [cluster.memory_policy.transparent_hugepages.enabled] [cluster.scheduling_policy.policy] [cluster.scheduling_policy.thresholds.low] [cluster.scheduling_policy.thresholds.high] [cluster.scheduling_policy.thresholds.duration] [cluster.scheduling_policy.id] [cluster.scheduling_policy.properties.property] [cluster.error_handling.on_error] [cluster.virt_service] [cluster.gluster_service] [cluster.threads_as_cores] [cluster.tunnel_migration] [cluster.ballooning_enabled] [cluster.cpu.architecture] [cluster.display.proxy] [cluster.ksm.enabled] [cluster.management_network.id|name]
expect
- [201-created]
DataCenterCluster
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public DataCenterCluster add(Cluster cluster, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
cluster
- Cluster
cluster.name cluster.version.major cluster.version.minor cluster.cpu.id [cluster.description] [cluster.memory_policy.overcommit.percent] [cluster.memory_policy.transparent_hugepages.enabled] [cluster.scheduling_policy.policy] [cluster.scheduling_policy.thresholds.low] [cluster.scheduling_policy.thresholds.high] [cluster.scheduling_policy.thresholds.duration] [cluster.scheduling_policy.id] [cluster.scheduling_policy.properties.property] [cluster.error_handling.on_error] [cluster.virt_service] [cluster.gluster_service] [cluster.threads_as_cores] [cluster.tunnel_migration] [cluster.ballooning_enabled] [cluster.cpu.architecture] [cluster.display.proxy] [cluster.ksm.enabled] [cluster.management_network.id|name]
expect
- [201-created]
correlationId
- [any string]
DataCenterCluster
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public List<DataCenterCluster> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
DataCenterCluster
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.Copyright ? 2010 Red Hat, Inc - released under the Apache License Version 2.0