[
https://issues.apache.org/jira/browse/RATIS-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17887148#comment-17887148
]
Tsz-wo Sze commented on RATIS-2168:
-----------------------------------
The code should be very similar to the code for passing TlsConf.
{code}
//GrpcConfigKeys
String CONF_PARAMETER = PREFIX + ".conf";
Class<GrpcTlsConfig> CONF_CLASS = GrpcTlsConfig.class;
static GrpcTlsConfig conf(Parameters parameters) {
return parameters != null ? parameters.get(CONF_PARAMETER, CONF_CLASS):
null;
}
static void setConf(Parameters parameters, GrpcTlsConfig conf) {
parameters.put(CONF_PARAMETER, conf, GrpcTlsConfig.class);
}
{code}
> Support custom gRPC services
> ----------------------------
>
> Key: RATIS-2168
> URL: https://issues.apache.org/jira/browse/RATIS-2168
> Project: Ratis
> Issue Type: New Feature
> Components: gRPC
> Reporter: Tsz-wo Sze
> Priority: Major
>
> Anish has proposed the following interesting idea in the user@ mailing list:
> bq. Is it possible to add custom GRPC functionality lets say a custom service
> HelloWorldService to Ratis GRPC server ? Basically I need to add some extra
> endpoint for GRPC but want to run Ratis Raft and custom service in same
> server and same port.
> - https://lists.apache.org/thread/rh8mrym0bvd7dg3mbpy745qocy8q9dv8
--
This message was sent by Atlassian Jira
(v8.20.10#820010)