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.
|
get
public CpuProfiles(HttpProxyBroker proxy)
proxy
- HttpProxyBrokerpublic List<CpuProfile> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<CpuProfile,CpuProfiles,CpuProfile>
CpuProfile
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 CpuProfile get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<CpuProfile,CpuProfiles,CpuProfile>
id
- entity idCpuProfile
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 CpuProfile getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<CpuProfile,CpuProfiles,CpuProfile>
id
- entity idCpuProfile
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 CpuProfile add(CpuProfile cpuprofile) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
cpuprofile
- CpuProfile
cpuprofile.cluster.id cpuprofile.name [cpuprofile.description] [cpuprofile.qos.id]
CpuProfile
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 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]
CpuProfile
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 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]
CpuProfile
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<CpuProfile> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
CpuProfile
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