public class InstanceTypeWatchDogs extends CollectionDecorator<WatchDog,WatchDogs,InstanceTypeWatchDog>
InstanceTypeWatchDogs providing relation and functional services
to WatchDogs
.
Constructor and Description |
---|
InstanceTypeWatchDogs(HttpProxyBroker proxy,
InstanceType parent) |
Modifier and Type | Method and Description |
---|---|
InstanceTypeWatchDog |
add(WatchDog watchdog)
Adds WatchDog object.
|
InstanceTypeWatchDog |
get(UUID id)
Fetches InstanceTypeWatchDog object by id.
|
InstanceTypeWatchDog |
getById(String id)
Fetches InstanceTypeWatchDog object by id.
|
List<InstanceTypeWatchDog> |
list()
Lists InstanceTypeWatchDog objects.
|
List<InstanceTypeWatchDog> |
list(Integer max)
Lists InstanceTypeWatchDog objects.
|
get
public InstanceTypeWatchDogs(HttpProxyBroker proxy, InstanceType parent)
proxy
- HttpProxyBrokerparent
- InstanceTypepublic List<InstanceTypeWatchDog> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<WatchDog,WatchDogs,InstanceTypeWatchDog>
InstanceTypeWatchDog
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 InstanceTypeWatchDog get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<WatchDog,WatchDogs,InstanceTypeWatchDog>
id
- entity idInstanceTypeWatchDog
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 InstanceTypeWatchDog getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<WatchDog,WatchDogs,InstanceTypeWatchDog>
id
- entity idInstanceTypeWatchDog
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 InstanceTypeWatchDog add(WatchDog watchdog) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
watchdog
- WatchDog
InstanceTypeWatchDog
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<InstanceTypeWatchDog> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
InstanceTypeWatchDog
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