org.jclouds.glesys.compute.functions
Class ParseOsFamilyVersion64BitFromImageName

java.lang.Object
  extended by org.jclouds.glesys.compute.functions.ParseOsFamilyVersion64BitFromImageName
All Implemented Interfaces:
com.google.common.base.Function<String,OsFamilyVersion64Bit>

@Singleton
public class ParseOsFamilyVersion64BitFromImageName
extends Object
implements com.google.common.base.Function<String,OsFamilyVersion64Bit>

Defaults to version null and 64bit, if the operating system is unrecognized and the pattern "32bit" isn't in the string.

Author:
Adrian Cole

Field Summary
static Pattern OSFAMILY
           
static Pattern OSFAMILY_VERSION
           
 
Constructor Summary
ParseOsFamilyVersion64BitFromImageName(Map<OsFamily,Map<String,String>> osVersionMap)
           
 
Method Summary
 OsFamilyVersion64Bit apply(String input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Field Detail

OSFAMILY_VERSION

public static final Pattern OSFAMILY_VERSION

OSFAMILY

public static final Pattern OSFAMILY
Constructor Detail

ParseOsFamilyVersion64BitFromImageName

@Inject
public ParseOsFamilyVersion64BitFromImageName(Map<OsFamily,Map<String,String>> osVersionMap)
Method Detail

apply

public OsFamilyVersion64Bit apply(String input)
Specified by:
apply in interface com.google.common.base.Function<String,OsFamilyVersion64Bit>


Copyright © 2009-2012 jclouds. All Rights Reserved.