use of org.apache.nifi.cluster.protocol.message.FlowResponseMessage in project nifi by apache.
the class StandardFlowService method handleFlowRequest.
private FlowResponseMessage handleFlowRequest(final FlowRequestMessage request) throws ProtocolException {
readLock.lock();
try {
logger.info("Received flow request message from manager.");
// create the response
final FlowResponseMessage response = new FlowResponseMessage();
response.setDataFlow(createDataFlowFromController());
return response;
} catch (final Exception ex) {
throw new ProtocolException("Failed serializing flow controller state for flow request due to: " + ex, ex);
} finally {
readLock.unlock();
}
}
Aggregations