public class Clusters extends CollectionDecorator<Cluster,Clusters,Cluster>
Clusters providing relation and functional services
to Clusters.
| Constructor and Description |
|---|
Clusters(HttpProxyBroker proxy) |
| Modifier and Type | Method and Description |
|---|---|
Cluster |
add(Cluster cluster)
Adds Cluster object.
|
Cluster |
add(Cluster cluster,
String expect)
Adds Cluster object.
|
Cluster |
add(Cluster cluster,
String expect,
String correlationId)
Adds Cluster object.
|
Cluster |
get(UUID id)
Fetches Cluster object by id.
|
Cluster |
getById(String id)
Fetches Cluster object by id.
|
List<Cluster> |
list()
Lists Cluster objects.
|
List<Cluster> |
list(String query,
Boolean caseSensitive,
Integer max)
Lists Cluster objects.
|
getpublic Clusters(HttpProxyBroker proxy)
proxy - HttpProxyBrokerpublic List<Cluster> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<Cluster,Clusters,Cluster>Clusterorg.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 Cluster get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<Cluster,Clusters,Cluster>id - entity idClusterorg.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 Cluster getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<Cluster,Clusters,Cluster>id - entity idClusterorg.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<Cluster> list(String query, Boolean caseSensitive, Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
query -
[search query]
caseSensitive -
[true|false]
max -
[max results]
Clusterorg.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 Cluster add(Cluster cluster) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
cluster - Cluster
cluster.data_center.id|name
cluster.name
cluster.version.major
cluster.version.minor
cluster.cpu.id
[cluster.description]
[cluster.comment]
[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.trusted_service]
[cluster.ha_reservation]
[cluster.ballooning_enabled]
[cluster.cpu.architecture]
[cluster.display.proxy]
[cluster.ksm.enabled]
Clusterorg.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 Cluster add(Cluster cluster, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
cluster - Cluster
cluster.data_center.id|name
cluster.name
cluster.version.major
cluster.version.minor
cluster.cpu.id
[cluster.description]
[cluster.comment]
[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.trusted_service]
[cluster.ha_reservation]
[cluster.ballooning_enabled]
[cluster.cpu.architecture]
[cluster.display.proxy]
[cluster.ksm.enabled]
expect -
[201-created]
Clusterorg.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 Cluster add(Cluster cluster, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
cluster - Cluster
cluster.data_center.id|name
cluster.name
cluster.version.major
cluster.version.minor
cluster.cpu.id
[cluster.description]
[cluster.comment]
[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.trusted_service]
[cluster.ha_reservation]
[cluster.ballooning_enabled]
[cluster.cpu.architecture]
[cluster.display.proxy]
[cluster.ksm.enabled]
expect -
[201-created]
correlationId -
[any string]
Clusterorg.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