Class GlobusVersion
- java.lang.Object
-
- edu.isi.pegasus.planner.catalog.site.impl.old.classes.GlobusVersion
-
public class GlobusVersion extends java.lang.Object
This is a data class that stores the globus version installed and to be used on a particular pool for the gridftp server or the jobmanagers.- Version:
- $Revision$
- Author:
- Gaurang Mehta gmehta@isi.edu, Karan Vahi vahi@isi.edu
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MAJOR
The constant for the major version type.static java.lang.String
MINOR
The constant for the minor version type.private int
mMajorVersion
This variable defines the major version number.private int
mMinorVersion
This variable defines the minor version number.private int
mPatchVersion
This variable defines the patch version number.static java.lang.String
PATCH
The constant for patche version type.
-
Constructor Summary
Constructors Constructor Description GlobusVersion()
The default constructor.GlobusVersion(int major, int minor, int patch)
Constructor to set the version informationGlobusVersion(java.lang.String version)
Overloaded constructor for the class;
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getGlobusVersion()
Returns the Globus version as a dot separated String.int
getGlobusVersion(java.lang.String version)
Returns the version corresponding to a particular version type.java.lang.String
toMultiLine()
Returns the textual description of the contents ofGlobusVersion
object in the multiline format.java.lang.String
toString()
Returns the textual description of the contents ofGlobusVersion
object.
-
-
-
Field Detail
-
MAJOR
public static final java.lang.String MAJOR
The constant for the major version type.- See Also:
- Constant Field Values
-
MINOR
public static final java.lang.String MINOR
The constant for the minor version type.- See Also:
- Constant Field Values
-
PATCH
public static final java.lang.String PATCH
The constant for patche version type.- See Also:
- Constant Field Values
-
mMajorVersion
private int mMajorVersion
This variable defines the major version number.
-
mMinorVersion
private int mMinorVersion
This variable defines the minor version number.
-
mPatchVersion
private int mPatchVersion
This variable defines the patch version number.
-
-
Constructor Detail
-
GlobusVersion
public GlobusVersion()
The default constructor.
-
GlobusVersion
public GlobusVersion(java.lang.String version)
Overloaded constructor for the class;- Parameters:
version
- a . separated String denoting the version . e.g. 2.2.4
-
GlobusVersion
public GlobusVersion(int major, int minor, int patch)
Constructor to set the version information- Parameters:
major
- Specifies the Major version number.minor
- Specifies the minor version number.patch
- Specifies the patch version number.
-
-
Method Detail
-
getGlobusVersion
public int getGlobusVersion(java.lang.String version)
Returns the version corresponding to a particular version type. If an invalid version type is specified then 0 is returned.
-
getGlobusVersion
public java.lang.String getGlobusVersion()
Returns the Globus version as a dot separated String. It is of type major.minor.patch where major, minor and patch are the various version numbers stored in the class.- Returns:
- the version a dot separated String.
-
toMultiLine
public java.lang.String toMultiLine()
Returns the textual description of the contents ofGlobusVersion
object in the multiline format.- Returns:
- the textual description in multiline format.
-
toString
public java.lang.String toString()
Returns the textual description of the contents ofGlobusVersion
object.- Overrides:
toString
in classjava.lang.Object
- Returns:
- the textual description.
-
-