public abstract class RemoteAssessmentTaskBase extends Object implements io.cdap.cdap.api.service.worker.RunnableTask
RunnableTask for assessment handling| Modifier and Type | Field and Description |
|---|---|
protected static com.google.gson.Gson |
GSON |
| Constructor and Description |
|---|
RemoteAssessmentTaskBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
execute(io.cdap.cdap.api.service.worker.SystemAppTaskContext systemAppContext,
RemoteAssessmentRequest request)
execute method for specific tasks to implement
|
protected Assessor |
getAssessor() |
protected DefaultConfigurer |
getConfigurer(io.cdap.cdap.api.service.worker.SystemAppTaskContext systemAppContext,
String namespace) |
void |
run(io.cdap.cdap.api.service.worker.RunnableTaskContext context) |
public void run(io.cdap.cdap.api.service.worker.RunnableTaskContext context)
throws Exception
run in interface io.cdap.cdap.api.service.worker.RunnableTaskExceptionprotected abstract String execute(io.cdap.cdap.api.service.worker.SystemAppTaskContext systemAppContext, RemoteAssessmentRequest request) throws Exception
systemAppContext - SystemAppTaskContextrequest - RemoteAssessmentRequestExceptionprotected DefaultConfigurer getConfigurer(io.cdap.cdap.api.service.worker.SystemAppTaskContext systemAppContext, String namespace)
protected Assessor getAssessor()
Copyright © 2023 CDAP Licensed under the Apache License, Version 2.0.