Uses of Class
uws.job.AbstractJob

Packages that use AbstractJob
uws   
uws.job   
uws.job.manager   
uws.job.serializer   
uws.service   
uws.service.actions   
uws.service.controller   
 

Uses of AbstractJob in uws
 

Methods in uws with parameters of type AbstractJob
static boolean UWSToolBox.publishErrorSummary(AbstractJob j, java.lang.Exception ex, ErrorType type, java.lang.String errorFileUri, java.lang.String errorsDirectory, java.lang.String errorFileName)
          Sets an error summary corresponding to the given Exception with the given error type.
static boolean UWSToolBox.publishErrorSummary(AbstractJob j, java.lang.Exception ex, ErrorType type, java.net.URL errorFileUrl, java.lang.String errorsDirectory, java.lang.String errorFileName)
          Deprecated. Replaced by UWSToolBox.publishErrorSummary(AbstractJob, Exception, ErrorType, String, String, String)
static boolean UWSToolBox.publishErrorSummary(AbstractJob j, java.lang.String msg, ErrorType type)
          Sets an error summary to the given job with the given message and the given error type and sets the phase member to ERROR.
 

Uses of AbstractJob in uws.job
 

Classes in uws.job with type parameters of type AbstractJob
 class JobList<J extends AbstractJob>
          General description An instance of this class lets listing UWS jobs (possible actions: get, add and remove).
 

Fields in uws.job declared as AbstractJob
protected  AbstractJob AbstractJob.DurationTimerTask.job
           
protected  AbstractJob JobPhase.job
          The job whose the current phase is represented by this class.
protected  AbstractJob JobThread.job
          The job which contains all parameters for its execution and which must be filled at the end of the execution.
 

Methods in uws.job that return AbstractJob
 AbstractJob JobThread.getExecutedJob()
          Gets the job instance associated to this thread.
 AbstractJob JobPhase.getJob()
          Gets the job whose the execution phase is represented by this object.
 

Methods in uws.job that return types with arguments of type AbstractJob
 JobList<? extends AbstractJob> AbstractJob.getJobList()
          Gets its jobs list, if known.
 

Methods in uws.job with parameters of type AbstractJob
 void JobObserver.update(AbstractJob job, ExecutionPhase oldPhase, ExecutionPhase newPhase)
          Used when one of the observed jobs notifies its observers of a modification of its execution phase.
 

Method parameters in uws.job with type arguments of type AbstractJob
 void AbstractJob.setJobList(JobList<? extends AbstractJob> jobList)
          Sets its jobs list.
 

Constructors in uws.job with parameters of type AbstractJob
AbstractJob.DurationTimerTask(AbstractJob j)
           
JobPhase(AbstractJob j)
          Builds the phase manager of the given job.
JobThread(AbstractJob j)
          Builds the JobThread instance which will be used by the given job to execute its task.
 

Uses of AbstractJob in uws.job.manager
 

Fields in uws.job.manager declared as AbstractJob
protected  AbstractJob DefaultDestructionManager.currentJob
          The job currently planned for destruction.
 

Fields in uws.job.manager with type parameters of type AbstractJob
protected  java.util.TreeSet<AbstractJob> DefaultDestructionManager.jobsToDestroy
          The list of jobs to destroy.
protected  java.util.Vector<AbstractJob> QueuedExecutionManager.queuedJobs
          List of queued jobs.
protected  java.util.Map<java.lang.String,AbstractJob> QueuedExecutionManager.runningJobs
          List of running jobs.
protected  java.util.Map<java.lang.String,AbstractJob> DefaultExecutionManager.runningJobs
          List of running jobs.
 

Methods in uws.job.manager that return types with arguments of type AbstractJob
 java.util.Iterator<AbstractJob> QueuedExecutionManager.getQueuedJobs()
           
 java.util.Iterator<AbstractJob> DefaultExecutionManager.getQueuedJobs()
          Always returns a Null Iterator (iterator whose next() returns null and hasNext() returns false).
 java.util.Iterator<AbstractJob> ExecutionManager.getQueuedJobs()
          Gets the list of queued jobs.
 java.util.Iterator<AbstractJob> QueuedExecutionManager.getRunningJobs()
           
 java.util.Iterator<AbstractJob> DefaultExecutionManager.getRunningJobs()
           
 java.util.Iterator<AbstractJob> ExecutionManager.getRunningJobs()
          Gets the list of running jobs.
 

Methods in uws.job.manager with parameters of type AbstractJob
 int DefaultDestructionManager.TimeComparator.compare(AbstractJob job1, AbstractJob job2)
           
protected  void DefaultDestructionManager.destroyJob(AbstractJob job)
          Merely destroys the given job (if not null).
 ExecutionPhase QueuedExecutionManager.execute(AbstractJob jobToExecute)
          By default a job is executed if there are not yet more than QueuedExecutionManager.getMaxRunningJobs() running jobs.
 ExecutionPhase DefaultExecutionManager.execute(AbstractJob jobToExecute)
           
 ExecutionPhase ExecutionManager.execute(AbstractJob jobToExecute)
          Lets deciding whether the given job can start immediately or whether it must be put in the queue.
 boolean QueuedExecutionManager.isReadyForExecution(AbstractJob jobToExecute)
           
 boolean DefaultExecutionManager.isReadyForExecution(AbstractJob jobToExecute)
           
 boolean ExecutionManager.isReadyForExecution(AbstractJob jobToExecute)
          Tells whether the given job can start immediately its execution or whether it must be put in the queue.
 void DestructionManager.remove(AbstractJob job)
          Removes the given job from this manager.
 void DefaultDestructionManager.remove(AbstractJob job)
          Merely removes the given job from the list of jobs to destroyed.
 void QueuedExecutionManager.remove(AbstractJob jobToRemove)
           
 void DefaultExecutionManager.remove(AbstractJob jobToRemove)
           
 void ExecutionManager.remove(AbstractJob jobToRemove)
          Removes the job from this manager whatever is its current execution phase.
 void DestructionManager.update(AbstractJob job)
          Updates the list of jobs to destroy with the given job.
 void DefaultDestructionManager.update(AbstractJob job)
          This function does something only if the given job knows its jobs list and has a valid destruction time.
 void QueuedExecutionManager.update(AbstractJob job)
           
 void DefaultExecutionManager.update(AbstractJob job)
           
 void ExecutionManager.update(AbstractJob job)
          Puts the given job into the appropriate list of jobs: if EXECUTING, the job must be put in the list of running jobs, but if QUEUED, it must be put into the queue.
 

Uses of AbstractJob in uws.job.serializer
 

Methods in uws.job.serializer with parameters of type AbstractJob
 java.lang.String XMLSerializer.getAdditionalParameters(AbstractJob job, boolean root)
           
abstract  java.lang.String UWSSerializer.getAdditionalParameters(AbstractJob job, boolean root)
          Serializes the parameters of the given job.
 java.lang.String JSONSerializer.getAdditionalParameters(AbstractJob job, boolean root)
           
 java.lang.String XMLSerializer.getDestructionTime(AbstractJob job, boolean root)
           
abstract  java.lang.String UWSSerializer.getDestructionTime(AbstractJob job, boolean root)
          Serializes the destruction time of the given job.
 java.lang.String JSONSerializer.getDestructionTime(AbstractJob job, boolean root)
           
 java.lang.String XMLSerializer.getEndTime(AbstractJob job, boolean root)
           
abstract  java.lang.String UWSSerializer.getEndTime(AbstractJob job, boolean root)
          Serializes the end time of the given job.
 java.lang.String JSONSerializer.getEndTime(AbstractJob job, boolean root)
           
 java.lang.String XMLSerializer.getExecutionDuration(AbstractJob job, boolean root)
           
abstract  java.lang.String UWSSerializer.getExecutionDuration(AbstractJob job, boolean root)
          Serializes the execution duration of the given job.
 java.lang.String JSONSerializer.getExecutionDuration(AbstractJob job, boolean root)
           
 java.lang.String XMLSerializer.getJob(AbstractJob job, boolean root)
           
abstract  java.lang.String UWSSerializer.getJob(AbstractJob job, boolean root)
          Serializes the whole given job.
 java.lang.String JSONSerializer.getJob(AbstractJob job, boolean root)
           
 java.lang.String UWSSerializer.getJob(AbstractJob job, java.lang.String[] attributes, boolean root)
          Serializes the given parameter of the given job or serializes the whole job if the given attributes array is empty or null.
 java.lang.String XMLSerializer.getJobID(AbstractJob job, boolean root)
           
abstract  java.lang.String UWSSerializer.getJobID(AbstractJob job, boolean root)
          Serializes the ID of the given job.
 java.lang.String JSONSerializer.getJobID(AbstractJob job, boolean root)
           
 java.lang.String XMLSerializer.getOwnerID(AbstractJob job, boolean root)
           
abstract  java.lang.String UWSSerializer.getOwnerID(AbstractJob job, boolean root)
          Serializes the owner ID of the given job.
 java.lang.String JSONSerializer.getOwnerID(AbstractJob job, boolean root)
           
 java.lang.String XMLSerializer.getPhase(AbstractJob job, boolean root)
           
abstract  java.lang.String UWSSerializer.getPhase(AbstractJob job, boolean root)
          Serializes the phase of the given job.
 java.lang.String JSONSerializer.getPhase(AbstractJob job, boolean root)
           
 java.lang.String XMLSerializer.getQuote(AbstractJob job, boolean root)
           
abstract  java.lang.String UWSSerializer.getQuote(AbstractJob job, boolean root)
          Serializes the quote of the given job.
 java.lang.String JSONSerializer.getQuote(AbstractJob job, boolean root)
           
 java.lang.String XMLSerializer.getResults(AbstractJob job, boolean root)
           
abstract  java.lang.String UWSSerializer.getResults(AbstractJob job, boolean root)
          Serializes the results of the given job.
 java.lang.String JSONSerializer.getResults(AbstractJob job, boolean root)
           
 java.lang.String XMLSerializer.getRunID(AbstractJob job, boolean root)
           
abstract  java.lang.String UWSSerializer.getRunID(AbstractJob job, boolean root)
          Serializes the run ID of the given job.
 java.lang.String JSONSerializer.getRunID(AbstractJob job, boolean root)
           
 java.lang.String XMLSerializer.getStartTime(AbstractJob job, boolean root)
           
abstract  java.lang.String UWSSerializer.getStartTime(AbstractJob job, boolean root)
          Serializes the start time of the given job.
 java.lang.String JSONSerializer.getStartTime(AbstractJob job, boolean root)
           
 

Method parameters in uws.job.serializer with type arguments of type AbstractJob
 java.lang.String UWSSerializer.getJobList(JobList<? extends AbstractJob> jobsList, boolean root)
          Serializes the given jobs list.
 java.lang.String XMLSerializer.getJobList(JobList<? extends AbstractJob> jobsList, java.lang.String ownerId, boolean root)
           
abstract  java.lang.String UWSSerializer.getJobList(JobList<? extends AbstractJob> jobsList, java.lang.String ownerId, boolean root)
          Serializes the given jobs list.
 java.lang.String JSONSerializer.getJobList(JobList<? extends AbstractJob> jobsList, java.lang.String ownerId, boolean root)
           
 java.lang.String UWSSerializer.getUWS(AbstractUWS<? extends JobList<? extends AbstractJob>,? extends AbstractJob> uws)
          Serializes the given UWS.
 java.lang.String UWSSerializer.getUWS(AbstractUWS<? extends JobList<? extends AbstractJob>,? extends AbstractJob> uws)
          Serializes the given UWS.
 java.lang.String XMLSerializer.getUWS(AbstractUWS<? extends JobList<? extends AbstractJob>,? extends AbstractJob> uws, java.lang.String userId)
           
 java.lang.String XMLSerializer.getUWS(AbstractUWS<? extends JobList<? extends AbstractJob>,? extends AbstractJob> uws, java.lang.String userId)
           
abstract  java.lang.String UWSSerializer.getUWS(AbstractUWS<? extends JobList<? extends AbstractJob>,? extends AbstractJob> uws, java.lang.String userId)
          Serializes the given UWS for the specified user.
abstract  java.lang.String UWSSerializer.getUWS(AbstractUWS<? extends JobList<? extends AbstractJob>,? extends AbstractJob> uws, java.lang.String userId)
          Serializes the given UWS for the specified user.
 java.lang.String JSONSerializer.getUWS(AbstractUWS<? extends JobList<? extends AbstractJob>,? extends AbstractJob> uws, java.lang.String userId)
           
 java.lang.String JSONSerializer.getUWS(AbstractUWS<? extends JobList<? extends AbstractJob>,? extends AbstractJob> uws, java.lang.String userId)
           
 

Uses of AbstractJob in uws.service
 

Classes in uws.service with type parameters of type AbstractJob
 class AbstractUWS<JL extends JobList<J>,J extends AbstractJob>
          General description An abstract facility to implement the Universal Worker Service pattern.
 class BasicUWS<J extends AbstractJob>
          Convenient implementation of AbstractUWS.
 class QueuedBasicUWS<J extends AbstractJob>
          A BasicUWS which is able to manage an execution queue.
 

Fields in uws.service with type parameters of type AbstractJob
protected  java.util.Map<JobList<? extends AbstractJob>,java.lang.Class<? extends AbstractJob>> ExtendedUWS.assocJobListClass
          Association between each JobList and the class object of the type of job that this JobList manages.
protected  java.util.Map<JobList<? extends AbstractJob>,java.lang.Class<? extends AbstractJob>> ExtendedUWS.assocJobListClass
          Association between each JobList and the class object of the type of job that this JobList manages.
protected  java.util.Map<JobList<? extends AbstractJob>,java.lang.reflect.Constructor<? extends AbstractJob>> ExtendedUWS.assocJobListConstructor
          Association between each JobList and the constructor to use when a job must be created and added into this JobList.
protected  java.util.Map<JobList<? extends AbstractJob>,java.lang.reflect.Constructor<? extends AbstractJob>> ExtendedUWS.assocJobListConstructor
          Association between each JobList and the constructor to use when a job must be created and added into this JobList.
protected  JobList<? extends AbstractJob> ExtendedUWS.jlDestination
          Current JobList.
 

Methods in uws.service with type parameters of type AbstractJob
<J extends AbstractJob>
boolean
ExtendedUWS.addJobList(JobList<J> jl, java.lang.Class<J> cl)
          Adds a JobList with the constructor of the type of job to use.
 

Methods in uws.service that return AbstractJob
 AbstractJob ExtendedUWS.createJob(java.util.Map<java.lang.String,java.lang.String> parameters)
           
 

Methods in uws.service that return types with arguments of type AbstractJob
protected  java.lang.reflect.Constructor<? extends AbstractJob> ExtendedUWS.getConstructor(JobList<? extends AbstractJob> jl)
          Gets the constructor of the type of job to use.
 

Method parameters in uws.service with type arguments of type AbstractJob
protected  void ExtendedUWS.addConstructor(JobList<? extends AbstractJob> jl)
          Searches in ExtendedUWS.assocJobListClass for the Class object of the given jobs list, gets the constructor with only one parameter of type Map<String,String> into this Class object, and finally saves in ExtendedUWS.assocJobListConstructor the association between the given jobs list and the found constructor.
 boolean ExtendedUWS.destroyJobList(JobList<AbstractJob> jl)
           
protected  java.lang.reflect.Constructor<? extends AbstractJob> ExtendedUWS.getConstructor(JobList<? extends AbstractJob> jl)
          Gets the constructor of the type of job to use.
 boolean ExtendedUWS.removeJobList(JobList<AbstractJob> jl)
           
 

Constructor parameters in uws.service with type arguments of type AbstractJob
ExtendedUWS.AddJobWithConstructor(AbstractUWS<JobList<AbstractJob>,AbstractJob> u)
           
ExtendedUWS.AddJobWithConstructor(AbstractUWS<JobList<AbstractJob>,AbstractJob> u)
           
 

Uses of AbstractJob in uws.service.actions
 

Classes in uws.service.actions with type parameters of type AbstractJob
 class AddJob<JL extends JobList<J>,J extends AbstractJob>
          The "Add Job" action of a UWS.
 class DestroyJob<JL extends JobList<J>,J extends AbstractJob>
          The "Destroy Job" action of a UWS.
 class GetJobParam<JL extends JobList<J>,J extends AbstractJob>
          The "Get Job Parameter" action of a UWS.
 class JobSummary<JL extends JobList<J>,J extends AbstractJob>
          The "Get Job" action of a UWS.
 class ListJobs<JL extends JobList<J>,J extends AbstractJob>
          The "List Jobs" action of a UWS.
 class SetJobParam<JL extends JobList<J>,J extends AbstractJob>
          The "Set Job Parameter" action of a UWS.
 class ShowHomePage<JL extends JobList<J>,J extends AbstractJob>
          The "Show UWS Home Page" action of a UWS.
 class UWSAction<JL extends JobList<J>,J extends AbstractJob>
          Action of a UWS (i.e.
 

Uses of AbstractJob in uws.service.controller
 

Methods in uws.service.controller with parameters of type AbstractJob
 void DestructionTimeController.control(AbstractJob jobToControl, java.util.Date dateToCheck)
          Controls the given destruction time.
 void ExecutionDurationController.control(AbstractJob jobToControl, long durationToCheck)
          Controls the given execution duration.
 void DestructionTimeController.control(AbstractJob job, java.util.Map<java.lang.String,java.lang.String> params)
          Extracts the destruction time from the given map and controls its value.
 void ExecutionDurationController.control(AbstractJob job, java.util.Map<java.lang.String,java.lang.String> params)
          Extracts the execution duration from the given map and controls its value.
static java.text.DateFormat DestructionTimeController.getDateFormat(AbstractJob job)
          Gets the date format used currently by the given job if not null or gets the default date format of a job (see DEFAULT_DATE_FORMAT).
 void DestructionTimeController.setDefaultDestructionTime(AbstractJob job)
          Sets the destruction time of the given job with the default value.
 void ExecutionDurationController.setDefaultExecutionDuration(AbstractJob job)
          Sets the execution duration of the given job with the default value.
 void DestructionTimeController.setDestructionTime(AbstractJob job, java.util.Date date)
          Controls the given value and sets the destruction time of the given job with this value.
 void ExecutionDurationController.setExecutionDuration(AbstractJob job, long duration)
          Controls the given value and sets the execution duration of the given job with this value.