diff --git a/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp b/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp index fa359a4b4..d7fa77ada 100644 --- a/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp +++ b/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp @@ -1,47 +1,48 @@ #include "BackupServiceImpl.h" #include namespace comm { namespace network { BackupServiceImpl::BackupServiceImpl() { Aws::InitAPI({}); } BackupServiceImpl::~BackupServiceImpl() { Aws::ShutdownAPI({}); } -/* + grpc::Status BackupServiceImpl::CreateNewBackup( grpc::ServerContext *context, - grpc::ServerReader *reader, - google::protobuf::Empty *response) { + grpc::ServerReaderWriter< + backup::CreateNewBackupResponse, + backup::CreateNewBackupRequest> *stream) { return grpc::Status(grpc::StatusCode::UNIMPLEMENTED, "not implemented yet"); } grpc::Status BackupServiceImpl::SendLog( grpc::ServerContext *context, grpc::ServerReader *reader, google::protobuf::Empty *response) { return grpc::Status(grpc::StatusCode::UNIMPLEMENTED, "not implemented yet"); } -grpc::Status BackupServiceImpl::PullBackupKey( +grpc::Status BackupServiceImpl::RecoverBackupKey( grpc::ServerContext *context, grpc::ServerReaderWriter< - backup::PullBackupKeyResponse, - backup::PullBackupKeyRequest> *stream) { + backup::RecoverBackupKeyResponse, + backup::RecoverBackupKeyRequest> *stream) { return grpc::Status(grpc::StatusCode::UNIMPLEMENTED, "not implemented yet"); } -grpc::Status BackupServiceImpl::PullCompaction( +grpc::Status BackupServiceImpl::PullBackup( grpc::ServerContext *context, grpc::ServerReaderWriter< - backup::PullCompactionResponse, - backup::PullCompactionRequest> *stream) { + backup::PullBackupResponse, + backup::PullBackupRequest> *stream) { return grpc::Status(grpc::StatusCode::UNIMPLEMENTED, "not implemented yet"); } -*/ + } // namespace network } // namespace comm diff --git a/services/backup/docker-server/contents/server/src/BackupServiceImpl.h b/services/backup/docker-server/contents/server/src/BackupServiceImpl.h index ced18abbb..3be780b8d 100644 --- a/services/backup/docker-server/contents/server/src/BackupServiceImpl.h +++ b/services/backup/docker-server/contents/server/src/BackupServiceImpl.h @@ -1,39 +1,39 @@ #pragma once #include "../_generated/backup.grpc.pb.h" #include "../_generated/backup.pb.h" #include namespace comm { namespace network { class BackupServiceImpl final : public backup::BackupService::Service { public: BackupServiceImpl(); virtual ~BackupServiceImpl(); - /* - grpc::Status CreateNewBackup( - grpc::ServerContext *context, - grpc::ServerReader *reader, - google::protobuf::Empty *response) override; - grpc::Status SendLog( - grpc::ServerContext *context, - grpc::ServerReader *reader, - google::protobuf::Empty *response) override; - grpc::Status PullBackupKey( - grpc::ServerContext *context, - grpc::ServerReaderWriter< - backup::PullBackupKeyResponse, - backup::PullBackupKeyRequest> *stream) override; - grpc::Status PullCompaction( - grpc::ServerContext *context, - grpc::ServerReaderWriter< - backup::PullCompactionResponse, - backup::PullCompactionRequest> *stream) override; - */ + + grpc::Status CreateNewBackup( + grpc::ServerContext *context, + grpc::ServerReaderWriter< + backup::CreateNewBackupResponse, + backup::CreateNewBackupRequest> *stream) override; + grpc::Status SendLog( + grpc::ServerContext *context, + grpc::ServerReader *reader, + google::protobuf::Empty *response) override; + grpc::Status RecoverBackupKey( + grpc::ServerContext *context, + grpc::ServerReaderWriter< + backup::RecoverBackupKeyResponse, + backup::RecoverBackupKeyRequest> *stream) override; + grpc::Status PullBackup( + grpc::ServerContext *context, + grpc::ServerReaderWriter< + backup::PullBackupResponse, + backup::PullBackupRequest> *stream) override; }; } // namespace network } // namespace comm