public class NMI2VDSSysInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<SysInfo.Architecture,Arch> |
mNMIArchToVDSArchMap
The map storing architecture to corresponding NMI architecture platforms.
|
private static java.util.Map<SysInfo.OS,Os> |
mNMIOSToVDSOSMap
The map storing OS to corresponding NMI OS platforms.
|
static java.lang.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(java.lang.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 java.util.Map<SysInfo.Architecture,Arch> |
NMIArchToVDSArchMap()
Singleton access to the NMI arch to VDS arch map.
|
static Os |
nmiOSToVDSOS(java.lang.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 java.util.Map<SysInfo.OS,Os> |
NMIOSToVDSOSMap()
Singleton access to the os to NMI os map.
|
static VDSSysInfo |
nmiToVDSSysInfo(SysInfo.Architecture arch,
SysInfo.OS os,
java.lang.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 java.util.Map<SysInfo.Architecture,Arch> mNMIArchToVDSArchMap
public static final java.lang.String OS_COMBINE_SEPARATOR
private static java.util.Map<SysInfo.OS,Os> mNMIOSToVDSOSMap
public static java.util.Map<SysInfo.Architecture,Arch> NMIArchToVDSArchMap()
public static java.util.Map<SysInfo.OS,Os> NMIOSToVDSOSMap()
public static VDSSysInfo nmiToVDSSysInfo(SysInfo sysinfo)
sysinfo
- the sysinfo objectpublic static VDSSysInfo nmiToVDSSysInfo(SysInfo.Architecture arch, SysInfo.OS os, java.lang.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(java.lang.String arch)
arch
- architecture in the new NMI format.public static Os nmiOSToVDSOS(SysInfo.OS os)
os
- the os in the new NMI format.public static Os nmiOSToVDSOS(java.lang.String os)
os
- the os in the new NMI format.