public class ClusterNetworks extends CollectionDecorator<Network,Networks,ClusterNetwork>
ClusterNetworks providing relation and functional services
to Networks.
| Constructor and Description |
|---|
ClusterNetworks(HttpProxyBroker proxy,
Cluster parent) |
| Modifier and Type | Method and Description |
|---|---|
ClusterNetwork |
add(Network network)
Adds Network object.
|
ClusterNetwork |
add(Network network,
String expect)
Adds Network object.
|
ClusterNetwork |
add(Network network,
String expect,
String correlationId)
Adds Network object.
|
ClusterNetwork |
get(UUID id)
Fetches ClusterNetwork object by id.
|
ClusterNetwork |
getById(String id)
Fetches ClusterNetwork object by id.
|
List<ClusterNetwork> |
list()
Lists ClusterNetwork objects.
|
List<ClusterNetwork> |
list(Integer max)
Lists ClusterNetwork objects.
|
getpublic ClusterNetworks(HttpProxyBroker proxy, Cluster parent)
proxy - HttpProxyBrokerparent - Clusterpublic List<ClusterNetwork> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<Network,Networks,ClusterNetwork>ClusterNetworkorg.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 ClusterNetwork get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<Network,Networks,ClusterNetwork>id - entity idClusterNetworkorg.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 ClusterNetwork getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<Network,Networks,ClusterNetwork>id - entity idClusterNetworkorg.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<ClusterNetwork> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max -
[max results]
ClusterNetworkorg.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 ClusterNetwork add(Network network) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
network - Network
network.id|name
[network.usages.usage]
ClusterNetworkorg.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 ClusterNetwork add(Network network, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
network - Network
network.id|name
[network.usages.usage]
expect -
[201-created]
ClusterNetworkorg.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 ClusterNetwork add(Network network, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
network - Network
network.id|name
[network.usages.usage]
expect -
[201-created]
correlationId -
[any string]
ClusterNetworkorg.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