Package com.primavera.integration.common
Class JobInfo
java.lang.Object
com.primavera.integration.common.JobInfo
- All Implemented Interfaces:
Serializable
Information for a server-side asynchronous job. This is used for scheduling, applying actuals,
storing period performance, and summarizing projects.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObjectId[]Gets the related EPS ObjectIds which apply to the job type 'Summarize' only.getJobId()Gets the unique ID of the jobGets the status of the job.Gets the type of the jobGets the date the job was last runObjectId[]Gets the related Project ObjectIdsGets the date the job was submittedGets the host machine name that ran this job
-
Constructor Details
-
JobInfo
public JobInfo(ObjectId jobId, JobType jobType, JobStatus jobStatus, Date submittedDate, Date lastRunDate, ObjectId[] projectObjIds, ObjectId[] epsObjIds, String workerHost) Class constructor, to be used internally. Client code should have no reason to create instances of this class.- Parameters:
jobId- the id of the jobjobType- the tyupe of the jobjobStatus- the status of the jobsubmittedDate- the date the job was submittedlastRunDate- the date the job was last runprojectObjIds- the projects on which to run the jobepsObjIds- the EPS nodes onwhich to run the job
-
-
Method Details
-
getJobId
Gets the unique ID of the job- Returns:
- JobId the ID of the job
-
getJobType
Gets the type of the job- Returns:
- JobType the job type
-
getJobStatus
Gets the status of the job. This is useful for determining if the job has been serviced yet and if it was successful.- Returns:
- JobStatus the status of the job
-
getSubmittedDate
Gets the date the job was submitted- Returns:
- java.util.Date the date the job was submitted
-
getLastRunDate
Gets the date the job was last run- Returns:
- java.util.Date the date the job was last run
-
getProjectObjectIds
Gets the related Project ObjectIds- Returns:
- the related Project ObjectIds
-
getEPSObjectIds
Gets the related EPS ObjectIds which apply to the job type 'Summarize' only.- Returns:
- the related EPS ObjectIds
-
getWorkerHost
Gets the host machine name that ran this job- Returns:
- the WorkerHost
-