org.gridbus.broker.jobdescription
Class GridfileVariable

java.lang.Object
  extended by org.gridbus.broker.jobdescription.Variable
      extended by 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.

Constructor Summary
GridfileVariable()
           
GridfileVariable(java.lang.String name)
          Constructs a Variable with a name.
GridfileVariable(java.lang.String name, java.lang.String value)
          Constructs a GridfileVariable with a name and type.
 
Method Summary
 Variable duplicate()
           
 DataFile getDatafile()
           
 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
 void setDatafile(DataFile datafile)
           
 
Methods inherited from class org.gridbus.broker.jobdescription.Variable
getName, getType, setType, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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.

Copyright © The University of Melbourne. 2006