R - the response typepublic abstract class AbstractNovaRequest<R> extends Object implements Callable<R>
doRequest(NovaApi).
This class is intended to be subclassed by clients wishing to work with a
native nova API (NovaApi). Clients wishing to interact with Openstack
over the Jclouds ComputeService API should extend the
AbstractOpenstackRequest class.| Constructor and Description |
|---|
AbstractNovaRequest(OpenStackPoolDriverConfig account)
Constructs a new
AbstractNovaRequest for a certain OpenStack
account. |
| Modifier and Type | Method and Description |
|---|---|
R |
call() |
abstract R |
doRequest(org.jclouds.openstack.nova.v2_0.NovaApi api)
Carries out the request and returns the response.
|
OpenStackPoolDriverConfig |
getAccount()
Returns the connection details for the targeted OpenStack account.
|
public AbstractNovaRequest(OpenStackPoolDriverConfig account)
AbstractNovaRequest for a certain OpenStack
account.account - Connection details for a particular OpenStack account.public OpenStackPoolDriverConfig getAccount()
public R call() throws RuntimeException
call in interface Callable<R>RuntimeExceptionpublic abstract R doRequest(org.jclouds.openstack.nova.v2_0.NovaApi api) throws RuntimeException
api - The OpenStack Nova (compute) API.RuntimeException - if the request failed.Copyright © 2011–2015 elastisys. All rights reserved.