Class AssignFloatingIpRequest
- java.lang.Object
-
- com.elastisys.scale.cloudpool.openstack.requests.AbstractOpenstackRequest<java.lang.String>
-
- com.elastisys.scale.cloudpool.openstack.requests.AssignFloatingIpRequest
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.String>
public class AssignFloatingIpRequest extends AbstractOpenstackRequest<java.lang.String>
A request that, when called, tries to assign a floating IP address to aServer. The return value of the task is the assigned IP address.
-
-
Constructor Summary
Constructors Constructor Description AssignFloatingIpRequest(com.elastisys.scale.commons.openstack.OSClientFactory clientFactory, org.openstack4j.model.compute.Server server)Creates a newAssignFloatingIpRequest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringdoRequest(org.openstack4j.api.OSClient api)Carries out the request and returns the response.-
Methods inherited from class com.elastisys.scale.cloudpool.openstack.requests.AbstractOpenstackRequest
call, getApiAccessConfig, getClientFactory
-
-
-
-
Constructor Detail
-
AssignFloatingIpRequest
public AssignFloatingIpRequest(com.elastisys.scale.commons.openstack.OSClientFactory clientFactory, org.openstack4j.model.compute.Server server)Creates a newAssignFloatingIpRequest.- Parameters:
clientFactory- OpenStack API client factory.server-
-
-
Method Detail
-
doRequest
public java.lang.String doRequest(org.openstack4j.api.OSClient api) throws org.openstack4j.api.exceptions.ResponseException, NotFoundExceptionDescription copied from class:AbstractOpenstackRequestCarries out the request and returns the response.- Specified by:
doRequestin classAbstractOpenstackRequest<java.lang.String>- Parameters:
api- An authenticated OpenStack API client that is instructed to operate against the configured region.- Returns:
- The response.
- Throws:
org.openstack4j.api.exceptions.ResponseException- if the request failed.NotFoundException
-
-