@Configuration
public class GRpcAutoConfiguration
extends java.lang.Object
Constructor and Description |
---|
GRpcAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
io.grpc.ManagedChannel |
channel(ArgumentDelegates.ServerArguments serverArguments,
java.util.List<io.grpc.ClientInterceptor> clientInterceptors)
Provide a lazy
ManagedChannel bean if none was already defined for communicating with the Genie server. |
com.netflix.genie.proto.FileStreamServiceGrpc.FileStreamServiceStub |
fileStreamClient(io.grpc.ManagedChannel channel)
Provide a prototype bean definition for a
FileStreamServiceGrpc.FileStreamServiceStub . |
io.grpc.ClientInterceptor |
genieGrpcTracingClientInterceptor(brave.Tracing tracing)
Provide a
ClientInterceptor which adds tracing information to gRPC calls. |
com.netflix.genie.proto.HeartBeatServiceGrpc.HeartBeatServiceStub |
heartBeatClient(io.grpc.ManagedChannel channel)
Provide a prototype bean definition for a
HeartBeatServiceGrpc.HeartBeatServiceStub . |
com.netflix.genie.proto.JobServiceGrpc.JobServiceFutureStub |
jobClient(io.grpc.ManagedChannel channel)
Provide a prototype bean definition for a
JobServiceGrpc.JobServiceFutureStub . |
com.netflix.genie.proto.JobKillServiceGrpc.JobKillServiceFutureStub |
jobKillClient(io.grpc.ManagedChannel channel)
Provide a prototype bean definition for a
JobKillServiceGrpc.JobKillServiceFutureStub . |
com.netflix.genie.proto.PingServiceGrpc.PingServiceFutureStub |
pingServiceClient(io.grpc.ManagedChannel channel)
Provide a prototype bean definition for a
PingServiceGrpc.PingServiceFutureStub . |
@Bean @Lazy @ConditionalOnMissingBean(value=io.grpc.ManagedChannel.class) public io.grpc.ManagedChannel channel(ArgumentDelegates.ServerArguments serverArguments, java.util.List<io.grpc.ClientInterceptor> clientInterceptors)
ManagedChannel
bean if none was already defined for communicating with the Genie server.serverArguments
- The server arguments to useclientInterceptors
- The list of available client interceptors that should be added to the generated channelManagedChannel
instance configured to use plain text over the wire@Bean @Scope(value="prototype") public com.netflix.genie.proto.PingServiceGrpc.PingServiceFutureStub pingServiceClient(io.grpc.ManagedChannel channel)
PingServiceGrpc.PingServiceFutureStub
.channel
- The managed channel to use to connect to the Genie serverPingServiceGrpc.PingServiceFutureStub
instance per use@Bean @Scope(value="prototype") public com.netflix.genie.proto.JobServiceGrpc.JobServiceFutureStub jobClient(io.grpc.ManagedChannel channel)
JobServiceGrpc.JobServiceFutureStub
.channel
- The managed channel to use to connect to the Genie serverJobServiceGrpc.JobServiceFutureStub
instance per use@Bean @Scope(value="prototype") public com.netflix.genie.proto.HeartBeatServiceGrpc.HeartBeatServiceStub heartBeatClient(io.grpc.ManagedChannel channel)
HeartBeatServiceGrpc.HeartBeatServiceStub
.channel
- The managed channel to use to connect to the Genie serverHeartBeatServiceGrpc.HeartBeatServiceStub
instance per use@Bean @Scope(value="prototype") public com.netflix.genie.proto.JobKillServiceGrpc.JobKillServiceFutureStub jobKillClient(io.grpc.ManagedChannel channel)
JobKillServiceGrpc.JobKillServiceFutureStub
.channel
- The managed channel to use to connect to the Genie serverJobKillServiceGrpc.JobKillServiceFutureStub
instance per use@Bean @Scope(value="prototype") public com.netflix.genie.proto.FileStreamServiceGrpc.FileStreamServiceStub fileStreamClient(io.grpc.ManagedChannel channel)
FileStreamServiceGrpc.FileStreamServiceStub
.channel
- The managed channel to use to connect to the Genie serverFileStreamServiceGrpc.FileStreamServiceStub
instance per use@Bean @ConditionalOnMissingBean(name="genieGrpcTracingClientInterceptor") @Lazy public io.grpc.ClientInterceptor genieGrpcTracingClientInterceptor(brave.Tracing tracing)
ClientInterceptor
which adds tracing information to gRPC calls.tracing
- The Brave Tracing
instanceClientInterceptor
for trace propagation