MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / process

Method process

extensions/sftp/processors/PutSFTP.cpp:213–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211PutSFTP::ReadCallback::~ReadCallback() = default;
212
213int64_t PutSFTP::ReadCallback::process(const std::shared_ptr<io::BaseStream>& stream) {
214 if (!client_.putFile(target_path_,
215 *stream,
216 conflict_resolution_ == CONFLICT_RESOLUTION_REPLACE /*overwrite*/,
217 stream->size() /*expected_size*/)) {
218 throw utils::SFTPException{client_.getLastError()};
219 }
220 return stream->size();
221}
222
223bool PutSFTP::processOne(const std::shared_ptr<core::ProcessContext> &context, const std::shared_ptr<core::ProcessSession> &session) {
224 auto flow_file = session->get();

Callers

nothing calls this directly

Calls 3

getLastErrorMethod · 0.80
putFileMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected