2525 */
2626public final class NettyGrpcServer implements GrpcServer {
2727
28- private static final Log logger = LogFactory .getLog (NettyGrpcServer .class );
28+ private static final Log LOGGER = LogFactory .getLog (NettyGrpcServer .class );
2929
3030 private final Server server ;
3131
@@ -76,20 +76,20 @@ public NettyGrpcServer(final ChaincodeBase chaincodeBase, final ChaincodeServerP
7676 serverBuilder .sslContext (sslContextBuilder .build ());
7777 }
7878
79- logger .info ("<<<<<<<<<<<<<chaincodeServerProperties>>>>>>>>>>>>:\n " );
80- logger .info ("PortChaincodeServer:" + chaincodeServerProperties .getPortChaincodeServer ());
81- logger .info ("MaxInboundMetadataSize:" + chaincodeServerProperties .getMaxInboundMetadataSize ());
82- logger .info ("MaxInboundMessageSize:" + chaincodeServerProperties .getMaxInboundMessageSize ());
83- logger .info ("MaxConnectionAgeSeconds:" + chaincodeServerProperties .getMaxConnectionAgeSeconds ());
84- logger .info ("KeepAliveTimeoutSeconds:" + chaincodeServerProperties .getKeepAliveTimeoutSeconds ());
85- logger .info ("PermitKeepAliveTimeMinutes:" + chaincodeServerProperties .getPermitKeepAliveTimeMinutes ());
86- logger .info ("KeepAliveTimeMinutes:" + chaincodeServerProperties .getKeepAliveTimeMinutes ());
87- logger .info ("PermitKeepAliveWithoutCalls:" + chaincodeServerProperties .getPermitKeepAliveWithoutCalls ());
88- logger .info ("KeyPassword:" + chaincodeServerProperties .getKeyPassword ());
89- logger .info ("KeyCertChainFile:" + chaincodeServerProperties .getKeyCertChainFile ());
90- logger .info ("KeyFile:" + chaincodeServerProperties .getKeyFile ());
91- logger .info ("isTlsEnabled:" + chaincodeServerProperties .isTlsEnabled ());
92- logger .info ("\n " );
79+ LOGGER .info ("<<<<<<<<<<<<<chaincodeServerProperties>>>>>>>>>>>>:\n " );
80+ LOGGER .info ("PortChaincodeServer:" + chaincodeServerProperties .getPortChaincodeServer ());
81+ LOGGER .info ("MaxInboundMetadataSize:" + chaincodeServerProperties .getMaxInboundMetadataSize ());
82+ LOGGER .info ("MaxInboundMessageSize:" + chaincodeServerProperties .getMaxInboundMessageSize ());
83+ LOGGER .info ("MaxConnectionAgeSeconds:" + chaincodeServerProperties .getMaxConnectionAgeSeconds ());
84+ LOGGER .info ("KeepAliveTimeoutSeconds:" + chaincodeServerProperties .getKeepAliveTimeoutSeconds ());
85+ LOGGER .info ("PermitKeepAliveTimeMinutes:" + chaincodeServerProperties .getPermitKeepAliveTimeMinutes ());
86+ LOGGER .info ("KeepAliveTimeMinutes:" + chaincodeServerProperties .getKeepAliveTimeMinutes ());
87+ LOGGER .info ("PermitKeepAliveWithoutCalls:" + chaincodeServerProperties .getPermitKeepAliveWithoutCalls ());
88+ LOGGER .info ("KeyPassword:" + chaincodeServerProperties .getKeyPassword ());
89+ LOGGER .info ("KeyCertChainFile:" + chaincodeServerProperties .getKeyCertChainFile ());
90+ LOGGER .info ("KeyFile:" + chaincodeServerProperties .getKeyFile ());
91+ LOGGER .info ("isTlsEnabled:" + chaincodeServerProperties .isTlsEnabled ());
92+ LOGGER .info ("\n " );
9393
9494 this .server = serverBuilder .build ();
9595 }
@@ -100,7 +100,7 @@ public NettyGrpcServer(final ChaincodeBase chaincodeBase, final ChaincodeServerP
100100 * @throws IOException
101101 */
102102 public void start () throws IOException {
103- logger .info ("start grpc server" );
103+ LOGGER .info ("start grpc server" );
104104 Runtime .getRuntime ()
105105 .addShutdownHook (
106106 new Thread (() -> {
@@ -118,15 +118,15 @@ public void start() throws IOException {
118118 * @throws InterruptedException
119119 */
120120 public void blockUntilShutdown () throws InterruptedException {
121- logger .info ("Waits for the server to become terminated." );
121+ LOGGER .info ("Waits for the server to become terminated." );
122122 server .awaitTermination ();
123123 }
124124
125125 /**
126126 * shutdown now grpc server.
127127 */
128128 public void stop () {
129- logger .info ("shutdown now grpc server." );
129+ LOGGER .info ("shutdown now grpc server." );
130130 server .shutdownNow ();
131131 }
132132}
0 commit comments