public class TemplateWatchDogs extends CollectionDecorator<WatchDog,WatchDogs,TemplateWatchDog>
TemplateWatchDogs providing relation and functional services
to WatchDogs
.
Constructor and Description |
---|
TemplateWatchDogs(HttpProxyBroker proxy,
Template parent) |
Modifier and Type | Method and Description |
---|---|
TemplateWatchDog |
add(WatchDog watchdog)
Adds WatchDog object.
|
TemplateWatchDog |
get(UUID id)
Fetches TemplateWatchDog object by id.
|
List<TemplateWatchDog> |
list()
Lists TemplateWatchDog objects.
|
get
public TemplateWatchDogs(HttpProxyBroker proxy, Template parent)
proxy
- HttpProxyBrokerparent
- Templatepublic List<TemplateWatchDog> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<WatchDog,WatchDogs,TemplateWatchDog>
TemplateWatchDog
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 TemplateWatchDog get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<WatchDog,WatchDogs,TemplateWatchDog>
id
- entity idTemplateWatchDog
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 TemplateWatchDog add(WatchDog watchdog) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
watchdog
- WatchDog
TemplateWatchDog
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