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,
String correlationId)
Adds Network object.
|
ClusterNetwork |
get(UUID id)
Fetches ClusterNetwork object by id.
|
List<ClusterNetwork> |
list()
Lists ClusterNetwork objects.
|
List<ClusterNetwork> |
list(Integer max)
Lists ClusterNetwork objects.
|
get
public 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>
ClusterNetwork
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 ClusterNetwork get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Network,Networks,ClusterNetwork>
id
- entity idClusterNetwork
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<ClusterNetwork> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
ClusterNetwork
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 ClusterNetwork add(Network network) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
network
- Network
network.id|name [network.usages.usage]
ClusterNetwork
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 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]
ClusterNetwork
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