📄 clusterview.jsp
字号:
<%@page contentType="text/html"
import="java.net.*,java.io.*"
%>
<html>
<head><title>Clustered JBoss Management Console</title>
<link rel="stylesheet" href="../style_master.css" type="text/css">
</head>
<body>
<table>
<tr><td>
<h2>Cluster View Bootstrap</h2>
<a href="bootstrap.html" target="ClusterNodeView">Reinvoke Bootstrap</a>
<h2>Loaded Clusters</h2>
<%
String partition = (String) request.getAttribute("partition");
%>
<h3 class='DomainName'><%= partition %></h2>
<ul class='MBeanList'>
<%
String[] partitionHosts = (String[]) request.getAttribute("partitionHosts");
for(int h = 0; h < partitionHosts.length; h ++)
{
String host = partitionHosts[h];
String hostname = "";
try
{
hostname = InetAddress.getByName(host).getHostName();
}
catch(IOException e) {}
String hostURL = "http://"+host+":8080/jmx-console//HtmlAdaptor?action=displayMBeans";
%>
<li><a href="<%= hostURL%>" target="ClusterNodeView"><%= hostname %></a></li>
<%
}
%>
</ul>
</td></tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -