public class SchedulingPolicyWeights extends CollectionDecorator<Weight,Weights,SchedulingPolicyWeight>
SchedulingPolicyWeights providing relation and functional services
to Weights
.
Constructor and Description |
---|
SchedulingPolicyWeights(HttpProxyBroker proxy,
SchedulingPolicy parent) |
Modifier and Type | Method and Description |
---|---|
SchedulingPolicyWeight |
add(Weight weight)
Adds Weight object.
|
SchedulingPolicyWeight |
add(Weight weight,
String correlationId)
Adds Weight object.
|
SchedulingPolicyWeight |
add(Weight weight,
String correlationId,
String expect)
Adds Weight object.
|
SchedulingPolicyWeight |
get(UUID id)
Fetches SchedulingPolicyWeight object by id.
|
SchedulingPolicyWeight |
getById(String id)
Fetches SchedulingPolicyWeight object by id.
|
List<SchedulingPolicyWeight> |
list()
Lists SchedulingPolicyWeight objects.
|
List<SchedulingPolicyWeight> |
list(Boolean caseSensitive)
Lists SchedulingPolicyWeight objects.
|
List<SchedulingPolicyWeight> |
list(Boolean caseSensitive,
Integer max)
Lists SchedulingPolicyWeight objects.
|
get
public SchedulingPolicyWeights(HttpProxyBroker proxy, SchedulingPolicy parent)
proxy
- HttpProxyBrokerparent
- SchedulingPolicypublic List<SchedulingPolicyWeight> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Weight,Weights,SchedulingPolicyWeight>
SchedulingPolicyWeight
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 SchedulingPolicyWeight get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Weight,Weights,SchedulingPolicyWeight>
id
- entity idSchedulingPolicyWeight
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 SchedulingPolicyWeight getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<Weight,Weights,SchedulingPolicyWeight>
id
- entity idSchedulingPolicyWeight
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 SchedulingPolicyWeight add(Weight weight) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
weight
- Weight
weight.scheduling_policy_unit.id [weight.scheduling_policy_unit.factor]
SchedulingPolicyWeight
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 SchedulingPolicyWeight add(Weight weight, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
weight
- Weight
weight.scheduling_policy_unit.id [weight.scheduling_policy_unit.factor]
correlationId
- [any string]
SchedulingPolicyWeight
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 SchedulingPolicyWeight add(Weight weight, String correlationId, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
weight
- Weight
weight.scheduling_policy_unit.id [weight.scheduling_policy_unit.factor]
correlationId
- [any string]
expect
- [201-created]
SchedulingPolicyWeight
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<SchedulingPolicyWeight> list(Boolean caseSensitive) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
caseSensitive
- [true|false]
SchedulingPolicyWeight
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<SchedulingPolicyWeight> list(Boolean caseSensitive, Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
caseSensitive
- [true|false]
max
- [max results]
SchedulingPolicyWeight
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