Package edu.isi.pegasus.planner.dax
Class Executable
- java.lang.Object
-
- edu.isi.pegasus.planner.dax.CatalogType
-
- edu.isi.pegasus.planner.dax.Executable
-
public class Executable extends CatalogType
The Transformation Catalog object the represent the entries in the DAX transformation section.- Version:
- $Revision$
- Author:
- gmehta
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExecutable.ARCHARCH Typesstatic classExecutable.OSOS Types
-
Field Summary
Fields Modifier and Type Field Description protected Executable.ARCHmArchArchitecture the executable is compiled forprotected java.lang.StringmGlibcGlibc the executable is compiled forprotected booleanmInstalledFlag to mark if the executable is installed or can be staged.protected java.util.List<Invoke>mInvokesList of Notification objectsprotected java.lang.StringmNameName of the executableprotected java.lang.StringmNamespaceNamespace of the executableprotected Executable.OSmOsOs the executable is compiled forprotected java.lang.StringmOsReleaseOs release the executable is compiled forprotected java.lang.StringmOsVersionOS version the executable is compiled forprotected java.lang.StringmVersionVersion of the executable-
Fields inherited from class edu.isi.pegasus.planner.dax.CatalogType
mLogger, mMetadata, mPFNs, mProfiles
-
-
Constructor Summary
Constructors Constructor Description Executable(Executable e)Copy ConstructorExecutable(java.lang.String name)Create a new executableExecutable(java.lang.String namespace, java.lang.String name, java.lang.String version)Create a new Executable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutableaddInvoke(Invoke invoke)Add a Notification for this Executable Same as add NotificationExecutableaddInvoke(Invoke.WHEN when, java.lang.String what)Add a Notification for this Executable same as addNotificationExecutableaddInvokes(java.util.List<Invoke> invokes)Add a List of Notifications for this Executable Same as addNotificationsExecutableaddNotification(Invoke invoke)Add a Notification for this Executable Same as addInvokeExecutableaddNotification(Invoke.WHEN when, java.lang.String what)Add a Notification for this Executable same as addInvokeExecutableaddNotifications(java.util.List<Invoke> invokes)Add a List of Notifications for this Executable.booleanequals(java.lang.Object obj)Executable.ARCHgetArchitecture()Get the architecture the Executable is compiled forjava.lang.StringgetGlibc()Get the Glibc version if any set for this file.booleangetInstalled()Check if the executable is of type installed.java.util.List<Invoke>getInvoke()Return the list of Notification objectsjava.lang.StringgetName()Get the name of the executablejava.lang.StringgetNamespace()Get the namespace of the executablejava.util.List<Invoke>getNotification()Return the list of Notification objects (same as getInvoke)Executable.OSgetOS()Get the OS the Executable is compiled forjava.lang.StringgetOsRelease()Get the OS release set for this executable.java.lang.StringgetOsVersion()Get the OS version set for this executable.java.lang.StringgetVersion()Get the version of the executableinthashCode()booleanisExecutable()ExecutablesetArchitecture(Executable.ARCH arch)Set the architecture the executable is compiled forExecutablesetGlibc(java.lang.String glibc)Set the glibc this executable is compiled forExecutablesetInstalled()set the installed flag on the executable.ExecutablesetInstalled(boolean installed)Set the installed flag on the executable.ExecutablesetOS(Executable.OS os)Set the OS the executable is compiled forExecutablesetOSRelease(java.lang.String osrelease)Set the osrelease the executable is compiled forExecutablesetOSVersion(java.lang.String osversion)Set the osversion the executable is compiled forjava.lang.StringtoString()voidtoXML(XMLWriter writer)Write the XML representation of this objectvoidtoXML(XMLWriter writer, int indent)Write the XML representation of this objectExecutableunsetInstalled()Unset the installed flag on the executable.-
Methods inherited from class edu.isi.pegasus.planner.dax.CatalogType
addMetaData, addMetaData, addMetaData, addPhysicalFile, addPhysicalFile, addPhysicalFile, addPhysicalFiles, addProfile, addProfile, addProfiles, addProfiles, getMetaData, getPhysicalFiles, getProfiles, isFile
-
-
-
-
Field Detail
-
mNamespace
protected java.lang.String mNamespace
Namespace of the executable
-
mName
protected java.lang.String mName
Name of the executable
-
mVersion
protected java.lang.String mVersion
Version of the executable
-
mArch
protected Executable.ARCH mArch
Architecture the executable is compiled for
-
mOs
protected Executable.OS mOs
Os the executable is compiled for
-
mOsRelease
protected java.lang.String mOsRelease
Os release the executable is compiled for
-
mOsVersion
protected java.lang.String mOsVersion
OS version the executable is compiled for
-
mGlibc
protected java.lang.String mGlibc
Glibc the executable is compiled for
-
mInstalled
protected boolean mInstalled
Flag to mark if the executable is installed or can be staged.
-
mInvokes
protected java.util.List<Invoke> mInvokes
List of Notification objects
-
-
Constructor Detail
-
Executable
public Executable(java.lang.String name)
Create a new executable- Parameters:
name-
-
Executable
public Executable(Executable e)
Copy Constructor- Parameters:
e-
-
Executable
public Executable(java.lang.String namespace, java.lang.String name, java.lang.String version)Create a new Executable- Parameters:
namespace-name-version-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of the executable- Returns:
-
getNamespace
public java.lang.String getNamespace()
Get the namespace of the executable- Returns:
-
getVersion
public java.lang.String getVersion()
Get the version of the executable- Returns:
-
getInvoke
public java.util.List<Invoke> getInvoke()
Return the list of Notification objects- Returns:
- List
-
getNotification
public java.util.List<Invoke> getNotification()
Return the list of Notification objects (same as getInvoke)- Returns:
- List
-
addInvoke
public Executable addInvoke(Invoke.WHEN when, java.lang.String what)
Add a Notification for this Executable same as addNotification- Parameters:
when-what-- Returns:
- Executable
-
addNotification
public Executable addNotification(Invoke.WHEN when, java.lang.String what)
Add a Notification for this Executable same as addInvoke- Parameters:
when-what-- Returns:
- Executable
-
addInvoke
public Executable addInvoke(Invoke invoke)
Add a Notification for this Executable Same as add Notification- Parameters:
invoke-- Returns:
- Executable
-
addNotification
public Executable addNotification(Invoke invoke)
Add a Notification for this Executable Same as addInvoke- Parameters:
invoke-- Returns:
- Executable
-
addInvokes
public Executable addInvokes(java.util.List<Invoke> invokes)
Add a List of Notifications for this Executable Same as addNotifications- Parameters:
invokes-- Returns:
- Executable
-
addNotifications
public Executable addNotifications(java.util.List<Invoke> invokes)
Add a List of Notifications for this Executable. Same as addInvokes- Parameters:
invokes-- Returns:
- Executable
-
setArchitecture
public Executable setArchitecture(Executable.ARCH arch)
Set the architecture the executable is compiled for- Parameters:
arch-- Returns:
- Executable
-
setOS
public Executable setOS(Executable.OS os)
Set the OS the executable is compiled for- Parameters:
os-- Returns:
-
setOSRelease
public Executable setOSRelease(java.lang.String osrelease)
Set the osrelease the executable is compiled for- Parameters:
osrelease-- Returns:
-
setOSVersion
public Executable setOSVersion(java.lang.String osversion)
Set the osversion the executable is compiled for- Parameters:
osversion-- Returns:
-
setGlibc
public Executable setGlibc(java.lang.String glibc)
Set the glibc this executable is compiled for- Parameters:
glibc-- Returns:
-
setInstalled
public Executable setInstalled()
set the installed flag on the executable. Default is installed- Returns:
-
unsetInstalled
public Executable unsetInstalled()
Unset the installed flag on the executable. Default is installed.- Returns:
-
setInstalled
public Executable setInstalled(boolean installed)
Set the installed flag on the executable. Default is installed
-
getInstalled
public boolean getInstalled()
Check if the executable is of type installed.- Returns:
-
getArchitecture
public Executable.ARCH getArchitecture()
Get the architecture the Executable is compiled for- Returns:
-
getOS
public Executable.OS getOS()
Get the OS the Executable is compiled for- Returns:
-
getOsRelease
public java.lang.String getOsRelease()
Get the OS release set for this executable. Returns empty string if not set- Returns:
-
getOsVersion
public java.lang.String getOsVersion()
Get the OS version set for this executable.- Returns:
-
getGlibc
public java.lang.String getGlibc()
Get the Glibc version if any set for this file. Returns empty string if not set- Returns:
-
isExecutable
public boolean isExecutable()
- Overrides:
isExecutablein classCatalogType
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toXML
public void toXML(XMLWriter writer)
Description copied from class:CatalogTypeWrite the XML representation of this object- Overrides:
toXMLin classCatalogType- See Also:
XMLWriter
-
toXML
public void toXML(XMLWriter writer, int indent)
Description copied from class:CatalogTypeWrite the XML representation of this object- Overrides:
toXMLin classCatalogType- See Also:
XMLwriter
-
-