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,
String correlationId)
Adds WatchDog object.
|
VMWatchDog |
get(UUID id)
Fetches VMWatchDog object by id.
|
List<VMWatchDog> |
list()
Lists VMWatchDog objects.
|
List<VMWatchDog> |
list(Integer max)
Lists VMWatchDog objects.
|
get
public 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>
VMWatchDog
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 VMWatchDog get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<WatchDog,WatchDogs,VMWatchDog>
id
- entity idVMWatchDog
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<VMWatchDog> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
VMWatchDog
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 VMWatchDog add(WatchDog watchdog) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
watchdog
- WatchDog
watchdog.action watchdog.model
VMWatchDog
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 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]
VMWatchDog
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