use of org.apache.hop.core.row.RowBuffer in project hop by apache.
the class RemotePipelineEngine method retrieveComponentOutput.
@Override
public void retrieveComponentOutput(IVariables variables, String componentName, int copyNr, int nrRows, IPipelineComponentRowsReceived rowsReceived) throws HopException {
try {
Runnable runnable = () -> {
try {
String rowBufferXml = hopServer.sniffTransform(this, subject.getName(), componentName, containerId, "" + copyNr, nrRows, SniffTransformServlet.TYPE_OUTPUT);
Node rowBufferNode = XmlHandler.getSubNode(XmlHandler.loadXmlString(rowBufferXml), RowBuffer.XML_TAG);
if (rowBufferNode != null) {
RowBuffer rowBuffer = new RowBuffer(rowBufferNode);
rowsReceived.rowsReceived(RemotePipelineEngine.this, rowBuffer);
}
} catch (Exception e) {
throw new RuntimeException("Unable to get output rows from transform '" + componentName + "' in pipeline '" + subject.getName() + "' on server '" + hopServer.getName(), e);
}
};
new Thread(runnable).start();
} catch (Exception e) {
throw new HopException(e);
}
}
Aggregations