public class StorageConnections extends CollectionDecorator<StorageConnection,StorageConnections,StorageConnection>
StorageConnections providing relation and functional services
| Constructor and Description |
|---|
StorageConnections(HttpProxyBroker proxy) |
| Modifier and Type | Method and Description |
|---|---|
StorageConnection |
add(StorageConnection storageconnection)
Adds StorageConnection object.
|
StorageConnection |
add(StorageConnection storageconnection,
String expect)
Adds StorageConnection object.
|
StorageConnection |
add(StorageConnection storageconnection,
String expect,
String correlationId)
Adds StorageConnection object.
|
StorageConnection |
get(UUID id)
Fetches StorageConnection object by id.
|
StorageConnection |
getById(String id)
Fetches StorageConnection object by id.
|
List<StorageConnection> |
list()
Lists StorageConnection objects.
|
getpublic StorageConnections(HttpProxyBroker proxy)
proxy - HttpProxyBrokerpublic List<StorageConnection> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<StorageConnection,StorageConnections,StorageConnection>StorageConnectionorg.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 StorageConnection get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<StorageConnection,StorageConnections,StorageConnection>id - entity idStorageConnectionorg.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 StorageConnection getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<StorageConnection,StorageConnections,StorageConnection>id - entity idStorageConnectionorg.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 StorageConnection add(StorageConnection storageconnection) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
storageconnection - StorageConnection
Overload 1:
add a iSCSI storage connection
to the system
storage_connection.address
storage_connection.type
storage_connection.iqn
storage_connection.port
[storage_connection.username]
[storage_connection.password]
Overload 2:
add a nfs storage connection to the system
storage_connection.address
storage_connection.type
storage_connection.path
[storage_connection.nfs_timeo]
[storage_connection.nfs_version]
[storage_connection.nfs_retrans]
Overload 3:
add a vfs storage connection to the system
storage_connection.type
storage_connection.path
storage_connection.vfs_type
[storage_connection.address]
[storage_connection.mount_options]
Overload 4:
add a local storage connection
to the system
storage_connection.type
storage_connection.path
StorageConnectionorg.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 StorageConnection add(StorageConnection storageconnection, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
storageconnection - StorageConnection
Overload 1:
add a iSCSI storage connection
to the system
storage_connection.address
storage_connection.type
storage_connection.iqn
storage_connection.port
[storage_connection.username]
[storage_connection.password]
Overload 2:
add a nfs storage connection to the system
storage_connection.address
storage_connection.type
storage_connection.path
[storage_connection.nfs_timeo]
[storage_connection.nfs_version]
[storage_connection.nfs_retrans]
Overload 3:
add a vfs storage connection to the system
storage_connection.type
storage_connection.path
storage_connection.vfs_type
[storage_connection.address]
[storage_connection.mount_options]
Overload 4:
add a local storage connection
to the system
storage_connection.type
storage_connection.path
expect -
[201-created]
StorageConnectionorg.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 StorageConnection add(StorageConnection storageconnection, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
storageconnection - StorageConnection
Overload 1:
add a iSCSI storage connection
to the system
storage_connection.address
storage_connection.type
storage_connection.iqn
storage_connection.port
[storage_connection.username]
[storage_connection.password]
Overload 2:
add a nfs storage connection to the system
storage_connection.address
storage_connection.type
storage_connection.path
[storage_connection.nfs_timeo]
[storage_connection.nfs_version]
[storage_connection.nfs_retrans]
Overload 3:
add a vfs storage connection to the system
storage_connection.type
storage_connection.path
storage_connection.vfs_type
[storage_connection.address]
[storage_connection.mount_options]
Overload 4:
add a local storage connection
to the system
storage_connection.type
storage_connection.path
expect -
[201-created]
correlationId -
[any string]
StorageConnectionorg.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