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 |
add(Balance balance,
String correlationId)
Adds Balance object.
|
SchedulingPolicyBalance |
add(Balance balance,
String correlationId,
String expect)
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.
|
List<SchedulingPolicyBalance> |
list(Boolean caseSensitive)
Lists SchedulingPolicyBalance objects.
|
List<SchedulingPolicyBalance> |
list(Boolean caseSensitive,
Integer max)
Lists SchedulingPolicyBalance objects.
|
getpublic 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>SchedulingPolicyBalanceorg.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 idSchedulingPolicyBalanceorg.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 idSchedulingPolicyBalanceorg.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
balance.scheduling_policy_unit.id
SchedulingPolicyBalanceorg.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, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
balance - Balance
balance.scheduling_policy_unit.id
correlationId -
[any string]
SchedulingPolicyBalanceorg.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, String correlationId, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
balance - Balance
balance.scheduling_policy_unit.id
correlationId -
[any string]
expect -
[201-created]
SchedulingPolicyBalanceorg.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<SchedulingPolicyBalance> list(Boolean caseSensitive) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
caseSensitive -
[true|false]
SchedulingPolicyBalanceorg.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<SchedulingPolicyBalance> list(Boolean caseSensitive, Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
caseSensitive -
[true|false]
max -
[max results]
SchedulingPolicyBalanceorg.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