Skip to content

Commit 849b1ab

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent f6d84e6 commit 849b1ab

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

server/src/main/java/org/elasticsearch/action/admin/cluster/node/usage/NodeUsageStatsForThreadPoolsAction.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import org.elasticsearch.cluster.node.DiscoveryNode;
2020
import org.elasticsearch.common.io.stream.StreamInput;
2121
import org.elasticsearch.common.io.stream.StreamOutput;
22-
import org.elasticsearch.index.shard.ShardId;
2322
import org.elasticsearch.transport.AbstractTransportRequest;
2423

2524
import java.io.IOException;

server/src/main/java/org/elasticsearch/action/admin/cluster/node/usage/TransportNodeUsageStatsForThreadPoolsAction.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import org.apache.logging.log4j.LogManager;
1313
import org.apache.logging.log4j.Logger;
14-
import org.elasticsearch.action.ActionListener;
1514
import org.elasticsearch.action.ActionType;
1615
import org.elasticsearch.action.FailedNodeException;
1716
import org.elasticsearch.action.support.ActionFilters;
@@ -46,8 +45,9 @@ public class TransportNodeUsageStatsForThreadPoolsAction extends TransportNodesA
4645

4746
private static final Logger logger = LogManager.getLogger(TransportNodeUsageStatsForThreadPoolsAction.class);
4847

49-
public static final ActionType<NodeUsageStatsForThreadPoolsAction.Response> TYPE =
50-
new ActionType<>(NodeUsageStatsForThreadPoolsAction.NAME);
48+
public static final ActionType<NodeUsageStatsForThreadPoolsAction.Response> TYPE = new ActionType<>(
49+
NodeUsageStatsForThreadPoolsAction.NAME
50+
);
5151

5252
private final ThreadPool threadPool;
5353
private final ClusterService clusterService;
@@ -107,13 +107,16 @@ protected NodeUsageStatsForThreadPoolsAction.NodeResponse nodeOperation(
107107
ThreadPoolUsageStats threadPoolUsageStats = new ThreadPoolUsageStats(
108108
trackingForWriteExecutor.getMaximumPoolSize(),
109109
(float) trackingForWriteExecutor.pollUtilization(
110-
TaskExecutionTimeTrackingEsThreadPoolExecutor.UtilizationTrackingPurpose.ALLOCATION),
110+
TaskExecutionTimeTrackingEsThreadPoolExecutor.UtilizationTrackingPurpose.ALLOCATION
111+
),
111112
trackingForWriteExecutor.getMaxQueueLatencyMillisSinceLastPollAndReset()
112113
);
113114

114115
Map<String, ThreadPoolUsageStats> perThreadPool = new HashMap<>();
115116
perThreadPool.put(ThreadPool.Names.WRITE, threadPoolUsageStats);
116117
return new NodeUsageStatsForThreadPoolsAction.NodeResponse(
117-
localNode, new NodeUsageStatsForThreadPools(ThreadPool.Names.WRITE, perThreadPool));
118+
localNode,
119+
new NodeUsageStatsForThreadPools(ThreadPool.Names.WRITE, perThreadPool)
120+
);
118121
}
119122
}

0 commit comments

Comments
 (0)