Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/grpc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# Copyright 2023-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -67,6 +67,7 @@ target_link_libraries(
triton-common-json # from repo-common
grpc-health-library # from repo-common
grpc-service-library # from repo-common
grpccallback-service-library # from repo-common
triton-core-serverapi # from repo-core
triton-core-serverstub # from repo-core
gRPC::grpc++
Expand Down
19 changes: 18 additions & 1 deletion src/grpc/grpc_handler.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// Copyright 2023-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
Expand All @@ -25,14 +25,31 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#pragma once

#include <grpc++/grpc++.h>

#include <string>

#include "grpc_service.grpc.pb.h"
#include "grpccallback_service.grpc.pb.h"
#include "health.grpc.pb.h"

namespace triton { namespace server { namespace grpc {
class HandlerBase {
public:
virtual ~HandlerBase() = default;
virtual void Start() = 0;
virtual void Stop() = 0;
virtual inference::GRPCInferenceServiceCallback::CallbackService*
GetUnifiedCallbackService()
{
return nullptr;
}

virtual ::grpc::health::v1::Health::CallbackService*
GetHealthCallbackService()
{
return nullptr;
}
};

class ICallData {
Expand Down
Loading
Loading