use of co.cask.cdap.proto.ProgramRunStatus in project cdap by caskdata.
the class RemoteRuntimeStoreHandler method setStop.
@POST
@Path("/setStop")
public void setStop(HttpRequest request, HttpResponder responder) throws Exception {
Iterator<MethodArgument> arguments = parseArguments(request);
ProgramId program = deserializeNext(arguments);
String pid = deserializeNext(arguments);
long endTime = deserializeNext(arguments);
ProgramRunStatus runStatus = deserializeNext(arguments);
BasicThrowable failureCause = deserializeNext(arguments);
store.setStop(program, pid, endTime, runStatus, failureCause);
responder.sendStatus(HttpResponseStatus.OK);
}
Aggregations