Class ServerToMachine
- java.lang.Object
-
- com.elastisys.scale.cloudpool.openstack.functions.ServerToMachine
-
- All Implemented Interfaces:
java.util.function.Function<org.openstack4j.model.compute.Server,Machine>
public class ServerToMachine extends java.lang.Object implements java.util.function.Function<org.openstack4j.model.compute.Server,Machine>
Translates aServerfrom the OpenStack API to itsMachinecounterpart.
-
-
Constructor Summary
Constructors Constructor Description ServerToMachine(java.lang.String cloudProvider, java.lang.String region)Constructs aServerToMachineconversionFunction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Machineapply(org.openstack4j.model.compute.Server server)Converts aServerfrom the OpenStack API to itsMachinerepresentation.
-
-
-
Constructor Detail
-
ServerToMachine
public ServerToMachine(java.lang.String cloudProvider, java.lang.String region)Constructs aServerToMachineconversionFunction.- Parameters:
cloudProvider- The name of the cloud provider (for example, "OpenStack", "RackSpace", "CityCloud").The- region being connected to. For example,Kna1orLON.
-
-