public class Events extends CollectionDecorator<Event,Events,Event>
Events providing relation and functional services
to Events
.
Constructor and Description |
---|
Events(HttpProxyBroker proxy) |
Modifier and Type | Method and Description |
---|---|
Event |
add(Event event)
Adds Event object.
|
Event |
add(Event event,
String expect,
String correlationId)
Adds Event object.
|
Event |
get(UUID id)
Fetches Event object by id.
|
List<Event> |
list()
Lists Event objects.
|
List<Event> |
list(String query,
Boolean caseSensitive,
String from,
Integer max)
Lists Event objects.
|
get
public Events(HttpProxyBroker proxy)
proxy
- HttpProxyBrokerpublic List<Event> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Event,Events,Event>
Event
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 Event get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Event,Events,Event>
id
- entity idEvent
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<Event> list(String query, Boolean caseSensitive, String from, Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
query
- [search query]
caseSensitive
- [true|false]
from
- [event_id]
max
- [max results]
Event
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 Event add(Event event) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
event
- Event
event.description event.severity event.origin event.custom_id [event.flood_rate] [event.host.id] [event.user.id] [event.vm.id] [event.storage_domain.id] [event.template.id] [event.cluster.id] [event.data_center.id]
Event
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 Event add(Event event, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
event
- Event
event.description event.severity event.origin event.custom_id [event.flood_rate] [event.host.id] [event.user.id] [event.vm.id] [event.storage_domain.id] [event.template.id] [event.cluster.id] [event.data_center.id]
expect
- [201-created]
correlationId
- [any string]
Event
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