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)
Adds Step object.
|
JobStep |
add(Step step,
String expect,
String correlationId)
Adds Step object.
|
JobStep |
get(UUID id)
Fetches JobStep object by id.
|
JobStep |
getById(String id)
Fetches JobStep object by id.
|
List<JobStep> |
list()
Lists JobStep objects.
|
List<JobStep> |
list(Integer max)
Lists JobStep objects.
|
getpublic 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>JobSteporg.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 idJobSteporg.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 getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<Step,Steps,JobStep>id - entity idJobSteporg.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]
JobSteporg.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]
JobSteporg.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) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
step - Step
step.type
step.description
[step.job.id]
[step.parent_step.id]
expect -
[201-created]
JobSteporg.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]
JobSteporg.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