-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-18382 add transport type info into Thrift UI #880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
5d71f9d
67f30d8
af3f37d
4b527ca
b9e371d
7f2dde4
9b3948e
cb5e09c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,9 +31,12 @@ long startcode = conf.getLong("startcode", System.currentTimeMillis()); | |
| String listenPort = conf.get("hbase.regionserver.thrift.port", "9090"); | ||
| String serverInfo = listenPort + "," + String.valueOf(startcode); | ||
| ImplType implType = ImplType.getServerImpl(conf); | ||
| String framed = implType.isAlwaysFramed() | ||
| ? "true" : conf.get("hbase.regionserver.thrift.framed", "false"); | ||
| String compact = conf.get("hbase.regionserver.thrift.compact", "false"); | ||
| String framed = (implType.isAlwaysFramed() | ||
| ? "true" : conf.get("hbase.regionserver.thrift.framed", "false")) | ||
| .equals("true") ? "Framed": "Standard"; | ||
| String compact = conf.get("hbase.regionserver.thrift.compact", "false") | ||
|
||
| .equals("true") ? "Compact" : "Binary"; | ||
| String qop = conf.get("hbase.thrift.security.qop", "none"); | ||
| %> | ||
| <!DOCTYPE html> | ||
| <?xml version="1.0" encoding="UTF-8" ?> | ||
|
|
@@ -112,14 +115,19 @@ String compact = conf.get("hbase.regionserver.thrift.compact", "false"); | |
| <td>Thrift RPC engine implementation type chosen by this Thrift server</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Compact Protocol</td> | ||
| <td>Protocol</td> | ||
| <td><%= compact %></td> | ||
| <td>Thrift RPC engine uses compact protocol</td> | ||
| <td>Thrift RPC engine protocol type</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Framed Transport</td> | ||
| <td>Transport</td> | ||
| <td><%= framed %></td> | ||
| <td>Thrift RPC engine uses framed transport</td> | ||
| <td>Thrift RPC engine transport type</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Quality Of Protection</td> | ||
| <td><%= qop %></td> | ||
| <td>QOP settings for SASL </td> | ||
|
||
| </tr> | ||
| </table> | ||
| </section> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"true" -> "Framed"?
nit: I think the logic has become nested and is unreadable for a ternary operator. Mind switching to an if-else?