|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.catalog.classes.SysInfo
public class SysInfo
A container class to keep system information associated with a Site entry in the Site Catalog or a Transformation in the Transformation Catalog. The class follows the NMI conventions for specifying Architecture/ OS and OS release.
| Nested Class Summary | |
|---|---|
static class |
SysInfo.Architecture
Enumerates the new architecture types supported in Pegasus. |
static class |
SysInfo.OS
Enumerates the new OS types supported in Pegasus. |
| Field Summary | |
|---|---|
static SysInfo.Architecture |
DEFAULT_ARCHITECTURE
The default Architecture the entry is associated with if none is specified |
static SysInfo.OS |
DEFAULT_OS
The default OS the entry is associated with if none is specified |
protected SysInfo.Architecture |
mArchitecture
The architecture. |
protected String |
mGlibc
The Glibc version. |
protected SysInfo.OS |
mOS
The Operating System. |
protected String |
mOSRelease
The Operating System Release. |
protected String |
mOSVersion
The Operating System Version. |
| Constructor Summary | |
|---|---|
SysInfo()
The default constructor. |
|
SysInfo(String system)
This constructor takes the system information in the format arch::os:osversion:glibc |
|
| Method Summary | |
|---|---|
Object |
clone()
Returns the clone of the object. |
boolean |
equals(Object obj)
Check if the system information matches. |
SysInfo.Architecture |
getArchitecture()
Returns the architecture of the site. |
String |
getGlibc()
Returns the glibc version of the site. |
SysInfo.OS |
getOS()
Returns the OS of the site. |
String |
getOSRelease()
Returns the OS release of the site. |
String |
getOSVersion()
Returns the OS version of the site. |
private static boolean |
isValidArchitecture(String arch)
Checks if the architecture is a valid supported architecture |
private static boolean |
isValidOS(String os)
Checks if the operating system is a valid supported operating system |
void |
setArchitecture(SysInfo.Architecture arch)
Sets the architecture of the site. |
void |
setGlibc(String version)
Sets the glibc version on the site. |
void |
setOS(SysInfo.OS os)
Sets the OS of the site. |
void |
setOSRelease(String release)
Sets the OS release of the site. |
void |
setOSVersion(String version)
Sets the OS version of the site. |
String |
toString()
Returns the output of the data class as string. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final SysInfo.OS DEFAULT_OS
public static final SysInfo.Architecture DEFAULT_ARCHITECTURE
protected SysInfo.Architecture mArchitecture
protected SysInfo.OS mOS
protected String mOSRelease
protected String mOSVersion
protected String mGlibc
| Constructor Detail |
|---|
public SysInfo()
public SysInfo(String system)
system - the system information string| Method Detail |
|---|
private static boolean isValidArchitecture(String arch)
arch - architecture
private static boolean isValidOS(String os)
os - operating system
public void setArchitecture(SysInfo.Architecture arch)
arch - the architecture.public SysInfo.Architecture getArchitecture()
public void setOS(SysInfo.OS os)
os - the os of the site.public SysInfo.OS getOS()
public void setOSRelease(String release)
release - the os releaseof the site.public String getOSRelease()
public void setOSVersion(String version)
version - the os versionof the site.public String getOSVersion()
public void setGlibc(String version)
version - the glibc version of the site.public String getGlibc()
public boolean equals(Object obj)
equals in class Objectobj - to be compared.
public Object clone()
clone in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||