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)
Lists SchedulingPolicy objects.
|
List<SchedulingPolicy> |
list(Boolean caseSensitive,
Integer max)
Lists SchedulingPolicy objects.
|
get
public SchedulingPolicies(HttpProxyBroker proxy)
proxy
- HttpProxyBrokerpublic List<SchedulingPolicy> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<SchedulingPolicy,SchedulingPolicies,SchedulingPolicy>
SchedulingPolicy
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 SchedulingPolicy get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<SchedulingPolicy,SchedulingPolicies,SchedulingPolicy>
id
- entity idSchedulingPolicy
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 SchedulingPolicy getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<SchedulingPolicy,SchedulingPolicies,SchedulingPolicy>
id
- entity idSchedulingPolicy
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 SchedulingPolicy add(SchedulingPolicy schedulingpolicy) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
schedulingpolicy
- SchedulingPolicy
schedulingpolicy.name [schedulingpolicy.description] [schedulingpolicy.properties.property]
SchedulingPolicy
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 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]
SchedulingPolicy
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 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]
SchedulingPolicy
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<SchedulingPolicy> list(Boolean caseSensitive) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
caseSensitive
- [true|false]
SchedulingPolicy
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<SchedulingPolicy> list(Boolean caseSensitive, Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
caseSensitive
- [true|false]
max
- [max results]
SchedulingPolicy
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