GetSummary: Group threads for H2 and sshd-SshServer

There can be quite many threads running for H2 and the sshd server.  On
my test server there were around 20 H2 related threads and around 6 sshd
related threads.

Add "H2" and "sshd-SshdServer" as group prefixes, so that these threads
will be listed in the summary under specific groups rather than being
grouped under "Other".

Change-Id: I138a5cbaf787c7c524c445368e7fcf7068e44a85
diff --git a/Documentation/rest-api-config.txt b/Documentation/rest-api-config.txt
index 82d9f3e..cd4f745 100644
--- a/Documentation/rest-api-config.txt
+++ b/Documentation/rest-api-config.txt
@@ -1721,13 +1721,13 @@
 |`counts`       |
 Detailed thread counts as a map that maps a thread kind to a map that
 maps a thread state to the thread count. The thread kinds group the
-counts by threads that have the same name prefix (`HTTP`,
+counts by threads that have the same name prefix (`H2`, `HTTP`,
 `IntraLineDiff`, `ReceiveCommits`, `SSH git-receive-pack`,
 `SSH git-upload-pack`, `SSH-Interactive-Worker`, `SSH-Stream-Worker`,
-`SshCommandStart`). The counts for other threads are available under
-the thread kind `Other`. Counts for the following thread states can be
-included: `NEW`, `RUNNABLE`, `BLOCKED`, `WAITING`, `TIMED_WAITING` and
-`TERMINATED`.
+`SshCommandStart`, `sshd-SshServer`). The counts for other threads are
+available under the thread kind `Other`. Counts for the following thread
+states can be included: `NEW`, `RUNNABLE`, `BLOCKED`, `WAITING`,
+`TIMED_WAITING` and `TERMINATED`.
 |===========================
 
 [[top-menu-entry-info]]
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/config/GetSummary.java b/gerrit-server/src/main/java/com/google/gerrit/server/config/GetSummary.java
index 62de688..82912c0 100644
--- a/gerrit-server/src/main/java/com/google/gerrit/server/config/GetSummary.java
+++ b/gerrit-server/src/main/java/com/google/gerrit/server/config/GetSummary.java
@@ -144,6 +144,7 @@
 
     List<String> prefixes =
         Arrays.asList(
+            "H2",
             "HTTP",
             "IntraLineDiff",
             "ReceiveCommits",
@@ -151,7 +152,8 @@
             "SSH git-upload-pack",
             "SSH-Interactive-Worker",
             "SSH-Stream-Worker",
-            "SshCommandStart");
+            "SshCommandStart",
+            "sshd-SshServer");
     String other = "Other";
     ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean();