org.gridbus.broker.runfile
Class MCopyCommand
java.lang.Object
|
+--org.gridbus.broker.runfile.TaskCommand
|
+--org.gridbus.broker.runfile.CopyCommand
|
+--org.gridbus.broker.runfile.MCopyCommand
- All Implemented Interfaces:
- java.io.Serializable
- public class MCopyCommand
- extends CopyCommand
Represent a multiple file copy of a run file.
Within the runfile, command is 'mcopy source destination'.
The source can be one file or a wildcard pattern matching many.
The source MUST be on the node, so the pattern can be matched via 'ls' or similar.
The destination MUST be a directory.
- Author:
- bbeeson
- See Also:
- Serialized Form
|
Method Summary |
void |
setDestination(java.lang.String destination)
Sets the destination location for this copy command. |
void |
setSource(java.lang.String source)
Set source location (must be on the remote node, so must be 'node:xxx') |
| Methods inherited from class org.gridbus.broker.runfile.CopyCommand |
getDestination, getSource, isDestinationPathRelative, isDestinationRemote, isSourcePathRelative, isSourceRemote, setDestination, setDestinationPathRelative, setDestinationRemote, setSource, setSourcePathRelative, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MCopyCommand
public MCopyCommand()
setSource
public void setSource(java.lang.String source)
throws java.lang.RuntimeException
- Set source location (must be on the remote node, so must be 'node:xxx')
- Overrides:
setSource in class CopyCommand
- Parameters:
source - where the file will be copied from.
- Throws:
java.lang.RuntimeException - if "node:" in not in 'source'
setDestination
public void setDestination(java.lang.String destination)
- Sets the destination location for this copy command.
if location name is preceded by "node:" then it is assumed to be remote.
- Overrides:
setDestination in class CopyCommand
- Parameters:
destination - where the file will be copied to.