@@ -374,12 +374,12 @@ public void resolve_resourceNewlyAdded() {
374
374
}
375
375
376
376
/**
377
- * Builds an LDS DiscoveryResponse containing the mapping of given host name (with port if any)
378
- * to the given cluster name directly in-line. Clients receiving this response is able to
379
- * resolve cluster name for the given hostname:port immediately.
377
+ * Builds an LDS DiscoveryResponse containing the mapping of given host name (with port if any) to
378
+ * the given cluster name directly in-line. Clients receiving this response is able to resolve
379
+ * cluster name for the given hostname:port immediately.
380
380
*/
381
- private DiscoveryResponse buildLdsResponseForCluster (String versionInfo ,
382
- String hostName , int port , String clusterName , String nonce ) {
381
+ private static DiscoveryResponse buildLdsResponseForCluster (
382
+ String versionInfo , String hostName , int port , String clusterName , String nonce ) {
383
383
String ldsResourceName = port == -1 ? hostName : hostName + ":" + port ;
384
384
List <Any > listeners = ImmutableList .of (
385
385
Any .pack (buildListener (ldsResourceName ,
@@ -396,12 +396,12 @@ private DiscoveryResponse buildLdsResponseForCluster(String versionInfo,
396
396
}
397
397
398
398
/**
399
- * Builds an LDS DiscoveryResponse containing the mapping of given host name (with port if any)
400
- * to the given RDS resource name. Clients receiving this response is able to send an RDS
401
- * request for resolving the cluster name for the given hostname:port.
399
+ * Builds an LDS DiscoveryResponse containing the mapping of given host name (with port if any) to
400
+ * the given RDS resource name. Clients receiving this response is able to send an RDS request for
401
+ * resolving the cluster name for the given hostname:port.
402
402
*/
403
- private DiscoveryResponse buildLdsResponseForRdsResource (String versionInfo ,
404
- String hostName , int port , String routeConfigName , String nonce ) {
403
+ private static DiscoveryResponse buildLdsResponseForRdsResource (
404
+ String versionInfo , String hostName , int port , String routeConfigName , String nonce ) {
405
405
String ldsResourceName = port == -1 ? hostName : hostName + ":" + port ;
406
406
Rds rdsConfig =
407
407
Rds .newBuilder ()
@@ -418,11 +418,15 @@ private DiscoveryResponse buildLdsResponseForRdsResource(String versionInfo,
418
418
}
419
419
420
420
/**
421
- * Builds an RDS DiscoveryResponse containing the mapping of given route config name to the
422
- * given cluster name under.
421
+ * Builds an RDS DiscoveryResponse containing the mapping of given route config name to the given
422
+ * cluster name under.
423
423
*/
424
- private DiscoveryResponse buildRdsResponseForCluster (String versionInfo ,
425
- String routeConfigName , String hostName , String clusterName , String nonce ) {
424
+ private static DiscoveryResponse buildRdsResponseForCluster (
425
+ String versionInfo ,
426
+ String routeConfigName ,
427
+ String hostName ,
428
+ String clusterName ,
429
+ String nonce ) {
426
430
List <Any > routeConfigs = ImmutableList .of (
427
431
Any .pack (
428
432
buildRouteConfiguration (
0 commit comments