use of com.datatorrent.stram.api.StramToNodeStartRecordingRequest in project apex-core by apache.
the class StreamingContainerManager method startRecording.
public void startRecording(String id, int operId, String portName, long numWindows) {
StreamingContainerAgent sca = getContainerAgentFromOperatorId(operId);
StramToNodeStartRecordingRequest request = new StramToNodeStartRecordingRequest();
request.setOperatorId(operId);
if (!StringUtils.isBlank(portName)) {
request.setPortName(portName);
}
request.setNumWindows(numWindows);
request.setId(id);
sca.addOperatorRequest(request);
PTOperator operator = plan.getAllOperators().get(operId);
if (operator != null) {
// restart on deploy
updateOnDeployRequests(operator, new RecordingRequestFilter(), request);
}
}
Aggregations