Package org.labkey.remoteapi.di
Class ResetTransformStateCommand
java.lang.Object
org.labkey.remoteapi.Command<ResponseType,org.apache.hc.client5.http.classic.methods.HttpPost>
org.labkey.remoteapi.PostCommand<ResponseType>
org.labkey.remoteapi.di.BaseTransformCommand<ResetTransformStateResponse>
org.labkey.remoteapi.di.ResetTransformStateCommand
- All Implemented Interfaces:
HasRequiredVersion
Resets the stored state of an ETL, allowing it to be rerun from scratch by forgetting any retained last modified dates
or similar.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.labkey.remoteapi.Command
Command.CommonParameters, Command.Response
-
Field Summary
Fields inherited from class org.labkey.remoteapi.Command
CONTENT_TYPE_JSON
-
Constructor Summary
ConstructorsConstructorDescriptionResetTransformStateCommand
(String transformId) Reset an ETL transform to its initial state, as if it has never been run -
Method Summary
Modifier and TypeMethodDescriptionprotected ResetTransformStateResponse
createResponse
(String text, int status, String contentType, org.json.JSONObject json) Creates an instance of the response class, initialized with the response text, the HTTP status code, and parsed JSONObject.Methods inherited from class org.labkey.remoteapi.di.BaseTransformCommand
getJsonObject, getTransformId
Methods inherited from class org.labkey.remoteapi.PostCommand
createRequest
Methods inherited from class org.labkey.remoteapi.Command
_execute, createParameterMap, execute, getActionName, getControllerName, getHttpRequest, getParameters, getParamValueAsString, getRequiredVersion, getTimeout, setRequiredVersion, setTimeout
-
Constructor Details
-
ResetTransformStateCommand
Reset an ETL transform to its initial state, as if it has never been run- Parameters:
transformId
- the name of the transform to reset
-
-
Method Details
-
createResponse
protected ResetTransformStateResponse createResponse(String text, int status, String contentType, org.json.JSONObject json) Description copied from class:Command
Creates an instance of the response class, initialized with the response text, the HTTP status code, and parsed JSONObject.Override this method to create an instance of a different class that extends CommandResponse
- Overrides:
createResponse
in classCommand<ResetTransformStateResponse,
org.apache.hc.client5.http.classic.methods.HttpPost> - Parameters:
text
- The response text from the server.status
- The HTTP status code.contentType
- The Content-Type header value.json
- The parsed JSONObject (or null if no JSON was returned).- Returns:
- An instance of the response object.
-