Class GetServerRequest
- java.lang.Object
-
- com.elastisys.scale.cloudpool.openstack.requests.AbstractOpenstackRequest<org.openstack4j.model.compute.Server>
-
- com.elastisys.scale.cloudpool.openstack.requests.GetServerRequest
-
- All Implemented Interfaces:
java.util.concurrent.Callable<org.openstack4j.model.compute.Server>
public class GetServerRequest extends AbstractOpenstackRequest<org.openstack4j.model.compute.Server>
A request that, when called, requests meta data about a particularServer.
-
-
Constructor Summary
Constructors Constructor Description GetServerRequest(com.elastisys.scale.commons.openstack.OSClientFactory clientFactory, java.lang.String serverId)Creates a newGetServerRequest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openstack4j.model.compute.ServerdoRequest(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
-
GetServerRequest
public GetServerRequest(com.elastisys.scale.commons.openstack.OSClientFactory clientFactory, java.lang.String serverId)Creates a newGetServerRequest.- Parameters:
clientFactory- OpenStack API client factory.serverId- The id of the server to get.
-
-
Method Detail
-
doRequest
public org.openstack4j.model.compute.Server doRequest(org.openstack4j.api.OSClient api) throws NotFoundException, org.openstack4j.api.exceptions.ResponseExceptionDescription copied from class:AbstractOpenstackRequestCarries out the request and returns the response.- Specified by:
doRequestin classAbstractOpenstackRequest<org.openstack4j.model.compute.Server>- 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
-
-