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 |
get(UUID id)
Fetches SchedulingPolicyWeight object by id.
|
SchedulingPolicyWeight |
getById(String id)
Fetches SchedulingPolicyWeight object by id.
|
List<SchedulingPolicyWeight> |
list()
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
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