public class JobSteps extends CollectionDecorator<Step,Steps,JobStep>
JobSteps providing relation and functional services
to Steps
.
Constructor and Description |
---|
JobSteps(HttpProxyBroker proxy,
Job parent) |
Modifier and Type | Method and Description |
---|---|
JobStep |
add(Step step)
Adds Step object.
|
JobStep |
add(Step step,
String expect,
String correlationId)
Adds Step object.
|
JobStep |
get(UUID id)
Fetches JobStep object by id.
|
List<JobStep> |
list()
Lists JobStep objects.
|
List<JobStep> |
list(Integer max)
Lists JobStep objects.
|
get
public JobSteps(HttpProxyBroker proxy, Job parent)
proxy
- HttpProxyBrokerparent
- Jobpublic List<JobStep> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Step,Steps,JobStep>
JobStep
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 JobStep get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Step,Steps,JobStep>
id
- entity idJobStep
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<JobStep> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
JobStep
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 JobStep add(Step step) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
step
- Step
step.type step.description [step.job.id] [step.parent_step.id]
JobStep
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 JobStep add(Step step, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
step
- Step
step.type step.description [step.job.id] [step.parent_step.id]
expect
- [201-created]
correlationId
- [any string]
JobStep
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