Package edu.isi.pegasus.planner.dax
Class Invoke
- java.lang.Object
-
- edu.isi.pegasus.planner.dax.Invoke
-
public class Invoke extends java.lang.Object
The Notification invoke object for the Dax API- Version:
- $Revision$
- Author:
- gmehta
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Invoke.JsonSerializer
Custom serializer for YAML representation of an Invoke (Hook in 5.0)static class
Invoke.WHEN
WHEN To INVOKE
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
mWhat
What to invokeprotected Invoke.WHEN
mWhen
WHen to Invoke
-
Constructor Summary
Constructors Constructor Description Invoke(Invoke i)
Copy ConstructorInvoke(Invoke.WHEN when)
Crete a new Invoke objectInvoke(Invoke.WHEN when, java.lang.String what)
Create a new Invoke object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Invoke
clone()
Create a copy of this Invoke objectboolean
equals(java.lang.Object obj)
Matches two Invoke objectsjava.lang.String
getWhat()
Get what to invokejava.lang.String
getWhen()
Get when to InvokeInvoke
setWhat(java.lang.String what)
Set what executable to invoke and howInvoke
setWhen(Invoke.WHEN when)
Set when to invokejava.lang.String
toString()
Returns the object as Stringvoid
toXML(edu.isi.pegasus.common.util.XMLWriter writer)
Writes out XML representation using the writervoid
toXML(edu.isi.pegasus.common.util.XMLWriter writer, int indent)
Writes out XML representation using the writer
-
-
-
Field Detail
-
mWhen
protected Invoke.WHEN mWhen
WHen to Invoke
-
mWhat
protected java.lang.String mWhat
What to invoke
-
-
Constructor Detail
-
Invoke
public Invoke(Invoke i)
Copy Constructor- Parameters:
i
- the invoke object
-
Invoke
public Invoke(Invoke.WHEN when)
Crete a new Invoke object- Parameters:
when
- when to invoke
-
Invoke
public Invoke(Invoke.WHEN when, java.lang.String what)
Create a new Invoke object- Parameters:
when
- when to invokewhat
- the executable with the arguments to invoke
-
-
Method Detail
-
getWhen
public java.lang.String getWhen()
Get when to Invoke- Returns:
- when the notification occurs
-
setWhen
public final Invoke setWhen(Invoke.WHEN when)
Set when to invoke- Parameters:
when
- when the notification occurs- Returns:
- Invoke
-
getWhat
public java.lang.String getWhat()
Get what to invoke- Returns:
- the executable with arguments that are invoked
-
setWhat
public Invoke setWhat(java.lang.String what)
Set what executable to invoke and how- Parameters:
what
- executable with the arguments- Returns:
- the Invoke
-
clone
public Invoke clone()
Create a copy of this Invoke object- Overrides:
clone
in classjava.lang.Object
- Returns:
- Invoke
-
toXML
public void toXML(edu.isi.pegasus.common.util.XMLWriter writer)
Writes out XML representation using the writer- Parameters:
writer
- the writer
-
toXML
public void toXML(edu.isi.pegasus.common.util.XMLWriter writer, int indent)
Writes out XML representation using the writer- Parameters:
writer
- the writerindent
- number pf indent spaces
-
toString
public java.lang.String toString()
Returns the object as String- Overrides:
toString
in classjava.lang.Object
- Returns:
- the description
-
equals
public boolean equals(java.lang.Object obj)
Matches two Invoke objects- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- object to being compared against- Returns:
- true if the pfn and all the attributes match, false otherwise.
-
-