org.gridlab.gat.resources
Class WrapperJobDescription.WrappedJobInfo

java.lang.Object
  extended by org.gridlab.gat.resources.WrapperJobDescription.WrappedJobInfo
All Implemented Interfaces:
Serializable
Enclosing class:
WrapperJobDescription

public class WrapperJobDescription.WrappedJobInfo
extends Object
implements Serializable

This object contains all the information necessary to describe a wrapped Job.

Author:
rkemp
See Also:
Serialized Form

Constructor Summary
WrapperJobDescription.WrappedJobInfo(JobDescription jobDescription, URI brokerURI, Preferences preferences, int wrappedJobIndex, int wrapperJobIndex)
          Creates a WrapperJobDescription.WrappedJobInfo.
 
Method Summary
 URI getBrokerURI()
          Returns the URI of the broker where this wrapped Job should be submitted to.
 JobDescription getJobDescription()
          Returns the JobDescription belonging to this wrapped Job.
 URI getJobStateFileName()
          Returns the filename of the file that will be used for forwarding the Job.JobState of the wrapped Job.
 Preferences getPreferences()
          Returns the Preferences that should be used to submit the wrapped Job.
 int getWrappedJobIndex()
          Returns the index of this wrapped job.
 int getWrapperJobIndex()
          Returns the index of the wrapper job encapsulating this wrapped job.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperJobDescription.WrappedJobInfo

public WrapperJobDescription.WrappedJobInfo(JobDescription jobDescription,
                                            URI brokerURI,
                                            Preferences preferences,
                                            int wrappedJobIndex,
                                            int wrapperJobIndex)
Creates a WrapperJobDescription.WrappedJobInfo.

Parameters:
jobDescription - the JobDescription belonging to this wrapped Job.
brokerURI - the URI of the broker where this Job should be submitted to.
preferences - the Preferences that should be used to submit this Job.
Method Detail

getJobDescription

public JobDescription getJobDescription()
Returns the JobDescription belonging to this wrapped Job.

Returns:
the JobDescription belonging to this wrapped Job.

getBrokerURI

public URI getBrokerURI()
Returns the URI of the broker where this wrapped Job should be submitted to.

Returns:
the URI of the broker where this wrapped Job should be submitted to.

getPreferences

public Preferences getPreferences()
Returns the Preferences that should be used to submit the wrapped Job.

Returns:
the Preferences that should be used to submit the wrapped Job.

getJobStateFileName

public URI getJobStateFileName()
Returns the filename of the file that will be used for forwarding the Job.JobState of the wrapped Job. If relative, it is relative to where the wrapper job runs.

Returns:
the filename of the file that will be used for forwarding the Job.JobState of the wrapped Job.

getWrappedJobIndex

public int getWrappedJobIndex()
Returns the index of this wrapped job.

Returns:
the index.

getWrapperJobIndex

public int getWrapperJobIndex()
Returns the index of the wrapper job encapsulating this wrapped job.

Returns:
the index.