19#ifndef ICEFLOW_NODE_EXECUTOR_SERVICE_H
20#define ICEFLOW_NODE_EXECUTOR_SERVICE_H
24#include "node-executor.grpc.pb.h"
25#include "node-executor.pb.h"
28#include <grpcpp/server_builder.h>
30#include "executor.hpp"
34class NodeExecutorService final :
public NodeExecutor::Service {
36 explicit NodeExecutorService(std::weak_ptr<IceflowExecutor> executor);
39 virtual grpc::Status ReportCongestion(grpc::ServerContext *context,
40 const CongestionReportRequest *request,
41 CongestionReportResponse *response);
44 std::weak_ptr<IceflowExecutor> m_executor;