public class NMI2VDSSysInfo extends Object
Modifier and Type | Field and Description |
---|---|
private static Map<SysInfo.Architecture,Arch> |
mNMIArchToVDSArchMap
The map storing architecture to corresponding NMI architecture platforms.
|
private static Map<SysInfo.OS,Os> |
mNMIOSToVDSOSMap
The map storing OS to corresponding NMI OS platforms.
|
static String |
OS_COMBINE_SEPARATOR
The separator used to combine OS version and release.
|
Constructor and Description |
---|
NMI2VDSSysInfo() |
Modifier and Type | Method and Description |
---|---|
static Arch |
nmiArchToVDSArch(String arch)
Returns the VDS Arch object corresponding to the new
NMI Architecture object .
|
static Arch |
nmiArchToVDSArch(SysInfo.Architecture arch)
Returns the the VDS Arch object corresponding to the new
NMI Architecture object .
|
static Map<SysInfo.Architecture,Arch> |
NMIArchToVDSArchMap()
Singleton access to the NMI arch to VDS arch map.
|
static Os |
nmiOSToVDSOS(String os)
Returns the VDS Os object corresponding to the new
NMI OS object .
|
static Os |
nmiOSToVDSOS(SysInfo.OS os)
Returns the VDS Os object corresponding to the new
NMI OS object .
|
static Map<SysInfo.OS,Os> |
NMIOSToVDSOSMap()
Singleton access to the os to NMI os map.
|
static VDSSysInfo |
nmiToVDSSysInfo(SysInfo.Architecture arch,
SysInfo.OS os,
String glibc)
Returns the VDS VDSSysInfo object corresponding to the NMI arch and OS
|
static VDSSysInfo |
nmiToVDSSysInfo(SysInfo sysinfo)
Returns the VDSSysInfo object.
|
private static Map<SysInfo.Architecture,Arch> mNMIArchToVDSArchMap
public static final String OS_COMBINE_SEPARATOR
private static Map<SysInfo.OS,Os> mNMIOSToVDSOSMap
public static Map<SysInfo.Architecture,Arch> NMIArchToVDSArchMap()
public static Map<SysInfo.OS,Os> NMIOSToVDSOSMap()
public static VDSSysInfo nmiToVDSSysInfo(SysInfo sysinfo)
sysinfo
- the sysinfo objectpublic static VDSSysInfo nmiToVDSSysInfo(SysInfo.Architecture arch, SysInfo.OS os, String glibc)
arch
- architecture in the new NMI formatos
- the os in NMI formatglibc
- the glibc versionpublic static Arch nmiArchToVDSArch(SysInfo.Architecture arch)
arch
- architecture in the new NMI format.public static Arch nmiArchToVDSArch(String arch)
arch
- architecture in the new NMI format.public static Os nmiOSToVDSOS(SysInfo.OS os)
os
- the os in the new NMI format.