clusterview.jsp

来自「這是compiere2的官方沒問題版本~我在fedora10上安裝正確無誤~不會」· JSP 代码 · 共 45 行

JSP
45
字号
<%@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 + =
减小字号Ctrl + -
显示快捷键?