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)
Adds StorageDomain object.
|
StorageDomain |
add(StorageDomain storagedomain,
Boolean async,
String expect)
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.
|
StorageDomain |
getById(String id)
Fetches StorageDomain object by id.
|
List<StorageDomain> |
list()
Lists StorageDomain objects.
|
List<StorageDomain> |
list(String query,
Boolean caseSensitive,
Integer max)
Lists StorageDomain objects.
|
getpublic StorageDomains(HttpProxyBroker proxy)
proxy - HttpProxyBrokerpublic List<StorageDomain> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<StorageDomain,StorageDomains,StorageDomain>StorageDomainorg.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 idStorageDomainorg.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 getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<StorageDomain,StorageDomains,StorageDomain>id - entity idStorageDomainorg.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]
StorageDomainorg.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:
Import an existing block
storage domain to the system
using the targets already
connected to the host
storagedomain.host.id|name
storagedomain.type
storagedomain.storage.type
storagedomain.import
[storagedomain.storage.address]
[storagedomain.format]
[storagedomain.comment]
Overload 3:
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 4:
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 5:
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]
StorageDomainorg.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) 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:
Import an existing block
storage domain to the system
using the targets already
connected to the host
storagedomain.host.id|name
storagedomain.type
storagedomain.storage.type
storagedomain.import
[storagedomain.storage.address]
[storagedomain.format]
[storagedomain.comment]
Overload 3:
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 4:
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 5:
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]
async -
[true|false]
StorageDomainorg.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) 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:
Import an existing block
storage domain to the system
using the targets already
connected to the host
storagedomain.host.id|name
storagedomain.type
storagedomain.storage.type
storagedomain.import
[storagedomain.storage.address]
[storagedomain.format]
[storagedomain.comment]
Overload 3:
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 4:
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 5:
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]
async -
[true|false]
StorageDomainorg.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:
Import an existing block
storage domain to the system
using the targets already
connected to the host
storagedomain.host.id|name
storagedomain.type
storagedomain.storage.type
storagedomain.import
[storagedomain.storage.address]
[storagedomain.format]
[storagedomain.comment]
Overload 3:
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 4:
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 5:
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]
StorageDomainorg.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