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.
|
get
public Jobs(HttpProxyBroker proxy)
proxy
- HttpProxyBrokerpublic List<Job> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Job,Jobs,Job>
Job
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 Job get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Job,Jobs,Job>
id
- entity idJob
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 Job getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<Job,Jobs,Job>
id
- entity idJob
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 Job add(Job job) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
job
- Job
job.description [job.auto_cleared]
Job
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 Job add(Job job, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
job
- Job
job.description [job.auto_cleared]
expect
- [201-created]
Job
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 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]
Job
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<Job> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
Job
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