public class ParamsHelper extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ParamsHelper.Acquirer
Interface added in order to allow ParamHelper instances to use methods
from SharedResourcesI.
|
Constructor and Description |
---|
ParamsHelper(ParamsHelper.Acquirer acq,
Executor ex,
Principal p) |
Modifier and Type | Method and Description |
---|---|
omero.model.ParseJobI |
buildParseJob(long id)
Build a job for the script with id.
|
omero.grid.JobParams |
generateScriptParams(long id,
boolean save,
Ice.Current __current)
Acquires an
InteractiveProcessorPrx and runs a ParseJob . |
omero.grid.JobParams |
getOrCreateParams(long id,
Ice.Current __current)
Get the script params for the file.
|
public ParamsHelper(ParamsHelper.Acquirer acq, Executor ex, Principal p)
public omero.model.ParseJobI buildParseJob(long id) throws omero.ServerError
id
- script id.omero.ServerError
- if the job could not be built for the scriptpublic omero.grid.JobParams getOrCreateParams(long id, Ice.Current __current) throws omero.ServerError
id
- the ID of the script__current
- regarding the method invocationomero.ServerError
- if the params could not be retrieved or createdpublic omero.grid.JobParams generateScriptParams(long id, boolean save, Ice.Current __current) throws omero.ServerError
InteractiveProcessorPrx
and runs a ParseJob
.
If the "save" argument is true, then the JobParams
instance will
be saved to the database; otherwise, the ParseJob
will be deleted.omero.ServerError
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.