Package edu.isi.pegasus.planner.dax
Class AbstractJob
java.lang.Object
edu.isi.pegasus.planner.dax.AbstractJob
- Version:
- $Revision$
- Author:
- gmehta
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Custom serializer for YAML representation of AbstractJob -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static final String
private static final String
protected List
protected String
protected static edu.isi.pegasus.common.logging.LogManager
The metadata attributes associated with the whole workflow.protected String
protected String
protected String
protected File
protected File
protected File
protected String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
Copy constructor -
Method Summary
Modifier and TypeMethodDescriptionaddArgument
(File file) Add a file object to the argument List.addArgument
(File[] files) Add a Array ofFile
objects to the argument list.addArgument
(File[] files, String filedelimiter) Deprecated.As of 5.0.2 release this function will not work consistently as ARG_LIMITER is always added between argsaddArgument
(String argument) Add a string argument to the argument List.addArgument
(String argkey, File argvalue) Add a argument key and File value to the argument List.
The argkey and argvalue are seperated by space.
Example addArgument("-i",new File("f.a")) will result in the argument being added as -i <file name="f.a">
Multiple calls to addArgument results in the arguments being separated by space.addArgument
(String argkey, File[] argvalue) Add a argument key and an array of Files to the argument List.
The argkey and argvalue are separated space.
The files are separated by a space
Example:
File[] files = {new File("f.a1"), new File("f.a2")};
job.addArgument("-i",files)
will result in the argument being added as -i <file name="f.a1"> <file name="f.a2">
Multiple calls to addArgument results in the arguments being separated by space.addArgument
(String argkey, File[] argvalue, String argdelimiter, String filedelimiter) Add a argument key and an array of Files to the argument List.
The argkey and argvalue are separated by the argdelimiter.
The files are separated by a filedelimiter
Example:
File[] files = {new File("f.a1"), new File("f.a2")};
job.addArgument("-i",files,"=",",")
will result in the argument being added as -i=<file name="f.a1">,<file name="f.a2">
Multiple calls to addArgument results in the arguments being separated by space.addArgument
(String argkey, File argvalue, String argdelimiter) Add a argument key and File value to the argument List.
The argkey and argvalue are separated by the argdelimiter.
Example addArgument("-i",new File("f.a"),"=") will result in the argument being added as -i=<file name="f.a">
Multiple calls to addArgument results in the arguments being separated by space.addArgument
(String argkey, String argvalue) Add a argument key and value to the argument List.addArgument
(String argkey, String argvalue, String argdelimiter) Add a argument key and value to the argument List.
The argkey and argvalue are seperated by argdelimiter.
Example addArgument("-p","0","=") will result in the argument being added as -p=0
Multiple calls to addArgument results in the arguments being separated by space.addArgument
(String argkey, List<File> argvalue) Add a argument key and a List of Files to the argument List.
The argkey and argvalue are separated space.
The files are separated by a space
Example:Add a argument key and a List of Files to the argument List.
The argkey and argvalue are separated by the argdelimiter.
The files are separated by a filedelimter
Example:
List<File> files = new LinkedList<File>(); files.add(new File("f.a1")); files.add(new File("f.a2")); job.addArgument("-i",files,"=",",")
will result in the argument being added as -i=<file name="f.a1">,<file name="f.a2">
Multiple calls to addArgument results in the arguments being separated by space.addArgument
(List<File> files) Add a List ofFile
objects to the argument list.addArgument
(List<File> files, String filedelimiter) Deprecated.As of 5.0.2 release this function will not work consistently as ARG_LIMITER is always added between argsAdd notification to the jobaddInvoke
(Invoke.WHEN when, String what) Add Notification to the jobaddInvokes
(List<Invoke> invokes) Add Notifications to the jobaddMetaData
(String key, String value) Adds metadata to the workflowaddNotification
(Invoke invoke) Add notification to the jobaddNotification
(Invoke.WHEN when, String what) Add Notification to the jobaddNotifications
(List<Invoke> invokes) Add Notifications to the jobaddProfile
(Profile profile) Add a Profile objectaddProfile
(Profile.NAMESPACE namespace, String key, String value) Add a profile to the jobaddProfile
(String namespace, String key, String value) Add a profile to the jobaddProfiles
(List<Profile> profiles) Add a list of Profile objectsprotected static void
Copy Constructorboolean
Return the argument List.getId()
Returns list of Invoke objectsgetMetaData
(String key) Returns the metadata associated for a key if exists, else nullgetName()
Same as getInvoke().Return the profile List.getStdin()
Get the STDIN file objectgetUses()
int
hashCode()
boolean
isDAG()
Is this Object a DAGboolean
isDAX()
Is this Object a DAXboolean
isJob()
Is this Object a Jobvoid
setNodeLabel
(String label) setStderr
(File stderr, File.TRANSFER transfer) setStderr
(File stderr, File.TRANSFER transfer, boolean register) setStderr
(File stderr, File.TRANSFER transfer, boolean register, boolean optional) setStderr
(String stderr, File.TRANSFER transfer) setStderr
(String stderr, File.TRANSFER transfer, boolean register) setStderr
(String stderr, File.TRANSFER transfer, boolean register, boolean optional) setStdin
(File stdin, File.TRANSFER transfer) setStdin
(File stdin, File.TRANSFER transfer, boolean register) setStdin
(File stdin, File.TRANSFER transfer, boolean register, boolean optional) setStdin
(String stdin, File.TRANSFER transfer) setStdin
(String stdin, File.TRANSFER transfer, boolean register) setStdin
(String stdin, File.TRANSFER transfer, boolean register, boolean optional) setStdout
(File stdout, File.TRANSFER transfer) setStdout
(File stdout, File.TRANSFER transfer, boolean register) setStdout
(File stdout, File.TRANSFER transfer, boolean register, boolean optional) setStdout
(String stdout, File.TRANSFER transfer) setStdout
(String stdout, File.TRANSFER transfer, boolean register) setStdout
(String stdout, File.TRANSFER transfer, boolean register, boolean optional) void
toXML
(edu.isi.pegasus.common.util.XMLWriter writer) void
toXML
(edu.isi.pegasus.common.util.XMLWriter writer, int indent) uses
(File file, File.LINK link, File.TRANSFER transfer) uses
(File file, File.LINK link, File.TRANSFER transfer, boolean register) uses
(File file, File.LINK link, File.TRANSFER transfer, boolean register, boolean forPlanning) uses
(File file, File.LINK link, File.TRANSFER transfer, boolean register, boolean optional, boolean executable) uses
(File file, File.LINK link, File.TRANSFER transfer, boolean register, boolean optional, boolean executable, String size) uses
(File file, File.LINK link, File.TRANSFER transfer, boolean register, String size) uses
(File file, File.LINK link, File.TRANSFER transfer, String size) uses
(String file, File.LINK link, File.TRANSFER transfer) uses
(String file, File.LINK link, File.TRANSFER transfer, boolean register) uses
(String file, File.LINK link, File.TRANSFER transfer, boolean register, boolean forPlanning) uses
(String file, File.LINK link, File.TRANSFER transfer, boolean register, boolean optional, boolean executable) uses
(String file, File.LINK link, File.TRANSFER transfer, boolean register, boolean optional, boolean executable, String size) uses
(String file, File.LINK link, File.TRANSFER transfer, boolean register, String size) uses
(String file, File.LINK link, File.TRANSFER transfer, String size)
-
Field Details
-
mArguments
-
mProfiles
-
mStdin
-
mStdout
-
mStderr
-
mUses
-
mInvokes
-
mName
-
mId
-
mNamespace
-
mVersion
-
mNodeLabel
-
mMetaDataAttributes
The metadata attributes associated with the whole workflow. -
mLogger
protected static edu.isi.pegasus.common.logging.LogManager mLogger -
ARG_DELIMITER
- See Also:
-
FILE_DELIMITER
- See Also:
-
JOBTYPE
- See Also:
-
-
Constructor Details
-
AbstractJob
protected AbstractJob() -
AbstractJob
Copy constructor- Parameters:
a
- the job
-
-
Method Details
-
checkID
Copy Constructor- Parameters:
id
- the string id
-
getArguments
- Returns:
- List
-
addArgument
Add a string argument to the argument List. Each call to argument adds a space in between entries- Parameters:
argument
- argument to the job- Returns:
- AbstractJob
-
addArgument
Add a file object to the argument List. Each call to argument adds a space between entries.- Parameters:
file
- the file- Returns:
- AbstractJob
- See Also:
-
addArgument
Add a Array ofFile
objects to the argument list. The files will be separated by space when rendered on the command line- Parameters:
files
- File[]- Returns:
- AbstractJob
- See Also:
-
addArgument
Add a List ofFile
objects to the argument list. The files will be separated by space when rendered on the command line- Parameters:
files
- List of File objects- Returns:
- AbstractJob
- See Also:
-
addArgument
Deprecated.As of 5.0.2 release this function will not work consistently as ARG_LIMITER is always added between argsAdd a Array ofFile
objects to the argument list. The files will be separated by the filedelimiter(default is space) when rendered on the command line.- Parameters:
files
- File[] Array of file objectsfiledelimiter
- String delimiter for the files. Default is space- Returns:
- AbstractJob
- See Also:
-
addArgument
Deprecated.As of 5.0.2 release this function will not work consistently as ARG_LIMITER is always added between argsAdd a List ofFile
objects to the argument list. The files will be separated by the filedelimiter(default is space) when rendered on the command line.- Parameters:
files
- List of File objectsfiledelimiter
- String delimiter for the files. Default is space- Returns:
- AbstractJob
- See Also:
-
addArgument
Add a argument key and value to the argument List. The argkey and argvalue are seperated by space. Example addArgument("-p","0") will result in the argument being added as -p 0
Multiple calls to addArgument results in the arguments being separated by space.- Parameters:
argkey
- Stringargvalue
- String- Returns:
- AbstractJob
-
addArgument
Add a argument key and value to the argument List.
The argkey and argvalue are seperated by argdelimiter.
Example addArgument("-p","0","=") will result in the argument being added as -p=0
Multiple calls to addArgument results in the arguments being separated by space.- Parameters:
argkey
- String Keyargvalue
- String Valueargdelimiter
- String argdelimiter- Returns:
- AbstractJob
-
addArgument
Add a argument key and File value to the argument List.
The argkey and argvalue are seperated by space.
Example addArgument("-i",new File("f.a")) will result in the argument being added as -i <file name="f.a">
Multiple calls to addArgument results in the arguments being separated by space.- Parameters:
argkey
- Stringargvalue
- File- Returns:
- AbstractJob
-
addArgument
Add a argument key and File value to the argument List.
The argkey and argvalue are separated by the argdelimiter.
Example addArgument("-i",new File("f.a"),"=") will result in the argument being added as -i=<file name="f.a">
Multiple calls to addArgument results in the arguments being separated by space.- Parameters:
argkey
- Stringargvalue
- Fileargdelimiter
- argumenet delimiter- Returns:
- AbstractJob
-
addArgument
Add a argument key and an array of Files to the argument List.
The argkey and argvalue are separated space.
The files are separated by a space
Example:
File[] files = {new File("f.a1"), new File("f.a2")};
job.addArgument("-i",files)
will result in the argument being added as -i <file name="f.a1"> <file name="f.a2">
Multiple calls to addArgument results in the arguments being separated by space.- Parameters:
argkey
- Stringargvalue
- File[]- Returns:
- AbstractJob
-
addArgument
Add a argument key and a List of Files to the argument List.
The argkey and argvalue are separated space.
The files are separated by a space
Example:
Multiple calls to addArgument results in the arguments being separated by space.List<File> files = new LinkedList<File>(); files.add(new File("f.a1")); files.add(new File("f.a2")); job.addArgument("-i",files)
will result in the argument being added as -i <file name="f.a1"> <file name="f.a2">
- Parameters:
argkey
- Stringargvalue
- list of files to be passed as arguments- Returns:
- AbstractJob
-
addArgument
public AbstractJob addArgument(String argkey, File[] argvalue, String argdelimiter, String filedelimiter) Add a argument key and an array of Files to the argument List.
The argkey and argvalue are separated by the argdelimiter.
The files are separated by a filedelimiter
Example:
File[] files = {new File("f.a1"), new File("f.a2")};
job.addArgument("-i",files,"=",",")
will result in the argument being added as -i=<file name="f.a1">,<file name="f.a2">
Multiple calls to addArgument results in the arguments being separated by space.- Parameters:
argkey
- Stringargvalue
- File[]argdelimiter
- Stringfiledelimiter
- String- Returns:
- AbstractJob
-
addArgument
public AbstractJob addArgument(String argkey, List<File> argvalue, String argdelimiter, String filedelimiter) Add a argument key and a List of Files to the argument List.
The argkey and argvalue are separated by the argdelimiter.
The files are separated by a filedelimter
Example:
List<File> files = new LinkedList<File>(); files.add(new File("f.a1")); files.add(new File("f.a2")); job.addArgument("-i",files,"=",",")
will result in the argument being added as -i=<file name="f.a1">,<file name="f.a2">
Multiple calls to addArgument results in the arguments being separated by space.- Parameters:
argkey
- Stringargvalue
- List<File> List of File objectsargdelimiter
- Stringfiledelimiter
- String- Returns:
- AbstractJob
-
addProfile
Add a profile to the job- Parameters:
namespace
- Stringkey
- Stringvalue
- String- Returns:
- AbstractJob
-
addProfile
Add a profile to the job- Parameters:
namespace
-Profile.NAMESPACE
key
- Stringvalue
- String- Returns:
- AbstractJob
-
addProfile
Add a Profile object- Parameters:
profile
- the profile to add- Returns:
- AbstractJob
- See Also:
-
addProfiles
Add a list of Profile objects- Parameters:
profiles
- List<Profile>- Returns:
- AbstractJob
-
getProfiles
Return the profile List. The List contains bothProfile
objects- Returns:
- List
-
getStdin
Get the STDIN file object- Returns:
- File
-
setStdin
- Parameters:
stdin
- file object corresponding to the stdin of the file- Returns:
- AbstractJob
-
setStdin
- Parameters:
stdin
- file object corresponding to the stdin of the filetransfer
- the transfer flag to associate with stdin.- Returns:
- AbstractJob
-
setStdin
- Parameters:
stdin
- File object corresponding to the stdin of the fileregister
- the register flag- Returns:
- AbstractJob
-
setStdin
- Parameters:
stdin
- File object corresponding to the stdin of the filetransfer
- the transfer flag for stdinregister
- the register flag for the stdin- Returns:
- AbstractJob
-
setStdin
- Parameters:
stdin
- File object corresponding to the stdin of the filetransfer
- the transfer flag for stdinregister
- the register flag for the stdinoptional
- boolean indicating file is optional- Returns:
- AbstractJob
-
setStdin
- Parameters:
stdin
- File object corresponding to the stdin of the file- Returns:
- AbstractJob
-
setStdin
- Parameters:
stdin
- File object corresponding to the stdin of the filetransfer
- transfer flag associated with the stdin- Returns:
- AbstractJob
-
setStdin
- Parameters:
stdin
- File object corresponding to the stdin of the fileregister
- the register flag- Returns:
- AbstractJob
-
setStdin
- Parameters:
stdin
- File object corresponding to the stdin of the filetransfer
- the transfer flag for stdinregister
- boolean register flag for the stdin- Returns:
- AbstractJob
-
setStdin
public AbstractJob setStdin(String stdin, File.TRANSFER transfer, boolean register, boolean optional) - Parameters:
stdin
- File object corresponding to the stdin of the filetransfer
- the transfer flag for stdinregister
- boolean register flag for the stdinoptional
- boolean indicating whether file is optional or not.- Returns:
- AbstractJob
-
getStdout
- Returns:
- File
-
setStdout
- Parameters:
stdout
- File object corresponding to the stdout of the job- Returns:
- AbstractJob
-
setStdout
- Parameters:
stdout
- File object corresponding to the stdout of the jobtransfer
- transfer flag- Returns:
- AbstractJob
-
setStdout
- Parameters:
stdout
- File object corresponding to the stdout of the jobregister
- boolean to indicate whether to register stdout or not- Returns:
- AbstractJob
-
setStdout
- Parameters:
stdout
- File object corresponding to the stdout of the jobtransfer
- transfer flag for stdoutregister
- boolean to indicate whether to register stdout or not- Returns:
- AbstractJob
-
setStdout
public AbstractJob setStdout(File stdout, File.TRANSFER transfer, boolean register, boolean optional) - Parameters:
stdout
- File object corresponding to the stdout of the jobtransfer
- transfer flag for stdoutregister
- boolean to indicate whether to register stdout or notoptional
- boolean to indicate whether file is optional or not.- Returns:
- AbstractJob
-
setStdout
- Parameters:
stdout
- name of the file to which stdout should be redirected to- Returns:
- AbstractJob
-
setStdout
- Parameters:
stdout
- File object corresponding to the stdout of the jobtransfer
- transfer flag for stdout- Returns:
- AbstractJob
-
setStdout
- Parameters:
stdout
- File object corresponding to the stdout of the jobregister
- boolean to indicate whether to register stdout or not- Returns:
- AbstractJob
-
setStdout
- Parameters:
stdout
- File object corresponding to the stdout of the jobtransfer
- transfer flag for stdoutregister
- boolean to indicate whether to register stdout or not- Returns:
- AbstractJob
-
setStdout
public AbstractJob setStdout(String stdout, File.TRANSFER transfer, boolean register, boolean optional) - Parameters:
stdout
- File object corresponding to the stdout of the jobtransfer
- transfer flag for stdoutregister
- boolean to indicate whether to register stdout or notoptional
- indicate whether file is optional or not.- Returns:
- AbstractJob
-
getStderr
- Returns:
- File
-
setStderr
- Parameters:
stderr
- File object corresponding to the stderr of the job- Returns:
- AbstractJob
-
setStderr
- Parameters:
stderr
- File object corresponding to the stderr of the jobtransfer
- transfer flag for stderr- Returns:
- AbstractJob
-
setStderr
- Parameters:
stderr
- File object corresponding to the stderr of the jobregister
- boolean to indicate whether to register stederr or not- Returns:
- AbstractJob
-
setStderr
- Parameters:
stderr
- File object corresponding to the stderr of the jobtransfer
- transfer flag for stderrregister
- boolean to indicate whether to register stederr or not- Returns:
- AbstractJob
-
setStderr
public AbstractJob setStderr(File stderr, File.TRANSFER transfer, boolean register, boolean optional) - Parameters:
stderr
- File object corresponding to the stderr of the jobtransfer
- transfer flag for stderrregister
- boolean to indicate whether to register stederr or notoptional
- boolean to indicate whether file is optional or not- Returns:
- AbstractJob
-
setStderr
- Parameters:
stderr
- name of file to which stderr of the job should be redirected to- Returns:
- AbstractJob
-
setStderr
- Parameters:
stderr
- name of the file to which stderr should be redirected totransfer
- transfer flag for stderr- Returns:
- AbstractJob
-
setStderr
- Parameters:
stderr
- name of the file to which stderr should be redirected toregister
- boolean to indicate whether to register stederr or not- Returns:
- AbstractJob
-
setStderr
- Parameters:
stderr
- name of the file to which stderr should be redirected totransfer
- transfer flag for stderrregister
- boolean to indicate whether to register stederr or not- Returns:
- AbstractJob
-
setStderr
public AbstractJob setStderr(String stderr, File.TRANSFER transfer, boolean register, boolean optional) - Parameters:
stderr
- name of the file to which stderr should be redirected totransfer
- transfer flag for stderrregister
- boolean to indicate whether to register stederr or notoptional
- boolean indicating whether file is optional or not- Returns:
- AbstractJob
-
getUses
- Returns:
- Set of File objects
-
uses
- Parameters:
file
- the file used by the joblink
- indicating whether file is input or output- Returns:
- AbstractJob
-
uses
- Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputregister
- boolean indicating whether file should be registered or not- Returns:
- AbstractJob
-
uses
- Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputregister
- boolean indicating whether file should be registered or notsize
- size of the file- Returns:
- AbstractJob
-
uses
- Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputsize
- size of the file- Returns:
- AbstractJob
-
uses
- Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputtransfer
- transfer flag indicating whether file should be transferred or not- Returns:
- AbstractJob
-
uses
- Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputtransfer
- transfer flag indicating whether file should be transferred or notsize
- size of the file- Returns:
- AbstractJob
-
uses
- Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputtransfer
- transfer flag indicating whether file should be transferred or notregister
- whether to register the file or not- Returns:
- AbstractJob
-
uses
public AbstractJob uses(String file, File.LINK link, File.TRANSFER transfer, boolean register, boolean forPlanning) - Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputtransfer
- transfer flag indicating whether file should be transferred or notregister
- whether to register the file or notforPlanning
- whether the file is required for use by planner- Returns:
- AbstractJob
-
uses
public AbstractJob uses(String file, File.LINK link, File.TRANSFER transfer, boolean register, String size) - Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputtransfer
- transfer flag indicating whether file should be transferred or notregister
- whether to register file or notsize
- size of the file- Returns:
- AbstractJob
-
uses
public AbstractJob uses(String file, File.LINK link, File.TRANSFER transfer, boolean register, boolean optional, boolean executable) - Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputtransfer
- transfer flag indicating whether file should be transferred or notregister
- whether to register the fileoptional
- whether file is optional or notexecutable
- whether file being transferred is an executable or not- Returns:
- AbstractJob
-
uses
public AbstractJob uses(String file, File.LINK link, File.TRANSFER transfer, boolean register, boolean optional, boolean executable, String size) - Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputtransfer
- transfer flag indicating whether file should be transferred or notregister
- whether to register the fileoptional
- whether file is optional or notexecutable
- whether file being transferred is an executable or notsize
- size- Returns:
- AbstractJob
-
uses
- Parameters:
file
- the file used by the joblink
- indicating whether file is input or output- Returns:
- AbstractJob
-
uses
- Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputtransfer
- transfer flag indicating whether file should be transferred or not- Returns:
- AbstractJob
-
uses
- Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputtransfer
- transfer flag indicating whether file should be transferred or notsize
- size of the file- Returns:
- AbstractJob
-
uses
- Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputregister
- whether to register the file- Returns:
- AbstractJob
-
uses
- Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputregister
- register flagsize
- size- Returns:
- AbstractJob
-
uses
- Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputsize
- size- Returns:
- AbstractJob
-
uses
- Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputtransfer
- transfer flag indicating whether file should be transferred or notregister
- whether to register the file- Returns:
- AbstractJob
-
uses
public AbstractJob uses(File file, File.LINK link, File.TRANSFER transfer, boolean register, boolean forPlanning) - Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputtransfer
- transfer flag indicating whether file should be transferred or notregister
- whether to register the fileforPlanning
- whether the file is to be used for planning purposes- Returns:
- AbstractJob
-
uses
public AbstractJob uses(File file, File.LINK link, File.TRANSFER transfer, boolean register, String size) - Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputtransfer
- transfer flag indicating whether file should be transferred or notregister
- whether to register the filesize
- size of the file- Returns:
- AbstractJob
-
uses
public AbstractJob uses(File file, File.LINK link, File.TRANSFER transfer, boolean register, boolean optional, boolean executable) - Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputtransfer
- transfer flag indicating whether file should be transferred or notregister
- whether to register the fileoptional
- whether file is optional or notexecutable
- whether file being transferred is an executable or not- Returns:
- AbstractJob
-
uses
public AbstractJob uses(File file, File.LINK link, File.TRANSFER transfer, boolean register, boolean optional, boolean executable, String size) - Parameters:
file
- the file used by the joblink
- indicating whether file is input or outputtransfer
- transfer flag indicating whether file should be transferred or notregister
- whether to register the fileoptional
- whether file is optional or notexecutable
- whether file being transferred is an executable or notsize
- size of the file- Returns:
- AbstractJob
-
uses
- Parameters:
files
- list of files to uselink
- linkage for the file- Returns:
- AbstractJob
-
getInvoke
Returns list of Invoke objects- Returns:
- List of invoke objects
-
getNotification
Same as getInvoke(). Returns list of Invoke objects- Returns:
- List of invoke objects containing the notifications
-
addInvoke
Add Notification to the job- Parameters:
when
- when to invokewhat
- what executable to invoke including the arguments- Returns:
- AbstractJob
-
addNotification
Add Notification to the job- Parameters:
when
- when to invokewhat
- what executable to invoke including the arguments- Returns:
- AbstractJob
-
addInvoke
Add notification to the job- Parameters:
invoke
- the Invoke object- Returns:
- AbstractJob
-
addNotification
Add notification to the job- Parameters:
invoke
- the Invoke object- Returns:
- AbstractJob
-
addInvokes
Add Notifications to the job- Parameters:
invokes
- list of invoke objects- Returns:
- AbstractJob
-
addNotifications
Add Notifications to the job- Parameters:
invokes
- list of Invoke objects- Returns:
- AbstractJob
-
addMetaData
Adds metadata to the workflow- Parameters:
key
- key name for metadatavalue
- value- Returns:
- the Abstract Job
-
getMetaData
Returns the metadata associated for a key if exists, else null- Parameters:
key
- the metadata key- Returns:
- metadata key
-
isJob
public boolean isJob()Is this Object a Job- Returns:
- boolean
-
isDAX
public boolean isDAX()Is this Object a DAX- Returns:
- boolean
-
isDAG
public boolean isDAG()Is this Object a DAG- Returns:
- boolean
-
getName
- Returns:
- String
-
getId
- Returns:
- String
-
getNodeLabel
- Returns:
- String
-
setNodeLabel
- Parameters:
label
- node lable
-
equals
-
hashCode
public int hashCode() -
toXML
public void toXML(edu.isi.pegasus.common.util.XMLWriter writer) - Parameters:
writer
- the XMLWriter
-
toXML
public void toXML(edu.isi.pegasus.common.util.XMLWriter writer, int indent) - Parameters:
writer
- the XMLWriterindent
- indentation
-