Class VDSSysInfo
- java.lang.Object
-
- edu.isi.pegasus.planner.catalog.transformation.classes.VDSSysInfo
-
public class VDSSysInfo extends java.lang.ObjectThis class keeps the system information associated with a resource or transformation.- Version:
- $Revision$
- Author:
- Gaurang Mehta gmehta@isi.edu
-
-
Constructor Summary
Constructors Constructor Description VDSSysInfo()The default constructor.VDSSysInfo(Arch arch, Os os, java.lang.String osversion, java.lang.String glibc)The secondary convenience constructor.VDSSysInfo(java.lang.String system)VDSSysInfo(java.lang.String arch, java.lang.String os, java.lang.String glibc)Another convenience constructor that uses all entries as strings.VDSSysInfo(java.lang.String arch, java.lang.String os, java.lang.String osversion, java.lang.String glibc)Another convenience constructor that uses all entries as strings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Return a copy of this Sysinfo objectbooleanequals(java.lang.Object obj)Check if the system information matches.ArchgetArch()Returns the architecture of the sytem.java.lang.StringgetGlibc()Retuns the glibc version of the system.OsgetOs()Returns the os type of the system.java.lang.StringgetOsversion()Returns the os version of the system.voidsetArch(Arch arch)Sets the architecture of the system.voidsetGlibc(java.lang.String glibc)Sets the glibc version of the systemvoidsetOs(Os os)Sets the Os of the sytem.voidsetOsversion(java.lang.String osversion)Sets the Os version of the system.java.lang.StringtoString()Returns the output of the data class as string.
-
-
-
Constructor Detail
-
VDSSysInfo
public VDSSysInfo(Arch arch, Os os, java.lang.String osversion, java.lang.String glibc)
The secondary convenience constructor.
-
VDSSysInfo
public VDSSysInfo(java.lang.String arch, java.lang.String os, java.lang.String glibc)Another convenience constructor that uses all entries as strings.- Parameters:
arch- Stringos- Stringglibc- String
-
VDSSysInfo
public VDSSysInfo(java.lang.String arch, java.lang.String os, java.lang.String osversion, java.lang.String glibc)Another convenience constructor that uses all entries as strings.- Parameters:
arch- Stringos- Stringosversion- Stringglibc- String
-
VDSSysInfo
public VDSSysInfo(java.lang.String system)
-
VDSSysInfo
public VDSSysInfo()
The default constructor. Sets the sysinfo to INTEL32::LINUX
-
-
Method Detail
-
setArch
public void setArch(Arch arch)
Sets the architecture of the system.- Parameters:
arch- Arch- See Also:
Arch
-
setOsversion
public void setOsversion(java.lang.String osversion)
Sets the Os version of the system.- Parameters:
osversion- String
-
setGlibc
public void setGlibc(java.lang.String glibc)
Sets the glibc version of the system- Parameters:
glibc- String
-
getOsversion
public java.lang.String getOsversion()
Returns the os version of the system.- Returns:
- String
-
getGlibc
public java.lang.String getGlibc()
Retuns the glibc version of the system.- Returns:
- String
-
clone
public java.lang.Object clone()
Return a copy of this Sysinfo object- Overrides:
clonein classjava.lang.Object- Returns:
- Object
-
equals
public boolean equals(java.lang.Object obj)
Check if the system information matches.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- to be compared.- Returns:
- boolean
-
toString
public java.lang.String toString()
Returns the output of the data class as string.- Overrides:
toStringin classjava.lang.Object- Returns:
- String
-
-