Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3114780
D3516.id10643.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3516.id10643.diff
View Options
diff --git a/services/backup/docker-server/contents/server/src/Reactors/server/SendLogReactor.h b/services/backup/docker-server/contents/server/src/Reactors/server/SendLogReactor.h
new file mode 100644
--- /dev/null
+++ b/services/backup/docker-server/contents/server/src/Reactors/server/SendLogReactor.h
@@ -0,0 +1,43 @@
+#pragma once
+
+#include "ServerReadReactorBase.h"
+
+#include "../_generated/backup.grpc.pb.h"
+#include "../_generated/backup.pb.h"
+
+#include <iostream>
+#include <memory>
+#include <string>
+
+namespace comm {
+namespace network {
+namespace reactor {
+
+class SendLogReactor : public ServerReadReactorBase<
+ backup::SendLogRequest,
+ google::protobuf::Empty> {
+
+public:
+ using ServerReadReactorBase<backup::SendLogRequest, google::protobuf::Empty>::
+ ServerReadReactorBase;
+
+ std::unique_ptr<grpc::Status>
+ readRequest(backup::SendLogRequest request) override;
+ void doneCallback() override;
+};
+
+std::unique_ptr<grpc::Status>
+SendLogReactor::readRequest(backup::SendLogRequest request) {
+ std::cout << "here handle request log chunk " << request.logdata().size()
+ << std::endl;
+ return nullptr;
+}
+
+void SendLogReactor::doneCallback() {
+ std::cout << "receive logs done " << this->status.error_code() << "/"
+ << this->status.error_message() << std::endl;
+}
+
+} // namespace reactor
+} // namespace network
+} // namespace comm
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 1, 8:40 PM (22 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2401327
Default Alt Text
D3516.id10643.diff (1 KB)
Attached To
Mode
D3516: [services] Backup - Add server reactor implementations - send log reactor
Attached
Detach File
Event Timeline
Log In to Comment