|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.cnes.sitools.tasks.TaskUtils
public final class TaskUtils
Utils Class to run Tasks Synchronously or Asynchronously
| Field Summary | |
|---|---|
static java.lang.String |
BODY_CONTENT
THE BODY CONTENT |
static java.lang.String |
LOG_FOLDER
LOG FOLDER |
static java.lang.String |
PARENT_APPLICATION
PARENT_APPLICATION |
static java.lang.String |
SITOOLS_SETTINGS
SITOOLS_SETTINGS |
static java.lang.String |
TASK
Dataset_application |
| Method Summary | |
|---|---|
static org.restlet.representation.Representation |
execute(SitoolsParameterizedResource resource,
org.restlet.representation.Variant variant)
Execute a task described in the given resource It can be executed either synchronously or asynchronously depending on the runType request and Resource parameter |
static SitoolsParameterizedResource |
getDataSetApplication(org.restlet.Context context)
Gets the DataSetApplication contained in the Context |
static SitoolsSettings |
getSitoolsSettings(org.restlet.Context context)
Gets the DatabaseRequestParameters contained in the Context |
static Task |
getTask(org.restlet.Context context)
Gets the Task contained in the Context |
static java.lang.String |
getTimestampPattern()
Gets the timestamp pattern |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PARENT_APPLICATION
public static final java.lang.String TASK
public static final java.lang.String SITOOLS_SETTINGS
public static final java.lang.String LOG_FOLDER
public static final java.lang.String BODY_CONTENT
| Method Detail |
|---|
public static SitoolsParameterizedResource getDataSetApplication(org.restlet.Context context)
context - the Context
public static Task getTask(org.restlet.Context context)
context - the Context
public static SitoolsSettings getSitoolsSettings(org.restlet.Context context)
context - the Context
public static java.lang.String getTimestampPattern()
public static org.restlet.representation.Representation execute(SitoolsParameterizedResource resource,
org.restlet.representation.Variant variant)
resource - the resource describing the task to executevariant - the variant needed for the response
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||