Class GRpcHeartBeatServiceImpl
java.lang.Object
com.netflix.genie.proto.HeartBeatServiceGrpc.HeartBeatServiceImplBase
com.netflix.genie.web.agent.apis.rpc.v4.endpoints.GRpcHeartBeatServiceImpl
- All Implemented Interfaces:
 io.grpc.BindableService
public class GRpcHeartBeatServiceImpl
extends com.netflix.genie.proto.HeartBeatServiceGrpc.HeartBeatServiceImplBase
An edge gRPC service that uses bi-directional streaming.
 This is useful to reliably track which connection is handled by which server and to detect disconnections on both
 ends.
- Since:
 - 4.0.0
 
- 
Constructor Summary
ConstructorsConstructorDescriptionGRpcHeartBeatServiceImpl(AgentConnectionTrackingService agentConnectionTrackingService, HeartBeatProperties properties, org.springframework.scheduling.TaskScheduler taskScheduler, io.micrometer.core.instrument.MeterRegistry registry) Constructor. - 
Method Summary
Methods inherited from class com.netflix.genie.proto.HeartBeatServiceGrpc.HeartBeatServiceImplBase
bindService 
- 
Constructor Details
- 
GRpcHeartBeatServiceImpl
public GRpcHeartBeatServiceImpl(AgentConnectionTrackingService agentConnectionTrackingService, HeartBeatProperties properties, org.springframework.scheduling.TaskScheduler taskScheduler, io.micrometer.core.instrument.MeterRegistry registry) Constructor.- Parameters:
 agentConnectionTrackingService- TheAgentRoutingServiceimplementation to useproperties- The service propertiestaskScheduler- TheTaskSchedulerinstance to useregistry- The meter registry
 
 - 
 - 
Method Details
- 
shutdown
@PreDestroy public void shutdown()Shutdown this service. - 
heartbeat
public io.grpc.stub.StreamObserver<com.netflix.genie.proto.AgentHeartBeat> heartbeat(io.grpc.stub.StreamObserver<com.netflix.genie.proto.ServerHeartBeat> responseObserver) - Overrides:
 heartbeatin classcom.netflix.genie.proto.HeartBeatServiceGrpc.HeartBeatServiceImplBase
 
 -