public class VMWatchDogs extends CollectionDecorator<WatchDog,WatchDogs,VMWatchDog>
VMWatchDogs providing relation and functional services
to WatchDogs.
| Constructor and Description |
|---|
VMWatchDogs(HttpProxyBroker proxy,
VM parent) |
| Modifier and Type | Method and Description |
|---|---|
VMWatchDog |
add(WatchDog watchdog)
Adds WatchDog object.
|
VMWatchDog |
add(WatchDog watchdog,
String expect)
Adds WatchDog object.
|
VMWatchDog |
add(WatchDog watchdog,
String expect,
String correlationId)
Adds WatchDog object.
|
VMWatchDog |
get(UUID id)
Fetches VMWatchDog object by id.
|
VMWatchDog |
getById(String id)
Fetches VMWatchDog object by id.
|
List<VMWatchDog> |
list()
Lists VMWatchDog objects.
|
List<VMWatchDog> |
list(Integer max)
Lists VMWatchDog objects.
|
getpublic VMWatchDogs(HttpProxyBroker proxy, VM parent)
proxy - HttpProxyBrokerparent - VMpublic List<VMWatchDog> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<WatchDog,WatchDogs,VMWatchDog>VMWatchDogorg.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 VMWatchDog get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<WatchDog,WatchDogs,VMWatchDog>id - entity idVMWatchDogorg.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 VMWatchDog getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<WatchDog,WatchDogs,VMWatchDog>id - entity idVMWatchDogorg.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<VMWatchDog> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max -
[max results]
VMWatchDogorg.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 VMWatchDog add(WatchDog watchdog) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
watchdog - WatchDog
watchdog.action
watchdog.model
VMWatchDogorg.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 VMWatchDog add(WatchDog watchdog, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
watchdog - WatchDog
watchdog.action
watchdog.model
expect -
[201-created]
VMWatchDogorg.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 VMWatchDog add(WatchDog watchdog, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
watchdog - WatchDog
watchdog.action
watchdog.model
expect -
[201-created]
correlationId -
[any string]
VMWatchDogorg.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