gov.bnl.star.offline.scheduler
Class OutputCopyAction
java.lang.Object
gov.bnl.star.offline.scheduler.OutputAction
gov.bnl.star.offline.scheduler.OutputCopyAction
- All Implemented Interfaces:
- java.io.Serializable
public class OutputCopyAction
- extends OutputAction
- implements java.io.Serializable
An OutputAction for copying output date to a differnt location.
- Author:
- Carcassi & Hajdu
- See Also:
- Serialized Form
Constructor Summary |
OutputCopyAction()
|
OutputCopyAction(java.util.List actionList,
java.lang.String id,
java.lang.String referto,
java.lang.String to,
int retries,
int sleep,
java.lang.String type)
Creates a new instance of OutputCopyAction |
Method Summary |
java.lang.String |
getScriptName()
Returns true, as all CopyActions are reference generators. |
java.lang.String |
getType()
|
java.lang.String |
makeScriptString(java.lang.String outputFile,
java.lang.String gateway)
|
void |
setType(java.lang.String type)
|
Methods inherited from class gov.bnl.star.offline.scheduler.OutputAction |
findReferTo, GetActionList, getExpectedActionResultFile, getID, getOutputFile, getReferTo, getRetries, getSleep, getTo, SetActionList, setID, setOutputFile, setReferTo, setRetries, setSleep, setTo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutputCopyAction
public OutputCopyAction(java.util.List actionList,
java.lang.String id,
java.lang.String referto,
java.lang.String to,
int retries,
int sleep,
java.lang.String type)
- Creates a new instance of OutputCopyAction
OutputCopyAction
public OutputCopyAction()
setType
public void setType(java.lang.String type)
getType
public java.lang.String getType()
getScriptName
public java.lang.String getScriptName()
- Returns true, as all CopyActions are reference generators. Being a reference
generator means that in the script they are able to determine the location
of the target files. Copy actions will determine the target location either
with the URI, or by combining the URI with the result of the storageService
query. In any case, the copy action will prepare an environment variable
with the full target URI, which can then be used by other actions that
use the same reference
- Specified by:
getScriptName
in class OutputAction
makeScriptString
public java.lang.String makeScriptString(java.lang.String outputFile,
java.lang.String gateway)
- Specified by:
makeScriptString
in class OutputAction
Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.