@@ -687,7 +687,7 @@ public static NodeStats createNodeStats() {
687687
688688 ShardId shardId = new ShardId (indexTest , 0 );
689689 ShardStats shardStat = createShardStats (shardId );
690- IndexShardStats shardStats = new IndexShardStats (shardId , new ShardStats []{ shardStat });
690+ IndexShardStats shardStats = new IndexShardStats (shardId , new ShardStats [] { shardStat });
691691 Map <Index , List <IndexShardStats >> statsByShard = new HashMap <>();
692692 List <IndexShardStats > indexShardStats = new ArrayList <>();
693693 indexShardStats .add (shardStats );
@@ -729,12 +729,12 @@ public static NodeStats createNodeStats() {
729729 }
730730 ProcessStats processStats = frequently ()
731731 ? new ProcessStats (
732- randomNonNegativeLong (),
733- randomNonNegativeLong (),
734- randomNonNegativeLong (),
735- new ProcessStats .Cpu (randomShort (), randomNonNegativeLong ()),
736- new ProcessStats .Mem (randomNonNegativeLong ())
737- )
732+ randomNonNegativeLong (),
733+ randomNonNegativeLong (),
734+ randomNonNegativeLong (),
735+ new ProcessStats .Cpu (randomShort (), randomNonNegativeLong ()),
736+ new ProcessStats .Mem (randomNonNegativeLong ())
737+ )
738738 : null ;
739739 JvmStats jvmStats = null ;
740740 if (frequently ()) {
@@ -777,21 +777,21 @@ public static NodeStats createNodeStats() {
777777 JvmStats .Classes classes = new JvmStats .Classes (randomNonNegativeLong (), randomNonNegativeLong (), randomNonNegativeLong ());
778778 jvmStats = frequently ()
779779 ? new JvmStats (
780- randomNonNegativeLong (),
781- randomNonNegativeLong (),
782- new JvmStats .Mem (
783- randomNonNegativeLong (),
784780 randomNonNegativeLong (),
785781 randomNonNegativeLong (),
786- randomNonNegativeLong (),
787- randomNonNegativeLong (),
788- memoryPools
789- ),
790- threads ,
791- garbageCollectors ,
792- randomBoolean () ? Collections .emptyList () : bufferPoolList ,
793- classes
794- )
782+ new JvmStats .Mem (
783+ randomNonNegativeLong (),
784+ randomNonNegativeLong (),
785+ randomNonNegativeLong (),
786+ randomNonNegativeLong (),
787+ randomNonNegativeLong (),
788+ memoryPools
789+ ),
790+ threads ,
791+ garbageCollectors ,
792+ randomBoolean () ? Collections .emptyList () : bufferPoolList ,
793+ classes
794+ )
795795 : null ;
796796 }
797797 ThreadPoolStats threadPoolStats = null ;
@@ -808,16 +808,16 @@ public static NodeStats createNodeStats() {
808808 FsInfo .DeviceStats previousDeviceStats = randomBoolean ()
809809 ? null
810810 : new FsInfo .DeviceStats (
811- randomInt (),
812- randomInt (),
813- randomAlphaOfLengthBetween (3 , 10 ),
814- randomNonNegativeLong (),
815- randomNonNegativeLong (),
816- randomNonNegativeLong (),
817- randomNonNegativeLong (),
818- randomNonNegativeLong (),
819- null
820- );
811+ randomInt (),
812+ randomInt (),
813+ randomAlphaOfLengthBetween (3 , 10 ),
814+ randomNonNegativeLong (),
815+ randomNonNegativeLong (),
816+ randomNonNegativeLong (),
817+ randomNonNegativeLong (),
818+ randomNonNegativeLong (),
819+ null
820+ );
821821 deviceStatsArray [i ] = new FsInfo .DeviceStats (
822822 randomInt (),
823823 randomInt (),
@@ -846,16 +846,16 @@ public static NodeStats createNodeStats() {
846846 }
847847 TransportStats transportStats = frequently ()
848848 ? new TransportStats (
849- randomNonNegativeLong (),
850- randomNonNegativeLong (),
851- randomNonNegativeLong (),
852- randomNonNegativeLong (),
853- randomNonNegativeLong (),
854- randomNonNegativeLong (),
855- IntStream .range (0 , HandlingTimeTracker .BUCKET_COUNT ).mapToLong (i -> randomNonNegativeLong ()).toArray (),
856- IntStream .range (0 , HandlingTimeTracker .BUCKET_COUNT ).mapToLong (i -> randomNonNegativeLong ()).toArray (),
857- Map .of ("test-action" , new TransportActionStats (1 , 2 , new long [29 ], 3 , 4 , new long [29 ]))
858- )
849+ randomNonNegativeLong (),
850+ randomNonNegativeLong (),
851+ randomNonNegativeLong (),
852+ randomNonNegativeLong (),
853+ randomNonNegativeLong (),
854+ randomNonNegativeLong (),
855+ IntStream .range (0 , HandlingTimeTracker .BUCKET_COUNT ).mapToLong (i -> randomNonNegativeLong ()).toArray (),
856+ IntStream .range (0 , HandlingTimeTracker .BUCKET_COUNT ).mapToLong (i -> randomNonNegativeLong ()).toArray (),
857+ Map .of ("test-action" , new TransportActionStats (1 , 2 , new long [29 ], 3 , 4 , new long [29 ]))
858+ )
859859 : null ;
860860 HttpStats httpStats = null ;
861861 if (frequently ()) {
@@ -923,47 +923,47 @@ public static NodeStats createNodeStats() {
923923
924924 DiscoveryStats discoveryStats = frequently ()
925925 ? new DiscoveryStats (
926- randomBoolean () ? new PendingClusterStateStats (randomInt (), randomInt (), randomInt ()) : null ,
927- randomBoolean ()
928- ? new PublishClusterStateStats (
929- randomNonNegativeLong (),
930- randomNonNegativeLong (),
931- randomNonNegativeLong (),
932- new ClusterStateSerializationStats (
933- randomNonNegativeLong (),
934- randomNonNegativeLong (),
935- randomNonNegativeLong (),
936- randomNonNegativeLong (),
937- randomNonNegativeLong (),
938- randomNonNegativeLong ()
939- )
940- )
941- : null ,
942- randomBoolean ()
943- ? new ClusterStateUpdateStats (
944- randomNonNegativeLong (),
945- randomNonNegativeLong (),
946- randomNonNegativeLong (),
947- randomNonNegativeLong (),
948- randomNonNegativeLong (),
949- randomNonNegativeLong (),
950- randomNonNegativeLong (),
951- randomNonNegativeLong (),
952- randomNonNegativeLong (),
953- randomNonNegativeLong (),
954- randomNonNegativeLong (),
955- randomNonNegativeLong (),
956- randomNonNegativeLong (),
957- randomNonNegativeLong (),
958- randomNonNegativeLong (),
959- randomNonNegativeLong (),
960- randomNonNegativeLong (),
961- randomNonNegativeLong (),
962- randomNonNegativeLong ()
926+ randomBoolean () ? new PendingClusterStateStats (randomInt (), randomInt (), randomInt ()) : null ,
927+ randomBoolean ()
928+ ? new PublishClusterStateStats (
929+ randomNonNegativeLong (),
930+ randomNonNegativeLong (),
931+ randomNonNegativeLong (),
932+ new ClusterStateSerializationStats (
933+ randomNonNegativeLong (),
934+ randomNonNegativeLong (),
935+ randomNonNegativeLong (),
936+ randomNonNegativeLong (),
937+ randomNonNegativeLong (),
938+ randomNonNegativeLong ()
939+ )
940+ )
941+ : null ,
942+ randomBoolean ()
943+ ? new ClusterStateUpdateStats (
944+ randomNonNegativeLong (),
945+ randomNonNegativeLong (),
946+ randomNonNegativeLong (),
947+ randomNonNegativeLong (),
948+ randomNonNegativeLong (),
949+ randomNonNegativeLong (),
950+ randomNonNegativeLong (),
951+ randomNonNegativeLong (),
952+ randomNonNegativeLong (),
953+ randomNonNegativeLong (),
954+ randomNonNegativeLong (),
955+ randomNonNegativeLong (),
956+ randomNonNegativeLong (),
957+ randomNonNegativeLong (),
958+ randomNonNegativeLong (),
959+ randomNonNegativeLong (),
960+ randomNonNegativeLong (),
961+ randomNonNegativeLong (),
962+ randomNonNegativeLong ()
963+ )
964+ : null ,
965+ timeTrackerStats
963966 )
964- : null ,
965- timeTrackerStats
966- )
967967 : null ;
968968 IngestStats ingestStats = null ;
969969 if (frequently ()) {
0 commit comments