Class ServerInfoToNodeMetadata
- java.lang.Object
-
- org.jclouds.elasticstack.compute.functions.ServerInfoToNodeMetadata
-
- All Implemented Interfaces:
com.google.common.base.Function<ServerInfo,NodeMetadata>
,Function<ServerInfo,NodeMetadata>
@Singleton public class ServerInfoToNodeMetadata extends Object implements com.google.common.base.Function<ServerInfo,NodeMetadata>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerInfoToNodeMetadata.DeviceToVolume
static class
ServerInfoToNodeMetadata.GetImageIdFromServer
When we create the boot drive of the server, by convention we set the name to the image it came from.
-
Field Summary
Fields Modifier and Type Field Description static Map<ServerStatus,NodeMetadata.Status>
serverStatusToNodeStatus
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeMetadata
apply(ServerInfo from)
-
-
-
Field Detail
-
serverStatusToNodeStatus
public static final Map<ServerStatus,NodeMetadata.Status> serverStatusToNodeStatus
-
-
Method Detail
-
apply
public NodeMetadata apply(ServerInfo from)
- Specified by:
apply
in interfacecom.google.common.base.Function<ServerInfo,NodeMetadata>
- Specified by:
apply
in interfaceFunction<ServerInfo,NodeMetadata>
-
-