public class Jobs extends CollectionDecorator<Job,Jobs,Job>
Jobs providing relation and functional services
to Jobs.
| Constructor and Description |
|---|
Jobs(HttpProxyBroker proxy) |
| Modifier and Type | Method and Description |
|---|---|
Job |
add(Job job)
Adds Job object.
|
Job |
add(Job job,
String expect)
Adds Job object.
|
Job |
add(Job job,
String expect,
String correlationId)
Adds Job object.
|
Job |
get(UUID id)
Fetches Job object by id.
|
Job |
getById(String id)
Fetches Job object by id.
|
List<Job> |
list()
Lists Job objects.
|
List<Job> |
list(Integer max)
Lists Job objects.
|
getpublic Jobs(HttpProxyBroker proxy)
proxy - HttpProxyBrokerpublic List<Job> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<Job,Jobs,Job>Joborg.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 Job get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<Job,Jobs,Job>id - entity idJoborg.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 Job getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<Job,Jobs,Job>id - entity idJoborg.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<Job> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max -
[max results]
Joborg.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 Job add(Job job) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
job - Job
job.description
[job.auto_cleared]
Joborg.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 Job add(Job job, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
job - Job
job.description
[job.auto_cleared]
expect -
[201-created]
Joborg.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 Job add(Job job, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
job - Job
job.description
[job.auto_cleared]
expect -
[201-created]
correlationId -
[any string]
Joborg.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