public class JobService extends Object implements org.springframework.context.Lifecycle
Job
to jadice server,
retrieve its state afterwards.
Please consult the swagger documentation for further details about the methods exposed via REST.
Constructor and Description |
---|
JobService() |
Modifier and Type | Method and Description |
---|---|
String |
createJob(JobDefinitionDTO jobDefinition,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Submits a new job which will be submitted for execution immediately.
|
ContentStore |
getContentStore() |
JobFactory |
getJobFactory() |
JobInformationDTO |
getJobInformation(String jobId)
Retrieve the current
JobInformationDTO about a given Job. |
TemplateRepository |
getTemplateRepository()
The
TemplateRepository in order to retrieve the available job templates |
boolean |
isRunning() |
void |
removeJob(String jobId,
javax.servlet.http.HttpServletResponse response)
Remove the information about a job from the REST service.
|
void |
setContentStore(ContentStore contentStore)
Configure the
ContentStore that contains the files that shall be converted
and stores the files that were generated. |
void |
setJobFactory(JobFactory jobFactory)
Configure the
JobFactory which is used to sumbit the Job to
the converting instance of jadice server |
void |
setTemplateRepository(TemplateRepository templateRepo)
Configure the
TemplateRepository that contains all avaible job templates |
void |
start() |
void |
stop() |
public String createJob(JobDefinitionDTO jobDefinition, @Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response) throws JobException, IOException
JobException
IOException
public JobInformationDTO getJobInformation(String jobId)
JobInformationDTO
about a given Job. This contains its state as well
as the information about the resulting files.public void removeJob(String jobId, @Context javax.servlet.http.HttpServletResponse response) throws JobException
JobInformationDTO
anymore.JobException
public JobFactory getJobFactory()
JobFactory
which is used to submit the Job
to
the converting instance of jadice serverpublic void setJobFactory(JobFactory jobFactory)
JobFactory
which is used to sumbit the Job
to
the converting instance of jadice serverpublic ContentStore getContentStore()
ContentStore
that stores the used filespublic void setContentStore(ContentStore contentStore)
ContentStore
that contains the files that shall be converted
and stores the files that were generated.public TemplateRepository getTemplateRepository()
TemplateRepository
in order to retrieve the available job templatespublic void setTemplateRepository(TemplateRepository templateRepo)
TemplateRepository
that contains all avaible job templatespublic void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
Copyright © 2018 levigo holding gmbh. All rights reserved.