R - the response typepublic abstract class AbstractOpenstackRequest<R> extends Object implements Callable<R>
doRequest(OSClient).| Constructor and Description |
|---|
AbstractOpenstackRequest(OSClientFactory clientFactory)
Constructs a new
AbstractOpenstackRequest with a given
OSClientFactory. |
| 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 |
getApiAccessConfig()
Returns the API access configuration that describes how to authenticate
with and communicate over the OpenStack API.
|
OSClientFactory |
getClientFactory()
Returns the OpenStack API client factory.
|
public AbstractOpenstackRequest(OSClientFactory clientFactory)
AbstractOpenstackRequest with a given
OSClientFactory.clientFactory - OpenStack API client factorypublic R call() throws RuntimeException
call in interface Callable<R>RuntimeExceptionpublic OSClientFactory getClientFactory()
public OpenStackPoolDriverConfig getApiAccessConfig()
public 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–2016 elastisys. All rights reserved.