public class HostHooks extends CollectionDecorator<Hook,Hooks,HostHook>
HostHooks providing relation and functional services
to Hooks
.
Constructor and Description |
---|
HostHooks(HttpProxyBroker proxy,
Host parent) |
Modifier and Type | Method and Description |
---|---|
HostHook |
get(UUID id)
Fetches HostHook object by id.
|
HostHook |
getById(String id)
Fetches HostHook object by id.
|
List<HostHook> |
list()
Lists HostHook objects.
|
List<HostHook> |
list(Integer max)
Lists HostHook objects.
|
get
public HostHooks(HttpProxyBroker proxy, Host parent)
proxy
- HttpProxyBrokerparent
- Hostpublic List<HostHook> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Hook,Hooks,HostHook>
HostHook
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 HostHook get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Hook,Hooks,HostHook>
id
- entity idHostHook
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 HostHook getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<Hook,Hooks,HostHook>
id
- entity idHostHook
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<HostHook> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
HostHook
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