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 classServerInfoToNodeMetadata.DeviceToVolumestatic classServerInfoToNodeMetadata.GetImageIdFromServerWhen 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 NodeMetadataapply(ServerInfo from)
-
-
-
Field Detail
-
serverStatusToNodeStatus
public static final Map<ServerStatus,NodeMetadata.Status> serverStatusToNodeStatus
-
-
Method Detail
-
apply
public NodeMetadata apply(ServerInfo from)
- Specified by:
applyin interfacecom.google.common.base.Function<ServerInfo,NodeMetadata>- Specified by:
applyin interfaceFunction<ServerInfo,NodeMetadata>
-
-