public class HostNICs extends CollectionDecorator<HostNIC,HostNics,HostNIC>
HostNICs providing relation and functional services
to HostNics.
| Constructor and Description |
|---|
HostNICs(HttpProxyBroker proxy,
Host parent) |
| Modifier and Type | Method and Description |
|---|---|
HostNIC |
add(HostNIC hostnic)
Adds HostNIC object.
|
HostNIC |
add(HostNIC hostnic,
String expect)
Adds HostNIC object.
|
HostNIC |
add(HostNIC hostnic,
String expect,
String correlationId)
Adds HostNIC object.
|
HostNIC |
get(UUID id)
Fetches HostNIC object by id.
|
HostNIC |
getById(String id)
Fetches HostNIC object by id.
|
List<HostNIC> |
list()
Lists HostNIC objects.
|
List<HostNIC> |
list(Integer max)
Lists HostNIC objects.
|
Action |
setupnetworks(Action action)
Performs setupnetworks action.
|
Action |
setupnetworks(Action action,
String correlationId)
Performs setupnetworks action.
|
getpublic HostNICs(HttpProxyBroker proxy, Host parent)
proxy - HttpProxyBrokerparent - Hostpublic List<HostNIC> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<HostNIC,HostNics,HostNIC>HostNICorg.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 HostNIC get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<HostNIC,HostNics,HostNIC>id - entity idHostNICorg.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 HostNIC getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<HostNIC,HostNics,HostNIC>id - entity idHostNICorg.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 Action setupnetworks(Action action) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
action - Action
[action.host_nics.host_nic]
[action.checkConnectivity]
[action.connectivityTimeout]
[action.force]
Actionorg.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 Action setupnetworks(Action action, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
action - Action
[action.host_nics.host_nic]
[action.checkConnectivity]
[action.connectivityTimeout]
[action.force]
correlationId -
[any string]
Actionorg.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<HostNIC> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max -
[max results]
HostNICorg.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 HostNIC add(HostNIC hostnic) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
hostnic - HostNIC
hostnic.network.id|name
hostnic.name
hostnic.bonding.slaves.host_nic
[hostnic.bonding.options.option]
HostNICorg.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 HostNIC add(HostNIC hostnic, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
hostnic - HostNIC
hostnic.network.id|name
hostnic.name
hostnic.bonding.slaves.host_nic
[hostnic.bonding.options.option]
expect -
[201-created]
HostNICorg.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 HostNIC add(HostNIC hostnic, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
hostnic - HostNIC
hostnic.network.id|name
hostnic.name
hostnic.bonding.slaves.host_nic
[hostnic.bonding.options.option]
expect -
[201-created]
correlationId -
[any string]
HostNICorg.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