public class StorageDomains extends CollectionDecorator<StorageDomain,StorageDomains,StorageDomain>
StorageDomains providing relation and functional services
to StorageDomains
.
Constructor and Description |
---|
StorageDomains(HttpProxyBroker proxy) |
Modifier and Type | Method and Description |
---|---|
StorageDomain |
add(StorageDomain storagedomain)
Adds StorageDomain object.
|
StorageDomain |
add(StorageDomain storagedomain,
Boolean async,
String expect,
String correlationId)
Adds StorageDomain object.
|
StorageDomain |
get(UUID id)
Fetches StorageDomain object by id.
|
List<StorageDomain> |
list()
Lists StorageDomain objects.
|
List<StorageDomain> |
list(String query,
Boolean caseSensitive,
Integer max)
Lists StorageDomain objects.
|
get
public StorageDomains(HttpProxyBroker proxy)
proxy
- HttpProxyBrokerpublic List<StorageDomain> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<StorageDomain,StorageDomains,StorageDomain>
StorageDomain
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 StorageDomain get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<StorageDomain,StorageDomains,StorageDomain>
id
- entity idStorageDomain
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<StorageDomain> list(String query, Boolean caseSensitive, Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
query
- [search query]
caseSensitive
- [true|false]
max
- [max results]
StorageDomain
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 StorageDomain add(StorageDomain storagedomain) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
storagedomain
- StorageDomain
Overload 1: add a new storage domain to the system using a direct lun storagedomain.host.id|name storagedomain.type storagedomain.storage.type storagedomain.format storagedomain.storage.address storagedomain.storage.logical_unit [storagedomain.name] [storagedomain.comment] [storagedomain.storage.override_luns] [storagedomain.storage_format] Overload 2: add a new storage domain to the system using the storage on the given host and path storagedomain.host.id|name storagedomain.type storagedomain.storage.type storagedomain.format storagedomain.storage.address storagedomain.storage.path [storagedomain.name] [storagedomain.comment] [storagedomain.storage_format] Overload 3: add a new storage domain to the system using the storage on the localhost at the given path storagedomain.host.id|name storagedomain.type storagedomain.storage.type storagedomain.format storagedomain.storage.path [storagedomain.name] [storagedomain.comment] [storagedomain.storage_format] Overload 4: add a new storage domain to the system using the gluster or posixfs storage storagedomain.host.id|name storagedomain.type storagedomain.storage.type storagedomain.format storagedomain.storage.path storagedomain.storage.vfs_type [storagedomain.name] [storagedomain.comment] [storagedomain.storage.address] [storagedomain.storage.mount_options] [storagedomain.storage_format]
StorageDomain
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 StorageDomain add(StorageDomain storagedomain, Boolean async, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
storagedomain
- StorageDomain
Overload 1: add a new storage domain to the system using a direct lun storagedomain.host.id|name storagedomain.type storagedomain.storage.type storagedomain.format storagedomain.storage.address storagedomain.storage.logical_unit [storagedomain.name] [storagedomain.comment] [storagedomain.storage.override_luns] [storagedomain.storage_format] Overload 2: add a new storage domain to the system using the storage on the given host and path storagedomain.host.id|name storagedomain.type storagedomain.storage.type storagedomain.format storagedomain.storage.address storagedomain.storage.path [storagedomain.name] [storagedomain.comment] [storagedomain.storage_format] Overload 3: add a new storage domain to the system using the storage on the localhost at the given path storagedomain.host.id|name storagedomain.type storagedomain.storage.type storagedomain.format storagedomain.storage.path [storagedomain.name] [storagedomain.comment] [storagedomain.storage_format] Overload 4: add a new storage domain to the system using the gluster or posixfs storage storagedomain.host.id|name storagedomain.type storagedomain.storage.type storagedomain.format storagedomain.storage.path storagedomain.storage.vfs_type [storagedomain.name] [storagedomain.comment] [storagedomain.storage.address] [storagedomain.storage.mount_options] [storagedomain.storage_format]
expect
- [201-created]
correlationId
- [any string]
async
- [true|false]
StorageDomain
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