edu.isi.pegasus.planner.dax
public class Executable extends CatalogType
Modifier and Type | Class and Description |
---|---|
static class |
Executable.ARCH
ARCH Types
|
static class |
Executable.OS
OS Types
|
Modifier and Type | Field and Description |
---|---|
protected Executable.ARCH |
mArch
Architecture the executable is compiled for
|
protected String |
mGlibc
Glibc the executable is compiled for
|
protected boolean |
mInstalled
Flag to mark if the executable is installed or can be staged.
|
protected List<Invoke> |
mInvokes
List of Notification objects
|
protected String |
mName
Name of the executable
|
protected String |
mNamespace
Namespace of the executable
|
protected Executable.OS |
mOs
Os the executable is compiled for
|
protected String |
mOsRelease
Os release the executable is compiled for
|
protected String |
mOsVersion
OS version the executable is compiled for
|
protected String |
mVersion
Version of the executable
|
mLogger, mMetadata, mPFNs, mProfiles
Constructor and Description |
---|
Executable(Executable e)
Copy Constructor
|
Executable(String name)
Create a new executable
|
Executable(String namespace,
String name,
String version)
Create a new Executable
|
Modifier and Type | Method and Description |
---|---|
Executable |
addInvoke(Invoke.WHEN when,
String what)
Add a Notification for this Executable
same as addNotification
|
Executable |
addInvoke(Invoke invoke)
Add a Notification for this Executable
Same as add Notification
|
Executable |
addInvokes(List<Invoke> invokes)
Add a List of Notifications for this Executable
Same as addNotifications
|
Executable |
addNotification(Invoke.WHEN when,
String what)
Add a Notification for this Executable
same as addInvoke
|
Executable |
addNotification(Invoke invoke)
Add a Notification for this Executable
Same as addInvoke
|
Executable |
addNotifications(List<Invoke> invokes)
Add a List of Notifications for this Executable.
|
boolean |
equals(Object obj) |
Executable.ARCH |
getArchitecture()
Get the architecture the Executable is compiled for
|
String |
getGlibc()
Get the Glibc version if any set for this file.
|
boolean |
getInstalled()
Check if the executable is of type installed.
|
List<Invoke> |
getInvoke()
Return the list of Notification objects
|
String |
getName()
Get the name of the executable
|
String |
getNamespace()
Get the namespace of the executable
|
List<Invoke> |
getNotification()
Return the list of Notification objects (same as getInvoke)
|
Executable.OS |
getOS()
Get the OS the Executable is compiled for
|
String |
getOsRelease()
Get the OS release set for this executable.
|
String |
getOsVersion()
Get the OS version set for this executable.
|
String |
getVersion()
Get the version of the executable
|
int |
hashCode() |
boolean |
isExecutable() |
Executable |
setArchitecture(Executable.ARCH arch)
Set the architecture the executable is compiled for
|
Executable |
setGlibc(String glibc)
Set the glibc this executable is compiled for
|
Executable |
setInstalled()
set the installed flag on the executable.
|
Executable |
setInstalled(boolean installed)
Set the installed flag on the executable.
|
Executable |
setOS(Executable.OS os)
Set the OS the executable is compiled for
|
Executable |
setOSRelease(String osrelease)
Set the osrelease the executable is compiled for
|
Executable |
setOSVersion(String osversion)
Set the osversion the executable is compiled for
|
String |
toString() |
void |
toXML(XMLWriter writer)
Write the XML representation of this object
|
void |
toXML(XMLWriter writer,
int indent)
Write the XML representation of this object
|
Executable |
unsetInstalled()
Unset the installed flag on the executable.
|
addMetaData, addMetaData, addMetaData, addPhysicalFile, addPhysicalFile, addPhysicalFile, addPhysicalFiles, addProfile, addProfile, addProfiles, addProfiles, getMetaData, getPhysicalFiles, getProfiles, isFile
protected String mNamespace
protected String mName
protected String mVersion
protected Executable.ARCH mArch
protected Executable.OS mOs
protected String mOsRelease
protected String mOsVersion
protected String mGlibc
protected boolean mInstalled
public Executable(String name)
name
- public Executable(Executable e)
e
- public String getName()
public String getNamespace()
public String getVersion()
public List<Invoke> getNotification()
public Executable addInvoke(Invoke.WHEN when, String what)
when
- what
- public Executable addNotification(Invoke.WHEN when, String what)
when
- what
- public Executable addInvoke(Invoke invoke)
invoke
- public Executable addNotification(Invoke invoke)
invoke
- public Executable addInvokes(List<Invoke> invokes)
invokes
- public Executable addNotifications(List<Invoke> invokes)
invokes
- public Executable setArchitecture(Executable.ARCH arch)
arch
- public Executable setOS(Executable.OS os)
os
- public Executable setOSRelease(String osrelease)
osrelease
- public Executable setOSVersion(String osversion)
osversion
- public Executable setGlibc(String glibc)
glibc
- public Executable setInstalled()
public Executable unsetInstalled()
public Executable setInstalled(boolean installed)
public boolean getInstalled()
public Executable.ARCH getArchitecture()
public Executable.OS getOS()
public String getOsRelease()
public String getOsVersion()
public String getGlibc()
public boolean isExecutable()
isExecutable
in class CatalogType
public void toXML(XMLWriter writer)
CatalogType
toXML
in class CatalogType
XMLWriter
public void toXML(XMLWriter writer, int indent)
CatalogType
toXML
in class CatalogType
XMLwriter