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.
|
Action |
setupnetworks(Action action,
String correlationId,
Boolean async)
Performs setupnetworks action.
|
get
public 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>
HostNIC
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 HostNIC get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<HostNIC,HostNics,HostNIC>
id
- entity idHostNIC
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 HostNIC getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<HostNIC,HostNics,HostNIC>
id
- entity idHostNIC
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 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]
HostNIC
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 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]
HostNIC
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 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]
HostNIC
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<HostNIC> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
HostNIC
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 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] [action.async] [action.grace_period.expiry]
Action
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 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] [action.async] [action.grace_period.expiry]
correlationId
- [any string]
Action
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 Action setupnetworks(Action action, String correlationId, Boolean async) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
action
- Action
[action.host_nics.host_nic] [action.checkConnectivity] [action.connectivityTimeout] [action.force] [action.async] [action.grace_period.expiry]
correlationId
- [any string]
async
- [true|false]
Action
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