Modifier and Type | Class and Description |
---|---|
static class |
TAPJob.NoDBConnectionAvailableException
This exception is thrown by a job execution when no database connection
are available anymore.
|
Modifier and Type | Method and Description |
---|---|
UWSJob |
TAPFactory.createJob(javax.servlet.http.HttpServletRequest request,
JobOwner owner)
Creates a (PENDING) UWS job from the given HTTP request.
|
UWSJob |
TAPFactory.createJob(java.lang.String jobId,
long creationTime,
JobOwner owner,
UWSParameters params,
long quote,
long startTime,
long endTime,
java.util.List<Result> results,
ErrorSummary error)
Creates a UWS job with the following attributes.
|
JobThread |
TAPFactory.createJobThread(UWSJob job)
Create the thread which will execute the task described by the given UWSJob instance.
|
RequestParser |
TAPFactory.createRequestParser(UWSFileManager fileManager) |
protected abstract TAPJob |
TAPFactory.createTAPJob(javax.servlet.http.HttpServletRequest request,
JobOwner owner)
Create a PENDING asynchronous job from the given HTTP request.
|
protected TAPJob |
AbstractTAPFactory.createTAPJob(javax.servlet.http.HttpServletRequest request,
JobOwner owner)
This implementation provides a basic
TAPJob instance. |
protected abstract TAPJob |
TAPFactory.createTAPJob(java.lang.String jobId,
long creationTime,
JobOwner owner,
TAPParameters params,
long quote,
long startTime,
long endTime,
java.util.List<Result> results,
ErrorSummary error)
Create a PENDING asynchronous job with the given parameters.
|
protected TAPJob |
AbstractTAPFactory.createTAPJob(java.lang.String jobId,
long creationTime,
JobOwner owner,
TAPParameters params,
long quote,
long startTime,
long endTime,
java.util.List<Result> results,
ErrorSummary error)
This implementation provides a basic
TAPJob instance. |
UWSParameters |
TAPFactory.createUWSParameters(javax.servlet.http.HttpServletRequest request)
Extract the parameters from the given request (multipart or not).
|
UWSParameters |
TAPFactory.createUWSParameters(java.util.Map<java.lang.String,java.lang.Object> params)
Identify and gather all identified parameters of the given map inside a
TAPParameters object. |
protected void |
AsyncThread.jobWork() |
java.util.Map<java.lang.String,java.lang.Object> |
TAPRequestParser.parse(javax.servlet.http.HttpServletRequest req) |
void |
TAPJob.setExecReport(TAPExecutionReport execReport)
Set the execution report.
|
protected TAPExecutionReport |
ADQLExecutor.start()
Process the ADQL query.
|
TAPExecutionReport |
ADQLExecutor.start(AsyncThread thread)
Start the asynchronous processing of the ADQL query.
|
void |
TAPJob.start(boolean useManager) |
protected void |
ADQLExecutor.writeResult(TableIterator queryResult)
Write the given query result into the appropriate format in the appropriate output
(HTTP response for a synchronous execution, otherwise a file or any output provided by UWS).
|
Constructor and Description |
---|
TAPException(UWSException ue)
TAP exception wrapping the given
UWSException . |
TAPException(UWSException cause,
int httpErrorCode)
TAP exception wrapping the given
UWSException . |
TAPException(UWSException cause,
int httpErrorCode,
ExecutionProgression status)
TAP exception wrapping the given
UWSException and storing the current ADQL query execution status. |
Modifier and Type | Method and Description |
---|---|
protected org.json.JSONObject |
DefaultTAPBackupManager.getJSONJob(UWSJob job,
java.lang.String jlName) |
protected void |
DefaultTAPBackupManager.restoreOtherJobParams(org.json.JSONObject json,
UWSJob job) |
Constructor and Description |
---|
DefaultTAPBackupManager(UWS uws,
boolean byUser)
Build a default TAP jobs backup manager.
|
DefaultTAPBackupManager(UWS uws,
boolean byUser,
long frequency)
Build a default TAP jobs backup manager.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
TAPDestructionTimeController.check(java.lang.Object value) |
java.lang.Object |
MaxRecController.check(java.lang.Object value) |
java.lang.Object |
TAPExecutionDurationController.check(java.lang.Object value) |
java.lang.Object |
FormatController.check(java.lang.Object format) |
Constructor and Description |
---|
ASync(ServiceConnection service)
Build an Asynchronous Resource of a TAP service.
|
TAP(ServiceConnection serviceConnection)
Build a HOME resource of a TAP service whose the description is given in
parameter.
|
Modifier and Type | Method and Description |
---|---|
static JobOwner |
UWSToolBox.getUser(javax.servlet.http.HttpServletRequest request,
UserIdentifier userIdentifier)
Extract the user/job owner from the given HTTP request.
|
Modifier and Type | Method and Description |
---|---|
UWSJob |
ConfigurableUWSFactory.createJob(javax.servlet.http.HttpServletRequest request,
JobOwner user) |
UWSJob |
ConfigurableUWSFactory.createJob(java.lang.String jobID,
long creationTime,
JobOwner owner,
UWSParameters params,
long quote,
long startTime,
long endTime,
java.util.List<Result> results,
ErrorSummary error) |
JobThread |
ConfigurableUWSFactory.createJobThread(UWSJob jobDescription) |
RequestParser |
ConfigurableUWSFactory.createRequestParser(UWSFileManager fileManager) |
UWSParameters |
ConfigurableUWSFactory.createUWSParameters(javax.servlet.http.HttpServletRequest req) |
UWSParameters |
ConfigurableUWSFactory.createUWSParameters(java.util.Map<java.lang.String,java.lang.Object> params) |
static <C> java.lang.Class<? extends C> |
UWSConfiguration.fetchClass(java.lang.String value,
java.lang.String propertyName,
java.lang.Class<C> expectedType)
Fetch the class object corresponding to the class name provided between brackets in the given value.
|
static <C> java.lang.reflect.Constructor<? extends C> |
UWSConfiguration.fetchConstructor(java.lang.String propValue,
java.lang.String propName,
java.lang.Class<C> expectedType,
java.lang.Class<?>[] pTypes)
Fetch the specified constructor of the class corresponding to the class name provided between brackets in the given value.
|
protected java.io.File |
ConfigurableUWSServlet.getFile(java.lang.String filePath,
java.lang.String webAppRootPath,
java.lang.String propertyName)
Resolve the given file name/path.
|
static <C> boolean |
UWSConfiguration.hasConstructor(java.lang.String propValue,
java.lang.String propName,
java.lang.Class<C> expectedType,
java.lang.Class<?>[] pTypes)
Test whether the specified class has a constructor with the specified parameters.
|
protected void |
ConfigurableUWSFactory.initParameters(java.lang.String jlName,
java.lang.String propValue)
Parse the given list of parameters + their limits/controller and update the list of parameters for the specified job list.
|
static <C> C |
UWSConfiguration.newInstance(java.lang.String propValue,
java.lang.String propName,
java.lang.Class<C> expectedType)
Create an instance of the specified class.
|
static <C> C |
UWSConfiguration.newInstance(java.lang.String propValue,
java.lang.String propName,
java.lang.Class<C> expectedType,
java.lang.Class<?>[] pTypes,
java.lang.Object[] parameters)
Create an instance of the specified class.
|
static long |
UWSConfiguration.parseLimit(java.lang.String value,
java.lang.String propertyName)
Lets parsing a limit (for upload, ...) with its numeric value and its unit.
|
Constructor and Description |
---|
ConfigurableUWSFactory(java.util.Properties uwsConfig)
Create and initialize a UWS factory thanks to properties coming from a UWS configuration file.
|
Modifier and Type | Field and Description |
---|---|
protected UWSException |
JobThread.lastError
The last error which has occurred during the execution of this thread.
|
Modifier and Type | Method and Description |
---|---|
UWSException |
JobThread.getError()
Gets the last error which has occurred during the execution of this thread.
|
UWSException |
UWSJob.getWorkError()
Gets the error (if any) which has occurred during the job execution.
|
Modifier and Type | Method and Description |
---|---|
void |
JobThread.setError(UWSException ue)
Publishes the given exception as an error summary.
|
Modifier and Type | Method and Description |
---|---|
void |
UWSJob.abort()
Stops immediately the job, sets its phase to
ABORTED and sets its end time. |
java.lang.String |
JobList.addNewJob(UWSJob j)
Add the given job to the list except if a job with the same jobID already
exists.
|
boolean |
UWSJob.addOrUpdateParameter(java.lang.String paramName,
java.lang.Object paramValue)
Adds or updates the specified parameter with the given value ONLY IF the
job can be updated (considering its current execution phase, see
JobPhase.isJobUpdatable() ). |
boolean |
UWSJob.addOrUpdateParameter(java.lang.String paramName,
java.lang.Object paramValue,
JobOwner user)
Adds or updates the specified parameter with the given value ONLY IF the
job can be updated (considering its current execution phase, see
JobPhase.isJobUpdatable() ). |
boolean |
UWSJob.addOrUpdateParameters(UWSParameters params)
Adds or updates the given parameters ONLY IF the job can be updated
(considering its current execution phase, see
JobPhase.isJobUpdatable() ). |
boolean |
UWSJob.addOrUpdateParameters(UWSParameters params,
JobOwner user)
Adds or updates the given parameters ONLY IF the job can be updated
(considering its current execution phase, see
JobPhase.isJobUpdatable() ). |
boolean |
UWSJob.addResult(Result res)
Adds the given result in the results list of this job.
|
void |
UWSJob.applyPhaseParam(JobOwner user)
Looks for an additional parameters which corresponds to the Execution
Phase.
|
boolean |
JobList.archiveJob(java.lang.String jobId,
JobOwner user)
Archive the specified job if the given user is allowed to.
|
void |
JobList.clear(JobOwner owner)
Destroys all jobs owned by the specified user.
|
boolean |
JobList.destroyJob(java.lang.String jobId,
JobOwner user)
Removes the job from the list and deletes all its attached resources
(
UWSJob.clearResources() . |
void |
UWSJob.error(ErrorSummary error)
Stops immediately the job, sets its error summary, sets its phase to
ExecutionPhase.ERROR and sets its end time. |
UWSJob |
JobList.getJob(java.lang.String jobID,
JobOwner user)
Gets the job whose the ID is given in parameter ONLY IF it is the one of
the specified user OR IF the specified job is owned by an anonymous user.
|
java.io.OutputStream |
JobThread.getResultOutput(Result resultToWrite)
Gets an output stream for the given result.
|
protected abstract void |
JobThread.jobWork()
Does the job work (i.e.
|
void |
JobThread.publishResult(Result result)
Publishes the given result in the job.
|
void |
UWSJob.serialize(javax.servlet.ServletOutputStream output,
java.lang.String[] attributes,
UWSSerializer serializer)
Serializes the specified attribute of this job in the given output stream
by using the given serializer.
|
void |
SerializableUWSObject.serialize(javax.servlet.ServletOutputStream output,
UWSSerializer serializer,
JobOwner owner)
Serializes the while object in the given output stream,
considering the given owner ID and thanks to the given serializer.
|
void |
JobList.serialize(javax.servlet.ServletOutputStream output,
UWSSerializer serializer,
JobOwner owner,
JobListRefiner listRefiner)
Serializes the while object in the given output stream,
considering the given owner, the given job filters and thanks to the
given serializer.
|
abstract java.lang.String |
SerializableUWSObject.serialize(UWSSerializer serializer,
JobOwner owner)
Serializes the whole object considering the given owner (supposed to be the current user)
and thanks to the given serializer.
|
java.lang.String |
ErrorSummary.serialize(UWSSerializer serializer,
JobOwner owner) |
java.lang.String |
Result.serialize(UWSSerializer serializer,
JobOwner owner) |
java.lang.String |
JobList.serialize(UWSSerializer serializer,
JobOwner user) |
java.lang.String |
UWSJob.serialize(UWSSerializer serializer,
JobOwner user) |
protected void |
JobPhase.setAbortedPhase(boolean force)
Changes the current phase to
ABORTED . |
protected void |
JobPhase.setArchivedPhase(boolean force)
Changes the current phase to
ARCHIVED . |
protected void |
JobPhase.setCompletedPhase(boolean force)
Changes the current phase to
COMPLETED . |
void |
JobThread.setError(ErrorSummary error)
Published the given error in the job.
|
void |
JobThread.setError(UWSException ue)
Publishes the given exception as an error summary.
|
protected void |
JobPhase.setErrorPhase(boolean force)
Changes the current phase to
ERROR . |
void |
UWSJob.setErrorSummary(ErrorSummary errorSummary)
Sets the error that occurs during the execution of this job.
|
protected void |
JobPhase.setExecutingPhase(boolean force)
Changes the current phase to
EXECUTING . |
protected void |
JobPhase.setHeldPhase(boolean force)
Changes the current phase to
HELD . |
protected void |
JobPhase.setPendingPhase(boolean force)
Changes the current phase to
PENDING . |
void |
JobPhase.setPhase(ExecutionPhase p)
Lets changing the current phase of the associated job considering the
order of execution phases.
|
void |
UWSJob.setPhase(ExecutionPhase p)
Sets the current phase of this job.
|
void |
JobPhase.setPhase(ExecutionPhase p,
boolean force)
Lets changing the current phase of the associated job considering or
not the order of execution phases.
|
void |
UWSJob.setPhase(ExecutionPhase p,
boolean force)
Sets the current phase of this job, respecting or not the imposed order.
|
protected void |
JobPhase.setQueuedPhase(boolean force)
Changes the current phase to
QUEUED . |
protected void |
JobPhase.setSuspendedPhase(boolean force)
Changes the current phase to
SUSPENDED . |
protected void |
JobPhase.setUnknownPhase(boolean force)
Changes the current phase to
UNKNOWN . |
void |
UWSJob.start()
Starts the job by using the execution manager if any.
|
void |
UWSJob.start(boolean useManager)
Starts the job.
|
void |
JobObserver.update(UWSJob job,
ExecutionPhase oldPhase,
ExecutionPhase newPhase)
Used when one of the observed jobs notifies its observers of a modification of its execution phase.
|
Modifier and Type | Method and Description |
---|---|
void |
JobInfo.destroy()
Free/Discard any resource associated with this
JobInfo . |
void |
SingleValueJobInfo.destroy() |
void |
XMLJobInfo.destroy() |
java.lang.String |
JobInfo.getXML(java.lang.String newLinePrefix)
Get the XML representation of this
JobInfo . |
java.lang.String |
XMLJobInfo.getXML(java.lang.String newLinePrefix) |
protected void |
XMLJobInfo.restoreFile()
Restore the link toward the XML file represented by this
JobInfo . |
void |
JobInfo.write(javax.servlet.http.HttpServletResponse response)
Write the content of this jobInfo as a complete HTTP response
when the URL
{uws-root}/{job-list}/{job-id}/jobInfo is
requested. |
void |
SingleValueJobInfo.write(javax.servlet.http.HttpServletResponse response) |
void |
XMLJobInfo.write(javax.servlet.http.HttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
void |
QueuedExecutionManager.setMaxRunningJobs(int maxRunningJobs)
Sets the maximum number of running jobs.
|
protected void |
AbstractQueuedExecutionManager.startJob(UWSJob jobToStartNow)
Starts immediately the given job.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
InputParamController.check(java.lang.Object value)
Checks the value of the controlled parameter and builds a new object from this value.
|
java.lang.Object |
DestructionTimeController.check(java.lang.Object value) |
java.lang.Object |
ExecutionDurationController.check(java.lang.Object value) |
java.lang.Object |
DurationParamController.check(java.lang.Object value) |
java.lang.Object |
NumericParamController.check(java.lang.Object value) |
java.lang.Object |
StringParamController.check(java.lang.Object value) |
java.lang.Object |
UWSParameters.set(java.lang.String name,
java.lang.Object value)
Sets the given value to the specified parameter.
|
java.lang.String[] |
UWSParameters.update(UWSParameters newParams)
Updates this list of UWS parameters with the given ones.
|
Constructor and Description |
---|
UWSParameters(javax.servlet.http.HttpServletRequest request)
Extracts and identifies all UWS standard and non-standard parameters from the given
HttpServletRequest . |
UWSParameters(javax.servlet.http.HttpServletRequest request,
java.util.Collection<java.lang.String> expectedAdditionalParams,
java.util.Map<java.lang.String,InputParamController> inputParamControllers)
Extracts and identifies all UWS standard and non-standard parameters from the given
HttpServletRequest . |
UWSParameters(java.util.Map<java.lang.String,java.lang.Object> params)
Extracts and identifies all UWS standard and non-standard parameters from the map.
|
UWSParameters(java.util.Map<java.lang.String,java.lang.Object> params,
java.util.Collection<java.lang.String> expectedAdditionalParams,
java.util.Map<java.lang.String,InputParamController> inputParamControllers)
Extracts and identifies all UWS standard and non-standard parameters from the map.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
XMLSerializer.getJob(UWSJob job,
boolean root) |
java.lang.String |
XMLSerializer.getJobInfo(UWSJob job)
Serialize into XML the
JobInfo of the given job, if any. |
Constructor and Description |
---|
JobListRefiner(javax.servlet.http.HttpServletRequest request)
Build a filter for a whole list of jobs.
|
Modifier and Type | Method and Description |
---|---|
void |
UWSServlet.sendError(UWSException error,
javax.servlet.http.HttpServletRequest request,
java.lang.String reqID,
JobOwner user,
java.lang.String uwsAction,
javax.servlet.http.HttpServletResponse response)
Fills the response with the given error.
|
void |
UWSService.sendError(UWSException error,
javax.servlet.http.HttpServletRequest request,
java.lang.String reqID,
JobOwner user,
java.lang.String uwsAction,
javax.servlet.http.HttpServletResponse response)
Fills the response with the given error.
|
Modifier and Type | Method and Description |
---|---|
UWSFileManager |
UWSServlet.createFileManager() |
UWSJob |
UWSServlet.createJob(javax.servlet.http.HttpServletRequest request,
JobOwner user) |
UWSJob |
UWSFactory.createJob(javax.servlet.http.HttpServletRequest request,
JobOwner user)
Creates a (PENDING) UWS job from the given HTTP request.
|
UWSJob |
AbstractUWSFactory.createJob(javax.servlet.http.HttpServletRequest request,
JobOwner user) |
UWSJob |
UWSServlet.createJob(java.lang.String jobID,
long creationTime,
JobOwner owner,
UWSParameters params,
long quote,
long startTime,
long endTime,
java.util.List<Result> results,
ErrorSummary error) |
UWSJob |
UWSFactory.createJob(java.lang.String jobID,
long creationTime,
JobOwner owner,
UWSParameters params,
long quote,
long startTime,
long endTime,
java.util.List<Result> results,
ErrorSummary error)
Creates a UWS job with the following attributes.
|
UWSJob |
AbstractUWSFactory.createJob(java.lang.String jobID,
long creationTime,
JobOwner owner,
UWSParameters params,
long quote,
long startTime,
long endTime,
java.util.List<Result> results,
ErrorSummary error) |
JobThread |
UWSFactory.createJobThread(UWSJob jobDescription)
Creates the thread which will executes the task described by the given
UWSJob instance. |
RequestParser |
UWSServlet.createRequestParser(UWSFileManager fileManager) |
RequestParser |
UWSFactory.createRequestParser(UWSFileManager manager)
Create a parser of HTTP requests.
|
RequestParser |
AbstractUWSFactory.createRequestParser(UWSFileManager fileManager) |
UWSParameters |
UWSServlet.createUWSParameters(javax.servlet.http.HttpServletRequest req) |
UWSParameters |
UWSFactory.createUWSParameters(javax.servlet.http.HttpServletRequest request)
Lets extracting all parameters from the given request.
|
UWSParameters |
AbstractUWSFactory.createUWSParameters(javax.servlet.http.HttpServletRequest req) |
UWSParameters |
UWSServlet.createUWSParameters(java.util.Map<java.lang.String,java.lang.Object> params) |
UWSParameters |
UWSFactory.createUWSParameters(java.util.Map<java.lang.String,java.lang.Object> params)
Lets extracting all parameters from the given map.
|
UWSParameters |
AbstractUWSFactory.createUWSParameters(java.util.Map<java.lang.String,java.lang.Object> params) |
boolean |
UWS.destroyJobList(java.lang.String name)
Destroys the specified jobs list.
|
protected void |
UWSServlet.doAddJob(UWSUrl requestUrl,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
JobOwner user) |
protected void |
UWSServlet.doDestroyJob(UWSUrl requestUrl,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
JobOwner user) |
protected void |
UWSServlet.doGetJobParam(UWSUrl requestUrl,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
JobOwner user) |
protected void |
UWSServlet.doJobSummary(UWSUrl requestUrl,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
JobOwner user) |
protected void |
UWSServlet.doListJob(UWSUrl requestUrl,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
JobOwner user) |
protected void |
UWSServlet.doSetJobParam(UWSUrl requestUrl,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
JobOwner user) |
protected void |
UWSServlet.doSetUWSParameter(UWSUrl requestUrl,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
JobOwner user) |
boolean |
UWSService.executeRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Executes the given request according to the IVOA Proposed Recommendation of 2010-02-10.
|
JobOwner |
UserIdentifier.extractUserId(UWSUrl urlInterpreter,
javax.servlet.http.HttpServletRequest request)
Extracts the ID of the user/owner of the current session.
|
UWSJob |
UWSServlet.getJob(UWSUrl requestUrl) |
UWSJob |
UWSServlet.getJob(UWSUrl requestUrl,
JobOwner user) |
JobList |
UWSServlet.getJobList(java.lang.String name) |
JobList |
UWS.getJobList(java.lang.String name)
Gets the jobs list whose the name matches exactly the given one.
|
UWSSerializer |
UWSServlet.getSerializer(java.lang.String mimeTypes)
Gets the serializer whose the MIME type is the same as the given one.
|
UWSSerializer |
UWSService.getSerializer(java.lang.String mimeTypes) |
UWSSerializer |
UWS.getSerializer(java.lang.String mimeTypes)
Gets the serializer whose the MIME type is the same as the given one.
|
abstract void |
UWSServlet.initUWS() |
void |
UWSService.redirect(java.lang.String url,
javax.servlet.http.HttpServletRequest request,
JobOwner user,
java.lang.String uwsAction,
javax.servlet.http.HttpServletResponse response)
Sends a redirection (with the HTTP status code 303) to the given URL/URI into the given response.
|
JobOwner |
UserIdentifier.restoreUser(java.lang.String id,
java.lang.String pseudo,
java.util.Map<java.lang.String,java.lang.Object> otherData)
Creates a user with the given parameters or merely gets it if it already exists after updating it.
|
void |
UWSService.sendError(UWSException error,
javax.servlet.http.HttpServletRequest request,
java.lang.String reqID,
JobOwner user,
java.lang.String uwsAction,
javax.servlet.http.HttpServletResponse response)
Fills the response with the given error.
|
void |
UWSService.setDefaultSerializer(java.lang.String mimeType)
Sets the MIME of the serializer to use by default.
|
protected void |
UWSServlet.writeHomePage(UWSUrl requestUrl,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
JobOwner user) |
Constructor and Description |
---|
UWSService(UWSFactory jobFactory,
UWSFileManager fileManager)
Builds a UWS (the base URI will be extracted at the first request directly from the request itself).
|
UWSService(UWSFactory jobFactory,
UWSFileManager fileManager,
java.lang.String baseURI)
Builds a UWS with its base UWS URI.
|
UWSService(UWSFactory jobFactory,
UWSFileManager fileManager,
UWSLog logger)
Builds a UWS (the base URI will be extracted at the first request directly from the request itself).
|
UWSService(UWSFactory jobFactory,
UWSFileManager fileManager,
UWSLog logger,
java.lang.String baseURI)
Builds a UWS with its base UWS URI.
|
UWSService(UWSFactory jobFactory,
UWSFileManager fileManager,
UWSLog logger,
UWSUrl urlInterpreter)
Builds a UWS with the given UWS URL interpreter.
|
UWSService(UWSFactory jobFactory,
UWSFileManager fileManager,
UWSUrl urlInterpreter)
Builds a UWS with the given UWS URL interpreter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
GetJobParam.apply(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Gets the specified job (and throw an error if not found),
chooses the serializer and write the serialization of the job attribute in the given response.
|
boolean |
ListJobs.apply(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Gets the specified jobs list (and throw an error if not found),
chooses the serializer and write the serialization of the jobs list in
the given response.
|
abstract boolean |
UWSAction.apply(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Applies this UWS action in function of the given request
and writes the result in the given response.
|
boolean |
SetUWSParameter.apply(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Get the specified job (throw an error if not found),
and update the specified UWS standard parameter.
|
boolean |
JobSummary.apply(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Gets the specified job (and throw an error if not found),
chooses the serializer and write the serialization of the job in the
given response.
|
boolean |
SetJobParam.apply(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Gets the specified job (and throw an error if not found),
changes the value of the specified job attribute
and makes a redirection to the job summary.
|
boolean |
ShowHomePage.apply(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Writes the UWS home page in the given HttpServletResponse.
|
boolean |
AddJob.apply(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Gets the specified jobs list (throw an error if not found),
creates a new job, adds it to the jobs list and makes a redirection to the summary of this new job.
|
boolean |
DestroyJob.apply(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Gets the specified jobs list (throw an error if not found),
gets the specified job (throw an error if not found),
destroys the job and makes a redirection to the jobs list.
|
protected UWSJob |
UWSAction.getJob(UWSUrl urlInterpreter)
Extracts the job ID from the given UWS URL
and gets the corresponding job from the UWS.
|
protected UWSJob |
UWSAction.getJob(UWSUrl urlInterpreter,
JobList jobsList)
Extracts the job ID from the given UWS URL and gets the corresponding job from the given jobs list.
|
protected UWSJob |
UWSAction.getJob(UWSUrl urlInterpreter,
JobList jobsList,
JobOwner user)
Extracts the job ID from the given UWS URL and gets the corresponding job from the given jobs list.
|
protected UWSJob |
UWSAction.getJob(UWSUrl urlInterpreter,
JobOwner user)
Extracts the job ID from the given UWS URL and gets the corresponding job from the UWS.
|
protected JobList |
UWSAction.getJobsList(UWSUrl urlInterpreter)
Extracts the name of the jobs list from the given UWS URL
and gets the jobs list from the UWS.
|
boolean |
GetJobParam.match(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Checks whether:
a job list name is specified in the given UWS URL (note: the existence of the jobs list is not checked),
a job ID is given in the UWS URL (note: the existence of the job is not checked),
there is a job attribute,
the HTTP method is HTTP-GET.
|
boolean |
ListJobs.match(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Checks whether:
a job list name is specified in the given UWS URL
(note: the existence of the jobs list is not checked),
the UWS URL does not make a reference to a job (so: no job ID),
the HTTP method is HTTP-GET.
|
abstract boolean |
UWSAction.match(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Indicates whether the given request corresponds to this UWS action.
|
boolean |
SetUWSParameter.match(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Checks whether:
a job list name is specified in the given UWS URL (note: by default, the existence of the jobs list is not checked),
a job ID is given in the UWS URL (note: by default, the existence of the job is not yet checked),
the job attribute "phase", "runID", "executionduration" or "destruction" is used in the UWS URL,
the HTTP method is HTTP-POST or HTTP-PUT.
|
boolean |
JobSummary.match(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Checks whether:
a job list name is specified in the given UWS URL
(note: the existence of the jobs list is not checked),
a job ID is given in the UWS URL
(note: the existence of the job is not checked),
there is no job attribute,
the HTTP method is HTTP-GET.
|
boolean |
SetJobParam.match(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Checks whether:
a job list name is specified in the given UWS URL (note: by default, the existence of the jobs list is not checked),
a job ID is given in the UWS URL (note: by default, the existence of the job is not yet checked),
if the HTTP method is HTTP-POST: there is exactly one attribute and at least one parameter
if the HTTP method is HTTP-PUT: there are at least two attributes (
UWSJob.PARAM_PARAMETERS /{parameter_name}) and there are at least two parameters
|
boolean |
ShowHomePage.match(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Checks whether there is no jobs list name.
|
boolean |
AddJob.match(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Checks whether:
a job list name is specified in the given UWS URL (note: by default, the existence of the jobs list is not checked),
the UWS URL does not make a reference to a job (so: no job ID),
the HTTP method is HTTP-POST.
|
boolean |
DestroyJob.match(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Checks whether:
a job list name is specified in the given UWS URL (note: the existence of the jobs list is not checked),
a job ID is given in the UWS URL (note: the existence of the job is not checked),
no job attribute is specified in the URL (i.e.
|
Modifier and Type | Method and Description |
---|---|
protected ErrorSummary |
DefaultUWSBackupManager.getError(org.json.JSONObject obj)
Builds the error summary corresponding to the given JSON object.
|
protected org.json.JSONObject |
DefaultUWSBackupManager.getJSONJob(UWSJob job,
java.lang.String jlName)
Serializes the given job into a JSON object.
|
protected java.lang.Object |
DefaultUWSBackupManager.getJSONJobInfo(JobInfo jobInfo)
Serialize the given
JobInfo so that being able later to restore this exact object as provided. |
protected Result |
DefaultUWSBackupManager.getResult(org.json.JSONObject obj)
Builds the result corresponding to the given JSON object.
|
protected java.util.List<Result> |
DefaultUWSBackupManager.getResults(org.json.JSONArray array)
Builds the list of results corresponding to the given JSON array.
|
protected JobOwner |
DefaultUWSBackupManager.getUser(org.json.JSONObject json)
Builds the instance of
JobOwner corresponding to the given JSON object. |
protected boolean |
DefaultUWSBackupManager.restoreJob(org.json.JSONObject json,
java.util.Map<java.lang.String,JobOwner> users)
Builds the job corresponding to the given JSON object and then restore it in the UWS.
|
protected JobInfo |
DefaultUWSBackupManager.restoreJobInfo(java.lang.Object jsonValue)
Restore the JobInfo referenced or represented by the given JSON value.
|
protected void |
DefaultUWSBackupManager.restoreOtherJobParams(org.json.JSONObject json,
UWSJob job)
Restores other job parameters, either from the given JSON object or from the parameters map of the given job.
|
Constructor and Description |
---|
DefaultUWSBackupManager(UWS uws,
boolean byUser)
Builds a backup manager in the given mode: "by user" (one file for each user and the backup is done at each user action)
or not (one file for all users and all jobs and the backup is done all minutes (see
DefaultUWSBackupManager.DEFAULT_FREQUENCY )). |
DefaultUWSBackupManager(UWS uws,
boolean byUser,
long frequency)
Builds a backup manager in the given mode and with the given frequency.
|
Modifier and Type | Class and Description |
---|---|
class |
UnsupportedURIProtocolException
Error sent when trying to read a remote file using a URI whose the scheme/protocol is not supported.
|
Constructor and Description |
---|
LocalUWSFileManager(java.io.File root)
Builds a
UWSFileManager which manages all UWS files in the given directory. |
LocalUWSFileManager(java.io.File root,
boolean oneDirectoryForEachUser,
boolean groupUserDirectories)
Builds a
UWSFileManager which manages all UWS files in the given directory. |
LocalUWSFileManager(java.io.File root,
boolean oneDirectoryForEachUser,
boolean groupUserDirectories,
OwnerGroupIdentifier ownerGroupIdentifier)
Builds a
UWSFileManager which manages all UWS files in the given directory. |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
NoEncodingParser.parse(javax.servlet.http.HttpServletRequest request) |
java.util.Map<java.lang.String,java.lang.Object> |
MultipartParser.parse(javax.servlet.http.HttpServletRequest request) |
java.util.Map<java.lang.String,java.lang.Object> |
FormEncodedParser.parse(javax.servlet.http.HttpServletRequest request) |
java.util.Map<java.lang.String,java.lang.Object> |
XMLRequestParser.parse(javax.servlet.http.HttpServletRequest request) |
java.util.Map<java.lang.String,java.lang.Object> |
RequestParser.parse(javax.servlet.http.HttpServletRequest request)
Extract parameters from the given HTTP request.
|
java.util.Map<java.lang.String,java.lang.Object> |
UWSRequestParser.parse(javax.servlet.http.HttpServletRequest req) |
protected void |
XMLRequestParser.validate(java.io.File xmlFile)
Validate the specified XML document.
|
protected void |
XMLRequestParser.validate(java.io.InputStream input)
Validate the given XML document.
|
protected void |
XMLRequestParser.validate(java.lang.String smallXML)
Validate the given XML document.
|
Modifier and Type | Method and Description |
---|---|
void |
WaitObserver.update(UWSJob job,
ExecutionPhase oldPhase,
ExecutionPhase newPhase) |