public class ClusterGlusterVolumes extends CollectionDecorator<GlusterVolume,GlusterVolumes,ClusterGlusterVolume>
ClusterGlusterVolumes providing relation and functional services
to GlusterVolumes
.
Constructor and Description |
---|
ClusterGlusterVolumes(HttpProxyBroker proxy,
Cluster parent) |
Modifier and Type | Method and Description |
---|---|
ClusterGlusterVolume |
add(GlusterVolume glustervolume)
Adds GlusterVolume object.
|
ClusterGlusterVolume |
add(GlusterVolume glustervolume,
String expect,
String correlationId)
Adds GlusterVolume object.
|
ClusterGlusterVolume |
get(UUID id)
Fetches ClusterGlusterVolume object by id.
|
List<ClusterGlusterVolume> |
list()
Lists ClusterGlusterVolume objects.
|
List<ClusterGlusterVolume> |
list(String query,
Boolean caseSensitive)
Lists ClusterGlusterVolume objects.
|
get
public ClusterGlusterVolumes(HttpProxyBroker proxy, Cluster parent)
proxy
- HttpProxyBrokerparent
- Clusterpublic List<ClusterGlusterVolume> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<GlusterVolume,GlusterVolumes,ClusterGlusterVolume>
ClusterGlusterVolume
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 ClusterGlusterVolume get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<GlusterVolume,GlusterVolumes,ClusterGlusterVolume>
id
- entity idClusterGlusterVolume
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<ClusterGlusterVolume> list(String query, Boolean caseSensitive) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
query
- [search query]
caseSensitive
- [true|false]
ClusterGlusterVolume
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 ClusterGlusterVolume add(GlusterVolume glustervolume) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
glustervolume
- GlusterVolume
gluster_volume.name gluster_volume.volume_type gluster_volume.bricks.brick [gluster_volume.transport_types] [gluster_volume.replica_count] [gluster_volume.stripe_count] [gluster_volume.options.option]
ClusterGlusterVolume
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 ClusterGlusterVolume add(GlusterVolume glustervolume, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
glustervolume
- GlusterVolume
gluster_volume.name gluster_volume.volume_type gluster_volume.bricks.brick [gluster_volume.transport_types] [gluster_volume.replica_count] [gluster_volume.stripe_count] [gluster_volume.options.option]
expect
- [201-created]
correlationId
- [any string]
ClusterGlusterVolume
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