public class ClusterGlusterVolumeGlusterBricks extends CollectionDecorator<GlusterBrick,GlusterBricks,ClusterGlusterVolumeGlusterBrick>
ClusterGlusterVolumeGlusterBricks providing relation and functional services
to GlusterBricks
.
Constructor and Description |
---|
ClusterGlusterVolumeGlusterBricks(HttpProxyBroker proxy,
ClusterGlusterVolume parent) |
Modifier and Type | Method and Description |
---|---|
ClusterGlusterVolumeGlusterBrick |
add(GlusterBrick glusterbrick)
Adds GlusterBrick object.
|
ClusterGlusterVolumeGlusterBrick |
add(GlusterBrick glusterbrick,
String expect,
String correlationId)
Adds GlusterBrick object.
|
ClusterGlusterVolumeGlusterBrick |
get(UUID id)
Fetches ClusterGlusterVolumeGlusterBrick object by id.
|
List<ClusterGlusterVolumeGlusterBrick> |
list()
Lists ClusterGlusterVolumeGlusterBrick objects.
|
List<ClusterGlusterVolumeGlusterBrick> |
list(Integer max)
Lists ClusterGlusterVolumeGlusterBrick objects.
|
get
public ClusterGlusterVolumeGlusterBricks(HttpProxyBroker proxy, ClusterGlusterVolume parent)
proxy
- HttpProxyBrokerparent
- ClusterGlusterVolumepublic List<ClusterGlusterVolumeGlusterBrick> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<GlusterBrick,GlusterBricks,ClusterGlusterVolumeGlusterBrick>
ClusterGlusterVolumeGlusterBrick
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 ClusterGlusterVolumeGlusterBrick get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<GlusterBrick,GlusterBricks,ClusterGlusterVolumeGlusterBrick>
id
- entity idClusterGlusterVolumeGlusterBrick
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<ClusterGlusterVolumeGlusterBrick> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
ClusterGlusterVolumeGlusterBrick
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 ClusterGlusterVolumeGlusterBrick add(GlusterBrick glusterbrick) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
glusterbricks
- GlusterBricks
brick [replica_count] [stripe_count]
ClusterGlusterVolumeGlusterBrick
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 ClusterGlusterVolumeGlusterBrick add(GlusterBrick glusterbrick, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
glusterbricks
- GlusterBricks
brick [replica_count] [stripe_count]
expect
- [201-created]
correlationId
- [any string]
ClusterGlusterVolumeGlusterBrick
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