public class SchedulingPolicyBalances extends CollectionDecorator<Balance,Balances,SchedulingPolicyBalance>
SchedulingPolicyBalances providing relation and functional services
to Balances
.
Constructor and Description |
---|
SchedulingPolicyBalances(HttpProxyBroker proxy,
SchedulingPolicy parent) |
Modifier and Type | Method and Description |
---|---|
SchedulingPolicyBalance |
add(Balance balance)
Adds Balance object.
|
SchedulingPolicyBalance |
get(UUID id)
Fetches SchedulingPolicyBalance object by id.
|
SchedulingPolicyBalance |
getById(String id)
Fetches SchedulingPolicyBalance object by id.
|
List<SchedulingPolicyBalance> |
list()
Lists SchedulingPolicyBalance objects.
|
get
public SchedulingPolicyBalances(HttpProxyBroker proxy, SchedulingPolicy parent)
proxy
- HttpProxyBrokerparent
- SchedulingPolicypublic List<SchedulingPolicyBalance> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Balance,Balances,SchedulingPolicyBalance>
SchedulingPolicyBalance
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 SchedulingPolicyBalance get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Balance,Balances,SchedulingPolicyBalance>
id
- entity idSchedulingPolicyBalance
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 SchedulingPolicyBalance getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<Balance,Balances,SchedulingPolicyBalance>
id
- entity idSchedulingPolicyBalance
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 SchedulingPolicyBalance add(Balance balance) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
balance
- Balance
SchedulingPolicyBalance
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