Package | Description |
---|---|
org.json | |
tap | |
tap.error | |
uws | |
uws.config | |
uws.job | |
uws.job.serializer | |
uws.job.user | |
uws.service | |
uws.service.actions | |
uws.service.backup | |
uws.service.error | |
uws.service.file | |
uws.service.log | |
uws.service.wait |
Modifier and Type | Method and Description |
---|---|
static org.json.JSONObject |
Json4Uws.getJson(JobList jobsList,
JobOwner owner)
Gets the JSON representation of the given jobs list.
|
static org.json.JSONObject |
Json4Uws.getJson(JobList jobsList,
JobOwner owner,
JobListRefiner listRefiner)
Gets the JSON representation of the given jobs list by filtering by owner
and some user-filters (e.g.
|
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.
|
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. |
Constructor and Description |
---|
TAPJob(JobOwner owner,
TAPParameters tapParams)
Build a pending TAP job with the given parameters.
|
TAPJob(JobOwner owner,
TAPParameters tapParams,
java.lang.String requestID)
Build a pending TAP job with the given parameters.
|
TAPJob(java.lang.String jobID,
long creationTime,
JobOwner owner,
TAPParameters params,
long quote,
long startTime,
long endTime,
java.util.List<Result> results,
ErrorSummary error)
Restore a job in a state defined by the given parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultTAPErrorWriter.writeError(java.lang.String message,
ErrorType type,
int httpErrorCode,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request,
java.lang.String reqID,
JobOwner user,
java.lang.String action) |
boolean |
DefaultTAPErrorWriter.writeError(java.lang.Throwable t,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request,
java.lang.String reqID,
JobOwner user,
java.lang.String action) |
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 |
---|---|
static java.lang.String |
UWSExceptionFactory.executePermissionDenied(JobOwner user,
java.lang.String jobID) |
static java.lang.String |
UWSExceptionFactory.executePermissionDenied(JobOwner user,
java.lang.String jobID,
java.lang.String consequence) |
static java.lang.String |
UWSExceptionFactory.readPermissionDenied(JobOwner user,
boolean jobList,
java.lang.String containerName) |
static java.lang.String |
UWSExceptionFactory.readPermissionDenied(JobOwner user,
boolean jobList,
java.lang.String containerName,
java.lang.String consequence) |
static java.lang.String |
UWSExceptionFactory.writePermissionDenied(JobOwner user,
boolean jobList,
java.lang.String containerName) |
static java.lang.String |
UWSExceptionFactory.writePermissionDenied(JobOwner user,
boolean jobList,
java.lang.String containerName,
java.lang.String consequence) |
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) |
Modifier and Type | Field and Description |
---|---|
protected JobOwner |
UWSJob.owner
The identifier of the creator of this job.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<JobOwner,java.util.Map<java.lang.String,UWSJob>> |
JobList.ownerJobs
[Required] List of jobs per owner.
|
Modifier and Type | Method and Description |
---|---|
JobOwner |
UWSJob.getOwner()
Gets the owner of this job.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<JobOwner> |
JobList.getUsers()
Gets all users that own at least one job in this list.
|
Modifier and Type | Method and Description |
---|---|
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,
JobOwner user)
Adds or updates the given parameters ONLY IF the job can be updated
(considering its current execution phase, see
JobPhase.isJobUpdatable() ). |
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() . |
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.util.Iterator<UWSJob> |
JobList.getJobs(JobOwner user)
Gets an iterator on the jobs list of the specified user.
|
int |
JobList.getNbJobs(JobOwner user)
Gets the number of jobs owned by the given user into this list.
|
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) |
Constructor and Description |
---|
UWSJob(JobOwner owner,
UWSParameters params)
Builds a job of the given owner and from a map of all parameters (UWS
and additional parameters).
|
UWSJob(JobOwner owner,
UWSParameters params,
java.lang.String requestID)
Builds a job of the given owner and from a map of all parameters (UWS and
additional parameters).
|
UWSJob(java.lang.String jobID,
long creationTime,
JobOwner owner,
UWSParameters params,
long quote,
long startTime,
long endTime,
java.util.List<Result> results,
ErrorSummary error)
CONSTRUCTOR TO USE TO RESTORE A JOB whatever is its phase.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
UWSSerializer.getJobList(JobList jobsList,
JobOwner owner,
boolean root)
Serializes the given jobs list, by filtering by user.
|
java.lang.String |
XMLSerializer.getJobList(JobList jobsList,
JobOwner owner,
JobListRefiner listRefiner,
boolean root) |
java.lang.String |
JSONSerializer.getJobList(JobList jobsList,
JobOwner owner,
JobListRefiner listRefiner,
boolean root) |
abstract java.lang.String |
UWSSerializer.getJobList(JobList jobsList,
JobOwner owner,
JobListRefiner listRefiner,
boolean root)
Serializes the given jobs list, by filtering using user-specified
filters.
|
java.lang.String |
XMLSerializer.getUWS(UWS uws,
JobOwner user) |
java.lang.String |
JSONSerializer.getUWS(UWS uws,
JobOwner user) |
abstract java.lang.String |
UWSSerializer.getUWS(UWS uws,
JobOwner user)
Serializes the given UWS for the specified user.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultJobOwner
Default implementation of
JobOwner . |
Modifier and Type | Method and Description |
---|---|
JobOwner |
UserIdentifier.extractUserId(UWSUrl urlInterpreter,
javax.servlet.http.HttpServletRequest request)
Extracts the ID of the user/owner of the current session.
|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
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) |
UWSJob |
UWSServlet.getJob(UWSUrl requestUrl,
JobOwner user) |
void |
UWSServlet.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.
|
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.
|
void |
UWSServlet.sendError(java.lang.Throwable 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(java.lang.Throwable 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 |
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.
|
protected void |
UWSServlet.writeHomePage(UWSUrl requestUrl,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
JobOwner user) |
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.
|
static void |
JobSummary.block(BlockingPolicy policy,
javax.servlet.http.HttpServletRequest req,
UWSJob job,
JobOwner user)
Block the current thread until the specified duration (in seconds) is
elapsed or if the execution phase of the target job changes.
|
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.
|
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 JobOwner |
DefaultUWSBackupManager.getUser(org.json.JSONObject json)
Builds the instance of
JobOwner corresponding to the given JSON object. |
Modifier and Type | Method and Description |
---|---|
protected org.json.JSONObject |
DefaultUWSBackupManager.getJSONUser(JobOwner user)
Serializes the given user into a JSON object.
|
int[] |
UWSBackupManager.saveOwner(JobOwner owner)
Save ONLY the jobs of the given user and all information about this user.
|
int[] |
DefaultUWSBackupManager.saveOwner(JobOwner user) |
protected int[] |
DefaultUWSBackupManager.saveOwner(JobOwner user,
boolean fromSaveAll) |
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultUWSErrorWriter.formatError(java.lang.String message,
ErrorType type,
int httpErrorCode,
java.lang.String reqID,
java.lang.String action,
JobOwner user,
javax.servlet.http.HttpServletResponse response,
java.lang.String acceptHeader)
Formats and writes the given error in the HTTP servlet response.
|
protected void |
DefaultUWSErrorWriter.formatHTMLError(java.lang.String message,
ErrorType type,
int httpErrorCode,
java.lang.String reqID,
java.lang.String action,
JobOwner user,
javax.servlet.http.HttpServletResponse response)
Formats and writes the given error in the HTTP servlet response.
|
protected void |
DefaultUWSErrorWriter.formatJSONError(java.lang.String message,
ErrorType type,
int httpErrorCode,
java.lang.String reqID,
java.lang.String action,
JobOwner user,
javax.servlet.http.HttpServletResponse response)
Formats and writes the given error in the HTTP servlet response.
|
boolean |
ServiceErrorWriter.writeError(java.lang.String message,
ErrorType type,
int httpErrorCode,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request,
java.lang.String reqID,
JobOwner user,
java.lang.String action)
Write the described error in the given response.
|
boolean |
DefaultUWSErrorWriter.writeError(java.lang.String message,
ErrorType type,
int httpErrorCode,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request,
java.lang.String reqID,
JobOwner user,
java.lang.String action) |
boolean |
ServiceErrorWriter.writeError(java.lang.Throwable t,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request,
java.lang.String reqID,
JobOwner user,
java.lang.String action)
Write the given exception in the given response.
|
boolean |
DefaultUWSErrorWriter.writeError(java.lang.Throwable t,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request,
java.lang.String reqID,
JobOwner user,
java.lang.String action) |
Modifier and Type | Method and Description |
---|---|
protected void |
LocalUWSFileManager.cleanOwnerDirectory(JobOwner owner)
Removes the owner directory if there is no more file in it (except the backup file which is no more required).
|
protected java.lang.String |
LocalUWSFileManager.getBackupFileName(JobOwner owner)
Gets the name of the backup file of the given job owner (~ UWS user).
|
java.io.InputStream |
LocalUWSFileManager.getBackupInput(JobOwner owner) |
java.io.InputStream |
UWSFileManager.getBackupInput(JobOwner owner)
Gets an input stream on the backup file of ONLY the given job owner
(~ UWS user).
|
java.io.OutputStream |
LocalUWSFileManager.getBackupOutput(JobOwner owner) |
java.io.OutputStream |
UWSFileManager.getBackupOutput(JobOwner owner)
Gets an output stream on the backup file of ONLY the given job owner
(~ UWS user).
|
java.io.File |
LocalUWSFileManager.getOwnerDirectory(JobOwner owner)
Gets the directory of the given owner.
|
java.lang.String |
OwnerGroupIdentifier.getOwnerGroup(JobOwner owner)
Let's extracting the group name of the given job owner.
|
java.lang.String |
DefaultOwnerGroupIdentifier.getOwnerGroup(JobOwner owner) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultUWSLog.logHttp(UWSLog.LogLevel level,
javax.servlet.http.HttpServletResponse response,
java.lang.String requestId,
JobOwner user,
java.lang.String message,
java.lang.Throwable error)
A message/error logged with this function will have the following format:
|
void |
Slf4jUWSLog.logHttp(UWSLog.LogLevel level,
javax.servlet.http.HttpServletResponse response,
java.lang.String requestId,
JobOwner user,
java.lang.String message,
java.lang.Throwable error) |
void |
UWSLog.logHttp(UWSLog.LogLevel level,
javax.servlet.http.HttpServletResponse response,
java.lang.String requestId,
JobOwner user,
java.lang.String message,
java.lang.Throwable error)
Log a message and/or an error in the HTTP context.
|
Modifier and Type | Method and Description |
---|---|
long |
LimitedBlockingPolicy.block(java.lang.Thread thread,
long userDuration,
UWSJob job,
JobOwner user,
javax.servlet.http.HttpServletRequest request) |
long |
UserLimitedBlockingPolicy.block(java.lang.Thread thread,
long userDuration,
UWSJob job,
JobOwner user,
javax.servlet.http.HttpServletRequest request) |
long |
BlockingPolicy.block(java.lang.Thread thread,
long userDuration,
UWSJob job,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Notify this
BlockingPolicy that the given thread is going to
be blocked for the specified duration. |
protected java.lang.String |
UserLimitedBlockingPolicy.buildKey(UWSJob job,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Build the key for the map
UserLimitedBlockingPolicy.blockedThreads . |
void |
LimitedBlockingPolicy.unblocked(java.lang.Thread unblockedThread,
UWSJob job,
JobOwner user,
javax.servlet.http.HttpServletRequest request) |
void |
UserLimitedBlockingPolicy.unblocked(java.lang.Thread unblockedThread,
UWSJob job,
JobOwner user,
javax.servlet.http.HttpServletRequest request) |
void |
BlockingPolicy.unblocked(java.lang.Thread unblockedThread,
UWSJob job,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Notify this
BlockingPolicy that the given thread is not blocked
anymore. |