public class ClusterAffinityGroups extends CollectionDecorator<AffinityGroup,AffinityGroups,ClusterAffinityGroup>
ClusterAffinityGroups providing relation and functional services
to AffinityGroups.
| Constructor and Description |
|---|
ClusterAffinityGroups(HttpProxyBroker proxy,
Cluster parent) |
| Modifier and Type | Method and Description |
|---|---|
ClusterAffinityGroup |
add(AffinityGroup affinitygroup)
Adds AffinityGroup object.
|
ClusterAffinityGroup |
add(AffinityGroup affinitygroup,
String expect)
Adds AffinityGroup object.
|
ClusterAffinityGroup |
get(UUID id)
Fetches ClusterAffinityGroup object by id.
|
ClusterAffinityGroup |
getById(String id)
Fetches ClusterAffinityGroup object by id.
|
List<ClusterAffinityGroup> |
list()
Lists ClusterAffinityGroup objects.
|
List<ClusterAffinityGroup> |
list(Integer max)
Lists ClusterAffinityGroup objects.
|
getpublic ClusterAffinityGroups(HttpProxyBroker proxy, Cluster parent)
proxy - HttpProxyBrokerparent - Clusterpublic List<ClusterAffinityGroup> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<AffinityGroup,AffinityGroups,ClusterAffinityGroup>ClusterAffinityGrouporg.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 ClusterAffinityGroup get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<AffinityGroup,AffinityGroups,ClusterAffinityGroup>id - entity idClusterAffinityGrouporg.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 ClusterAffinityGroup getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<AffinityGroup,AffinityGroups,ClusterAffinityGroup>id - entity idClusterAffinityGrouporg.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<ClusterAffinityGroup> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max -
[max results]
ClusterAffinityGrouporg.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 ClusterAffinityGroup add(AffinityGroup affinitygroup) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
affinitygroup - AffinityGroup
affinitygroup.name
affinitygroup.positive
affinitygroup.enforcing
ClusterAffinityGrouporg.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 ClusterAffinityGroup add(AffinityGroup affinitygroup, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
affinitygroup - AffinityGroup
affinitygroup.name
affinitygroup.positive
affinitygroup.enforcing
expect -
[201-created]
ClusterAffinityGrouporg.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