public class SchedulingPolicies extends CollectionDecorator<SchedulingPolicy,SchedulingPolicies,SchedulingPolicy>
SchedulingPolicies providing relation and functional services
| Constructor and Description |
|---|
SchedulingPolicies(HttpProxyBroker proxy) |
| Modifier and Type | Method and Description |
|---|---|
SchedulingPolicy |
add(SchedulingPolicy schedulingpolicy)
Adds SchedulingPolicy object.
|
SchedulingPolicy |
add(SchedulingPolicy schedulingpolicy,
String expect)
Adds SchedulingPolicy object.
|
SchedulingPolicy |
add(SchedulingPolicy schedulingpolicy,
String expect,
String correlationId)
Adds SchedulingPolicy object.
|
SchedulingPolicy |
get(UUID id)
Fetches SchedulingPolicy object by id.
|
SchedulingPolicy |
getById(String id)
Fetches SchedulingPolicy object by id.
|
List<SchedulingPolicy> |
list()
Lists SchedulingPolicy objects.
|
List<SchedulingPolicy> |
list(Boolean caseSensitive,
Integer max)
Lists SchedulingPolicy objects.
|
getpublic SchedulingPolicies(HttpProxyBroker proxy)
proxy - HttpProxyBrokerpublic List<SchedulingPolicy> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<SchedulingPolicy,SchedulingPolicies,SchedulingPolicy>SchedulingPolicyorg.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 SchedulingPolicy get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<SchedulingPolicy,SchedulingPolicies,SchedulingPolicy>id - entity idSchedulingPolicyorg.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 SchedulingPolicy getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<SchedulingPolicy,SchedulingPolicies,SchedulingPolicy>id - entity idSchedulingPolicyorg.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<SchedulingPolicy> list(Boolean caseSensitive, Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
caseSensitive -
[true|false]
max -
[max results]
SchedulingPolicyorg.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 SchedulingPolicy add(SchedulingPolicy schedulingpolicy) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
schedulingpolicy - SchedulingPolicy
schedulingpolicy.name
[schedulingpolicy.description]
[schedulingpolicy.properties.property]
SchedulingPolicyorg.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 SchedulingPolicy add(SchedulingPolicy schedulingpolicy, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
schedulingpolicy - SchedulingPolicy
schedulingpolicy.name
[schedulingpolicy.description]
[schedulingpolicy.properties.property]
expect -
[201-created]
SchedulingPolicyorg.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 SchedulingPolicy add(SchedulingPolicy schedulingpolicy, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
schedulingpolicy - SchedulingPolicy
schedulingpolicy.name
[schedulingpolicy.description]
[schedulingpolicy.properties.property]
expect -
[201-created]
correlationId -
[any string]
SchedulingPolicyorg.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