5 #ifndef CVMFS_RECEIVER_REACTOR_H_
6 #define CVMFS_RECEIVER_REACTOR_H_
17 class CommitProcessor;
18 class PayloadProcessor;
45 static bool ReadReply(
int fd, std::string* data);
46 static bool WriteReply(
int fd,
const std::string& data);
50 std::string *start_time);
65 virtual bool HandleCommit(
const std::string& req, std::string* reply);
81 #endif // CVMFS_RECEIVER_REACTOR_H_
virtual bool HandleCommit(const std::string &req, std::string *reply)
virtual CommitProcessor * MakeCommitProcessor()
virtual bool HandleCheckToken(const std::string &req, std::string *reply)
bool HandleRequest(Request req, const std::string &data)
virtual bool HandleGetTokenId(const std::string &req, std::string *reply)
static bool ReadReply(int fd, std::string *data)
virtual bool HandleGenerateToken(const std::string &req, std::string *reply)
static bool ExtractStatsFromReq(JsonDocument *req, perf::Statistics *stats, std::string *start_time)
static Request ReadRequest(int fd, std::string *data)
static bool WriteReply(int fd, const std::string &data)
virtual PayloadProcessor * MakePayloadProcessor()
virtual bool HandleSubmitPayload(int fdin, const std::string &req, std::string *reply)
static bool WriteRequest(int fd, Request req, const std::string &data)
Reactor(int fdin, int fdout)
std::map< std::string, perf::Statistics * > statistics_map_