org.gridbus.broker.runfile
Class SubstituteCommand

java.lang.Object
  extended byorg.gridbus.broker.runfile.TaskCommand
      extended byorg.gridbus.broker.runfile.SubstituteCommand

public class SubstituteCommand
extends TaskCommand

This class represents a substitute command

Author:
Srikumar Venugopal (srikumar@cs.mu.oz.au)

Field Summary
 
Fields inherited from class org.gridbus.broker.runfile.TaskCommand
COPY_CMD, EXECUTE_CMD, GCOPY_CMD, MCOPY_CMD, REMOTE_EXECUTE_CMD, SUBSTITUTE_CMD, UNKNOWN_CMD
 
Constructor Summary
SubstituteCommand()
          Constructs a SubstituteCommand and sets its command type.
 
Method Summary
 void doSubstitution(java.util.Hashtable hash)
          Substitutes the source file with values in the hashtable
 void doSubstitutionwin(java.util.Hashtable hash)
          Substitution for Windows OS
 java.lang.String getDestination()
          Returns the destination file
 java.lang.String getSource()
          Returns the source file
 void setDestination(java.lang.String string)
          Sets the destination file location for the substitute command.
 void setSource(java.lang.String string)
          Sets the source file location for this substitute command.
 
Methods inherited from class org.gridbus.broker.runfile.TaskCommand
findType, getType, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubstituteCommand

public SubstituteCommand()
Constructs a SubstituteCommand and sets its command type.

Method Detail

doSubstitution

public void doSubstitution(java.util.Hashtable hash)
Substitutes the source file with values in the hashtable

Parameters:
hash -

doSubstitutionwin

public void doSubstitutionwin(java.util.Hashtable hash)
Substitution for Windows OS

Parameters:
hash -
See Also:
doSubstitution(Hashtable)

getDestination

public java.lang.String getDestination()
Returns the destination file

Returns:
string

getSource

public java.lang.String getSource()
Returns the source file

Returns:
string

setDestination

public void setDestination(java.lang.String string)
Sets the destination file location for the substitute command.

Parameters:
string -

setSource

public void setSource(java.lang.String string)
Sets the source file location for this substitute command.

Parameters:
string -