g-Eclipse
Release 1.0.0

eu.geclipse.batch
Interface IBatchJobManager


public interface IBatchJobManager

Interface for a manager that manages Batch Jobs


Method Summary
 IBatchJobInfo addMerge(java.lang.String jobId, java.lang.String jobName, java.lang.String userAccount, java.lang.String timeUse, IBatchJobInfo.JobState status, java.lang.String queueName, IBatchService batchWrapper)
          Either add the following job if it doesn't exist or merge the state if it already exists.
 void removeOld(java.util.List<IBatchJobInfo> currentActiveJobs)
          Update our local state with the current state, by only keeping the active jobs.
 

Method Detail

addMerge

IBatchJobInfo addMerge(java.lang.String jobId,
                       java.lang.String jobName,
                       java.lang.String userAccount,
                       java.lang.String timeUse,
                       IBatchJobInfo.JobState status,
                       java.lang.String queueName,
                       IBatchService batchWrapper)
Either add the following job if it doesn't exist or merge the state if it already exists.

Parameters:
jobId - The unique id of the job.
jobName - The name of the job.
userAccount - The name of the pool account that are used to execute this job.
timeUse - How much time this job have used.
status - The current status of this job.
queueName - The name of the queue where this job is placed.
batchWrapper - The wrapper to access the batch service where this job is queued.
Returns:
Returns the created job.

removeOld

void removeOld(java.util.List<IBatchJobInfo> currentActiveJobs)
Update our local state with the current state, by only keeping the active jobs. I.e. remove all the jobs that are not active anymore.

Parameters:
currentActiveJobs - These are the currently active jobs.

g-Eclipse
Release 1.0.0