@ Override protected void shutDown ( ) throws Exception { long traceId = LoggerHelpers . traceEnterWithContext ( log , this . objectId , "shutDown" ) ; try { log . info ( "Stopping gRPC server listening on port: {}" , this . config . getPort ( ) ) ; this . server . shutdown ( ) ; log . info ( "Awaiting termination of gRPC server" ) ; this . server . awaitTermination ( ) ; log . info ( "gRPC server terminated" ) ; } finally { LoggerHelpers . traceLeave ( log , this . objectId , "shutDown" , traceId ) ; } }
Gracefully stop gRPC server .