public class ServerToMachine extends Object implements java.util.function.Function<org.openstack4j.model.compute.Server,Machine>
Server from the OpenStack API to its Machine
counterpart.| Constructor and Description |
|---|
ServerToMachine(String cloudProvider,
String region)
Constructs a
ServerToMachine conversion Function. |
| Modifier and Type | Method and Description |
|---|---|
Machine |
apply(org.openstack4j.model.compute.Server server)
Converts a
Server from the OpenStack API to its Machine
representation. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThen, compose, identitypublic ServerToMachine(String cloudProvider, String region)
ServerToMachine conversion Function.cloudProvider - The name of the cloud provider (for example, "OpenStack",
"RackSpace", "CityCloud").The - region being connected to. For example, Kna1 or
LON.public Machine apply(org.openstack4j.model.compute.Server server)
Server from the OpenStack API to its Machine
representation.apply in interface java.util.function.Function<org.openstack4j.model.compute.Server,Machine>server - The Server representation.Machine representation.Copyright © 2011–2017 Elastisys. All rights reserved.