R - the response typepublic abstract class AbstractOpenstackRequest<R> extends Object implements Callable<R>
doRequest(OSClient).| Constructor and Description |
|---|
AbstractOpenstackRequest(OpenStackPoolDriverConfig accessConfig)
Constructs a new
AbstractOpenstackRequest with an access
configuration object that describes how to connect with the OpenStack
API. |
| Modifier and Type | Method and Description |
|---|---|
R |
call() |
abstract R |
doRequest(org.openstack4j.api.OSClient api)
Carries out the request and returns the response.
|
OpenStackPoolDriverConfig |
getAccessConfig()
Returns the configuration details for accessing the targeted OpenStack
account.
|
public AbstractOpenstackRequest(OpenStackPoolDriverConfig accessConfig)
AbstractOpenstackRequest with an access
configuration object that describes how to connect with the OpenStack
API.accessConfig - OpenStack API access configuration.public OpenStackPoolDriverConfig getAccessConfig()
public R call() throws RuntimeException
call in interface Callable<R>RuntimeExceptionpublic abstract R doRequest(org.openstack4j.api.OSClient api) throws RuntimeException
api - An authenticated OpenStack API client that is instructed to
operate against the configured region.RuntimeException - if the request failed.Copyright © 2011–2015 elastisys. All rights reserved.