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 |
add(WatchDog watchdog,
String expect)
Adds WatchDog object.
|
TemplateWatchDog |
add(WatchDog watchdog,
String expect,
String correlationId)
Adds WatchDog object.
|
TemplateWatchDog |
get(UUID id)
Fetches TemplateWatchDog object by id.
|
TemplateWatchDog |
getById(String id)
Fetches TemplateWatchDog object by id.
|
List<TemplateWatchDog> |
list()
Lists TemplateWatchDog objects.
|
List<TemplateWatchDog> |
list(Integer max)
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 getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
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
watchdog.action watchdog.model
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 add(WatchDog watchdog, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
watchdog
- WatchDog
watchdog.action watchdog.model
expect
- [201-created]
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 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]
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 List<TemplateWatchDog> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
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