Interface GrpcChannelService

All Known Implementing Classes:
GrpcChannelServiceImpl

@Internal public interface GrpcChannelService
The API used for gRPC connectivity and providing Bamboo instance state dependent additions.
Since:
9.5
  • Method Details

    • getServerCredentials

      @NotNull @NotNull io.grpc.ServerCredentials getServerCredentials()
      Generate ServerCredentials to be used with gRPC server when authentication is enabled.
      Returns:
      ServerCredentials with mutual TLS configured
    • createClientChannel

      @NotNull @NotNull io.grpc.ManagedChannel createClientChannel(String hostName, int port, Executor executor)
      Create client channel respecting SystemProperty.BAMBOO_GRPC_AUTHENTICATION_ENABLED setting.
      Parameters:
      hostName - hostname to which the client will connect to
      port - port to which the client will connect to
      executor - executor used with this client
      Returns:
      managed channel