Class ServerDetailsToNodeMetadata
- java.lang.Object
-
- org.jclouds.glesys.compute.functions.ServerDetailsToNodeMetadata
-
- All Implemented Interfaces:
com.google.common.base.Function<ServerDetails,NodeMetadata>
,Function<ServerDetails,NodeMetadata>
@Singleton public class ServerDetailsToNodeMetadata extends Object implements com.google.common.base.Function<ServerDetails,NodeMetadata>
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.common.base.Supplier<Set<? extends Image>>
images
protected com.google.common.base.Supplier<Set<? extends Location>>
locations
protected Logger
logger
protected GroupNamingConvention
nodeNamingConvention
static Map<Server.State,NodeMetadata.Status>
serverStateToNodeStatus
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeMetadata
apply(ServerDetails from)
protected OperatingSystem
parseOperatingSystem(ServerDetails from)
-
-
-
Field Detail
-
logger
@Named("jclouds.compute") protected Logger logger
-
serverStateToNodeStatus
public static final Map<Server.State,NodeMetadata.Status> serverStateToNodeStatus
-
nodeNamingConvention
protected final GroupNamingConvention nodeNamingConvention
-
-
Method Detail
-
apply
public NodeMetadata apply(ServerDetails from)
- Specified by:
apply
in interfacecom.google.common.base.Function<ServerDetails,NodeMetadata>
- Specified by:
apply
in interfaceFunction<ServerDetails,NodeMetadata>
-
parseOperatingSystem
protected OperatingSystem parseOperatingSystem(ServerDetails from)
-
-