Search in sources :

Example 1 with StramToNodeStartRecordingRequest

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);
    }
}
Also used : PTOperator(com.datatorrent.stram.plan.physical.PTOperator) StramToNodeStartRecordingRequest(com.datatorrent.stram.api.StramToNodeStartRecordingRequest)

Aggregations

StramToNodeStartRecordingRequest (com.datatorrent.stram.api.StramToNodeStartRecordingRequest)1 PTOperator (com.datatorrent.stram.plan.physical.PTOperator)1