public class ServerToMachine extends Object implements com.google.common.base.Function<org.openstack4j.model.compute.Server,Machine>
Server from the OpenStack API to its Machine
counterpart.| Constructor and Description |
|---|
ServerToMachine(String cloudProvider)
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. |
public ServerToMachine(String cloudProvider)
ServerToMachine conversion Function.cloudProvider - The name of the cloud provider (for example, "OpenStack",
"RackSpace", "CityCloud").Copyright © 2011–2016 elastisys. All rights reserved.