use of co.cask.cdap.common.internal.remote.MethodArgument in project cdap by caskdata.
the class RemoteRuntimeStoreHandler method addWorkflowNodeState.
@POST
@Path("/addWorkflowNodeState")
public void addWorkflowNodeState(HttpRequest request, HttpResponder responder) throws Exception {
Iterator<MethodArgument> arguments = parseArguments(request);
ProgramRunId workflowRunId = deserializeNext(arguments);
WorkflowNodeStateDetail nodeStateDetail = deserializeNext(arguments);
store.addWorkflowNodeState(workflowRunId, nodeStateDetail);
responder.sendStatus(HttpResponseStatus.OK);
}
use of co.cask.cdap.common.internal.remote.MethodArgument in project cdap by caskdata.
the class RemoteRuntimeStoreHandler method setSuspend.
@POST
@Path("/setSuspend")
public void setSuspend(HttpRequest request, HttpResponder responder) throws Exception {
Iterator<MethodArgument> arguments = parseArguments(request);
ProgramId program = deserializeNext(arguments);
String pid = deserializeNext(arguments);
store.setSuspend(program, pid);
responder.sendStatus(HttpResponseStatus.OK);
}
use of co.cask.cdap.common.internal.remote.MethodArgument in project cdap by caskdata.
the class RemoteRuntimeStoreHandler method setResume.
@POST
@Path("/setResume")
public void setResume(HttpRequest request, HttpResponder responder) throws Exception {
Iterator<MethodArgument> arguments = parseArguments(request);
ProgramId program = deserializeNext(arguments);
String pid = deserializeNext(arguments);
store.setResume(program, pid);
responder.sendStatus(HttpResponseStatus.OK);
}
use of co.cask.cdap.common.internal.remote.MethodArgument in project cdap by caskdata.
the class RemoteRuntimeStoreHandler method updateWorkflowToken.
@POST
@Path("/updateWorkflowToken")
public void updateWorkflowToken(HttpRequest request, HttpResponder responder) throws Exception {
Iterator<MethodArgument> arguments = parseArguments(request);
ProgramRunId workflowRunId = deserializeNext(arguments);
WorkflowToken token = deserializeNext(arguments);
store.updateWorkflowToken(workflowRunId, token);
responder.sendStatus(HttpResponseStatus.OK);
}
use of co.cask.cdap.common.internal.remote.MethodArgument in project cdap by caskdata.
the class RemoteLineageWriterHandler method addStreamAccess.
@POST
@Path("/addStreamAccess")
public void addStreamAccess(HttpRequest request, HttpResponder responder) throws Exception {
Iterator<MethodArgument> arguments = parseArguments(request);
ProgramRunId run = deserializeNext(arguments);
StreamId stream = deserializeNext(arguments);
AccessType accessType = deserializeNext(arguments);
NamespacedEntityId component = deserializeNext(arguments);
lineageWriter.addAccess(run, stream, accessType, component);
responder.sendStatus(HttpResponseStatus.OK);
}
Aggregations