@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)
Provide a lazy
ManagedChannel bean if none was already defined for communicating with the Genie server. |
com.netflix.genie.agent.rpc.ChannelLoggingInterceptor |
channelLoggingInterceptor()
Provide a lazy
ChannelLoggingInterceptor bean. |
com.netflix.genie.proto.FileStreamServiceGrpc.FileStreamServiceStub |
fileStreamClient(io.grpc.ManagedChannel channel)
Provide a prototype bean definition for a
FileStreamServiceGrpc.FileStreamServiceStub . |
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 public com.netflix.genie.agent.rpc.ChannelLoggingInterceptor channelLoggingInterceptor()
ChannelLoggingInterceptor
bean.ChannelLoggingInterceptor
instance@Bean @Lazy @ConditionalOnMissingBean(value=io.grpc.ManagedChannel.class) public io.grpc.ManagedChannel channel(ArgumentDelegates.ServerArguments serverArguments)
ManagedChannel
bean if none was already defined for communicating with the Genie server.serverArguments
- The server arguments to useManagedChannel
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