public class VMStatistics extends CollectionDecorator<Statistic,Statistics,VMStatistic>
VMStatistics providing relation and functional services
to Statistics
.
Constructor and Description |
---|
VMStatistics(HttpProxyBroker proxy,
VM parent) |
Modifier and Type | Method and Description |
---|---|
VMStatistic |
get(UUID id)
Fetches VMStatistic object by id.
|
List<VMStatistic> |
list()
Lists VMStatistic objects.
|
List<VMStatistic> |
list(Integer max)
Lists VMStatistic objects.
|
get
public VMStatistics(HttpProxyBroker proxy, VM parent)
proxy
- HttpProxyBrokerparent
- VMpublic List<VMStatistic> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Statistic,Statistics,VMStatistic>
VMStatistic
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 VMStatistic get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Statistic,Statistics,VMStatistic>
id
- entity idVMStatistic
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<VMStatistic> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
VMStatistic
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