public class CpuProfiles extends CollectionDecorator<CpuProfile,CpuProfiles,CpuProfile>
CpuProfiles providing relation and functional services
to CpuProfiles.
| Constructor and Description |
|---|
CpuProfiles(HttpProxyBroker proxy) |
| Modifier and Type | Method and Description |
|---|---|
CpuProfile |
add(CpuProfile cpuprofile)
Adds CpuProfile object.
|
CpuProfile |
add(CpuProfile cpuprofile,
String expect)
Adds CpuProfile object.
|
CpuProfile |
add(CpuProfile cpuprofile,
String expect,
String correlationId)
Adds CpuProfile object.
|
CpuProfile |
get(UUID id)
Fetches CpuProfile object by id.
|
CpuProfile |
getById(String id)
Fetches CpuProfile object by id.
|
List<CpuProfile> |
list()
Lists CpuProfile objects.
|
List<CpuProfile> |
list(Integer max)
Lists CpuProfile objects.
|
getpublic CpuProfiles(HttpProxyBroker proxy)
proxy - HttpProxyBrokerpublic List<CpuProfile> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<CpuProfile,CpuProfiles,CpuProfile>CpuProfileorg.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 CpuProfile get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<CpuProfile,CpuProfiles,CpuProfile>id - entity idCpuProfileorg.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 CpuProfile getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<CpuProfile,CpuProfiles,CpuProfile>id - entity idCpuProfileorg.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<CpuProfile> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max -
[max results]
CpuProfileorg.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 CpuProfile add(CpuProfile cpuprofile) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
cpuprofile - CpuProfile
cpuprofile.cluster.id
cpuprofile.name
[cpuprofile.description]
[cpuprofile.qos.id]
CpuProfileorg.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 CpuProfile add(CpuProfile cpuprofile, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
cpuprofile - CpuProfile
cpuprofile.cluster.id
cpuprofile.name
[cpuprofile.description]
[cpuprofile.qos.id]
expect -
[201-created]
CpuProfileorg.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 CpuProfile add(CpuProfile cpuprofile, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
cpuprofile - CpuProfile
cpuprofile.cluster.id
cpuprofile.name
[cpuprofile.description]
[cpuprofile.qos.id]
expect -
[201-created]
correlationId -
[any string]
CpuProfileorg.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