core-jgi/jboss/server/adempiere/deploy/jmx-console.war/displayMBeans.jsp

60 lines
1.8 KiB
Plaintext
Raw Normal View History

2006-11-17 10:10:18 +07:00
<%@page contentType="text/html"
import="java.net.*,java.util.*,org.jboss.jmx.adaptor.model.*,java.io.*"
%>
<html>
<head>
<title>JBoss JMX Management Console</title>
<link rel="stylesheet" href="style_master.css" type="text/css">
<meta http-equiv="cache-control" content="no-cache">
</head>
<body>
<table width="100%">
<table>
<tr>
<td><img src="images/logo.gif" align="left" border="0" alt="JBoss"></td>
<td valign="middle">
<%
String hostname = "";
try
{
hostname = InetAddress.getLocalHost().getHostName();
}
catch(IOException e) {}
%>
<h1>JMX Agent View <code><%= hostname %></code></h1>
</td>
</tr>
</table>
<hr>
<form action="HtmlAdaptor?action=displayMBeans" method="post" name="applyFilter" id="applyFilter">
ObjectName Filter (e.g. "jboss:*", "*:service=invoker,*") :<input type="text" name="filter" size="40" value="<%= request.getAttribute("filter")%>"> <input type="submit" name="apply" value="ApplyFilter">
</form>
<hr>
<%
Iterator mbeans = (Iterator) request.getAttribute("mbeans");
while( mbeans.hasNext() )
{
DomainData domainData = (DomainData) mbeans.next();
%>
<h2 class='DomainName'><%= domainData.getDomainName() %></h2>
<ul class='MBeanList'>
<%
MBeanData[] data = domainData.getData();
for(int d = 0; d < data.length; d ++)
{
String name = data[d].getObjectName().toString();
String properties = data[d].getNameProperties();
%>
<li><a href="HtmlAdaptor?action=inspectMBean&name=<%= URLEncoder.encode(name) %>"><%= URLDecoder.decode(properties) %></a></li>
<%
}
%>
</ul>
<%
}
%>
</td></tr>
</table>
</body>
</html>