|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gridlab.gat.resources.AbstractJobDescription
org.gridlab.gat.resources.JobDescription
org.gridlab.gat.resources.WrapperJobDescription
public class WrapperJobDescription
| Nested Class Summary | |
|---|---|
static class |
WrapperJobDescription.ScheduledType
An instance of this enumeration indicates the scheduled type of the WrapperJobDescription. |
class |
WrapperJobDescription.WrappedJobInfo
This object contains all the information necessary to describe a wrapped Job. |
| Field Summary | |
|---|---|
static String |
WRAPPER_COMMON_DEST
Attribute name of the destination directory for common files for wrapped jobs. |
static String |
WRAPPER_COMMON_SRC
Attribute name of the source directory for common files for wrapped jobs. |
static String |
WRAPPER_COMMON_TRIGGER
The copying of the wrapper common directory can be coordinated, in which case the attribute "wrapper.common.trigger" should be set to "true". |
| Constructor Summary | |
|---|---|
WrapperJobDescription(WrapperSoftwareDescription softwareDescription)
Creates a WrapperJobDescription based on the given
WrapperSoftwareDescription. |
|
WrapperJobDescription(WrapperSoftwareDescription softwareDescription,
Resource resource)
Creates a WrapperJobDescription based on the given
WrapperSoftwareDescription and the Resource. |
|
WrapperJobDescription(WrapperSoftwareDescription softwareDescription,
ResourceDescription resourceDescription)
Creates a WrapperJobDescription based on the given
WrapperSoftwareDescription and the ResourceDescription. |
|
| Method Summary | |
|---|---|
void |
add(JobDescription[] jobDescriptions,
URI brokerURI,
Preferences preferences)
Add JobDescriptions for a wrapped Job that should be
submitted to a resource broker located at the given URI with the
set of Preferences. |
void |
add(JobDescription jobDescription,
URI brokerURI,
Preferences preferences)
Add a JobDescription for a wrapped Job that should be
submitted to a resource broker located at the given URI with the
set of Preferences. |
File |
getInfoFile(GATContext context)
Returns a File containing all the information needed by the
Wrapper application. |
List<WrapperJobDescription.WrappedJobInfo> |
getJobInfos()
Returns a List of WrapperJobDescription.WrappedJobInfo containing the
information for the wrapped Jobs. |
URI |
getJobStateFileName(JobDescription description)
Returns the filename of the file that's used to forward the Job.JobState of the wrapped Job belonging to this
JobDescription. |
int |
getLevel()
Returns the logging level for the WrapperJob. |
WrapperJobDescription.ScheduledType |
getScheduledType()
Returns the WrapperJobDescription.ScheduledType for the WrapperJob. |
int |
getWrapperJobIndex()
Gets the wrapper job index. |
void |
setLoggingLevel(int level)
Sets the logging level for the wrapper job |
void |
setScheduledType(WrapperJobDescription.ScheduledType scheduledType)
Sets the WrapperJobDescription.ScheduledType. |
static void |
setTriggerDirectory(URI location)
Sets the directory where the trigger files will be written to. |
| Methods inherited from class org.gridlab.gat.resources.JobDescription |
|---|
clone, getProcessCount, getResource, getResourceCount, getResourceDescription, getSoftwareDescription, setProcessCount, setResource, setResourceCount, setResourceDescription, setSoftwareDescription, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String WRAPPER_COMMON_SRC
public static final String WRAPPER_COMMON_DEST
WRAPPER_COMMON_SRC.
If either WRAPPER_COMMON_SRC or WRAPPER_COMMON_DEST is
not specified, the wrapper DOES NOT COPY.
This mechanism may be used to copy files to the remote machine once
(by the wrapper), instead of multiple times (for the wrapped jobs).
public static final String WRAPPER_COMMON_TRIGGER
WRAPPER_COMMON_SRC directory and continue the run.
It is up to the JavaGAT application to produce the trigger files.
| Constructor Detail |
|---|
public WrapperJobDescription(WrapperSoftwareDescription softwareDescription)
WrapperJobDescription based on the given
WrapperSoftwareDescription.
softwareDescription - the WrapperSoftwareDescription containing the
description of the software to be run
public WrapperJobDescription(WrapperSoftwareDescription softwareDescription,
ResourceDescription resourceDescription)
WrapperJobDescription based on the given
WrapperSoftwareDescription and the ResourceDescription.
softwareDescription - the WrapperSoftwareDescription containing the
description of the software to be runresourceDescription - the ResourceDescription containing the description
of on which resource the software should be run.
public WrapperJobDescription(WrapperSoftwareDescription softwareDescription,
Resource resource)
WrapperJobDescription based on the given
WrapperSoftwareDescription and the Resource.
softwareDescription - the WrapperSoftwareDescription containing the
description of the software to be runresource - the Resource containing the description of on
which resource the software should be run.| Method Detail |
|---|
public int getWrapperJobIndex()
public void setScheduledType(WrapperJobDescription.ScheduledType scheduledType)
WrapperJobDescription.ScheduledType.
scheduledType - a WrapperJobDescription.ScheduledTypepublic void setLoggingLevel(int level)
level - the logging level for the wrapper job
public void add(JobDescription jobDescription,
URI brokerURI,
Preferences preferences)
JobDescription for a wrapped Job that should be
submitted to a resource broker located at the given URI with the
set of Preferences.
jobDescription - the JobDescription of the wrapped JobbrokerURI - the resource broker URI for the wrapped
Jobpreferences - the Preferences for the wrapped Job
public void add(JobDescription[] jobDescriptions,
URI brokerURI,
Preferences preferences)
JobDescriptions for a wrapped Job that should be
submitted to a resource broker located at the given URI with the
set of Preferences.
jobDescriptions - the JobDescriptions of the wrapped JobsbrokerURI - the resource broker URI for the wrapped
Jobspreferences - the Preferences for the wrapped Jobspublic List<WrapperJobDescription.WrappedJobInfo> getJobInfos()
List of WrapperJobDescription.WrappedJobInfo containing the
information for the wrapped Jobs.
List of WrapperJobDescription.WrappedJobInfo containing the
information for the wrapped Jobs.public WrapperJobDescription.ScheduledType getScheduledType()
WrapperJobDescription.ScheduledType for the WrapperJob.
WrapperJobDescription.ScheduledType for the WrapperJob.public int getLevel()
WrapperJob.
WrapperJob.
public File getInfoFile(GATContext context)
throws GATObjectCreationException
File containing all the information needed by the
Wrapper application.
File containing all the information needed by the
Wrapper application.
GATObjectCreationExceptionpublic URI getJobStateFileName(JobDescription description)
Job.JobState of the wrapped Job belonging to this
JobDescription.
Path is relative to the wrapper location, or absolute.
description - the description of the wrapped Job.
Job.JobState of the wrapped Job belonging to this
JobDescription.
public static void setTriggerDirectory(URI location)
throws Exception
location - the location of the trigger directory.
Exception - when the trigger directory is already set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||