org.gridbus.broker.jobdescription
Class GridfileVariable
java.lang.Object
org.gridbus.broker.jobdescription.Variable
org.gridbus.broker.jobdescription.GridfileVariable
public class GridfileVariable
- extends Variable
- Author:
- kna,srikumar
This class is a special variable class that deals with Gridfiles. Each Gridfile has a
preferredDataHost which links to the DataHost from which the files is to be taken.
Note: The filename is the value that is stored here, and is the filename without any path stuff in it.
Do not put full file path as filename but let the DataHost provide it.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GridfileVariable
public GridfileVariable()
GridfileVariable
public GridfileVariable(java.lang.String name)
- Constructs a Variable with a name.
- Parameters:
name -
GridfileVariable
public GridfileVariable(java.lang.String name,
java.lang.String value)
- Constructs a GridfileVariable with a name and type.
- Parameters:
name - type - value -
getDatafile
public DataFile getDatafile()
- Returns:
- Returns the datafile.
setDatafile
public void setDatafile(DataFile datafile)
- Parameters:
datafile - The datafile to set.
duplicate
public Variable duplicate()
- Overrides:
duplicate in class Variable
- Returns:
getValue
public java.lang.String getValue()
- Overrides the normal variable value implementation,
to give the full path of the file IF a datahost has been set for the datafile
- Overrides:
getValue in class Variable
- Returns:
- Returns the value.