public class VMHostDevices extends CollectionDecorator<HostDevice,HostDevices,VMHostDevice>
VMHostDevices providing relation and functional services
to HostDevices.
| Constructor and Description |
|---|
VMHostDevices(HttpProxyBroker proxy,
VM parent) |
| Modifier and Type | Method and Description |
|---|---|
VMHostDevice |
add(HostDevice hostdevice)
Adds HostDevice object.
|
VMHostDevice |
add(HostDevice hostdevice,
String correlationId)
Adds HostDevice object.
|
VMHostDevice |
add(HostDevice hostdevice,
String correlationId,
String expect)
Adds HostDevice object.
|
VMHostDevice |
get(UUID id)
Fetches VMHostDevice object by id.
|
VMHostDevice |
getById(String id)
Fetches VMHostDevice object by id.
|
List<VMHostDevice> |
list()
Lists VMHostDevice objects.
|
List<VMHostDevice> |
list(Integer max)
Lists VMHostDevice objects.
|
getpublic VMHostDevices(HttpProxyBroker proxy, VM parent)
proxy - HttpProxyBrokerparent - VMpublic List<VMHostDevice> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<HostDevice,HostDevices,VMHostDevice>VMHostDeviceorg.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 VMHostDevice get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<HostDevice,HostDevices,VMHostDevice>id - entity idVMHostDeviceorg.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 VMHostDevice getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<HostDevice,HostDevices,VMHostDevice>id - entity idVMHostDeviceorg.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 VMHostDevice add(HostDevice hostdevice) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
hostdevice - HostDevice
host_device.id|name
VMHostDeviceorg.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 VMHostDevice add(HostDevice hostdevice, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
hostdevice - HostDevice
host_device.id|name
correlationId -
[any string]
VMHostDeviceorg.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 VMHostDevice add(HostDevice hostdevice, String correlationId, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
hostdevice - HostDevice
host_device.id|name
correlationId -
[any string]
expect -
[201-created]
VMHostDeviceorg.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<VMHostDevice> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max -
[max results]
VMHostDeviceorg.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