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

Method process

extensions/sftp/processors/FetchSFTP.cpp:160–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158FetchSFTP::WriteCallback::~WriteCallback() = default;
159
160int64_t FetchSFTP::WriteCallback::process(const std::shared_ptr<io::BaseStream>& stream) {
161 if (!client_.getFile(remote_file_, *stream)) {
162 throw utils::SFTPException{client_.getLastError()};
163 }
164 return stream->size();
165}
166
167void FetchSFTP::onTrigger(const std::shared_ptr<core::ProcessContext> &context, const std::shared_ptr<core::ProcessSession> &session) {
168 auto flow_file = session->get();

Callers

nothing calls this directly

Calls 3

getFileMethod · 0.80
getLastErrorMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected