2006-07-19 17:58:23 -04:00
|
|
|
<%@ page contentType="text/xml; charset=utf-8" pageEncoding="UTF-8" language="java" %>
|
2006-02-22 00:53:23 -05:00
|
|
|
<%@ page import="org.apache.solr.core.SolrInfoMBean,
|
2006-01-26 00:37:29 -05:00
|
|
|
org.apache.solr.core.SolrInfoRegistry,
|
|
|
|
org.apache.solr.util.NamedList,
|
2006-02-22 00:53:23 -05:00
|
|
|
java.util.Date,
|
|
|
|
java.util.Map"%>
|
2006-02-14 14:36:06 -05:00
|
|
|
<?xml-stylesheet type="text/xsl" href="stats.xsl"?>
|
2006-02-22 00:53:23 -05:00
|
|
|
<%@include file="_info.jsp" %>
|
2006-01-26 00:37:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
<solr>
|
|
|
|
<schema><%= collectionName %></schema>
|
|
|
|
<host><%= hostname %></host>
|
|
|
|
<now><%= new Date().toString() %></now>
|
2006-02-22 00:53:23 -05:00
|
|
|
<start><%= new Date(core.getStartTime()) %></start>
|
2006-01-26 00:37:29 -05:00
|
|
|
<solr-info>
|
|
|
|
<%
|
|
|
|
for (SolrInfoMBean.Category cat : SolrInfoMBean.Category.values()) {
|
|
|
|
%>
|
|
|
|
<<%= cat.toString() %>>
|
|
|
|
<%
|
2006-02-22 00:53:23 -05:00
|
|
|
Map<String,SolrInfoMBean> reg = SolrInfoRegistry.getRegistry();
|
2006-01-26 00:37:29 -05:00
|
|
|
synchronized(reg) {
|
|
|
|
for (Map.Entry<String,SolrInfoMBean> entry : reg.entrySet()) {
|
|
|
|
String key = entry.getKey();
|
|
|
|
SolrInfoMBean m = entry.getValue();
|
|
|
|
|
|
|
|
if (m.getCategory() != cat) continue;
|
|
|
|
|
|
|
|
NamedList nl = m.getStatistics();
|
|
|
|
if ((nl != null) && (nl.size() != 0)) {
|
|
|
|
String na = "None Provided";
|
|
|
|
String name = (m.getName()!=null ? m.getName() : na);
|
|
|
|
String vers = (m.getVersion()!=null ? m.getVersion() : na);
|
|
|
|
String desc = (m.getDescription()!=null ? m.getDescription() : na);
|
|
|
|
%>
|
|
|
|
<entry>
|
|
|
|
<name>
|
|
|
|
<%= key %>
|
|
|
|
</name>
|
|
|
|
<class>
|
|
|
|
<%= name %>
|
|
|
|
</class>
|
|
|
|
<version>
|
|
|
|
<%= vers %>
|
|
|
|
</version>
|
|
|
|
<description>
|
|
|
|
<%= desc %>
|
|
|
|
</description>
|
|
|
|
<stats>
|
|
|
|
<%
|
|
|
|
for (int i = 0; i < nl.size() ; i++) {
|
|
|
|
%>
|
|
|
|
<stat name="<%= nl.getName(i) %>" >
|
|
|
|
<%= nl.getVal(i).toString() %>
|
|
|
|
</stat>
|
|
|
|
<%
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
</stats>
|
|
|
|
</entry>
|
|
|
|
<%
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
<%
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
</<%= cat.toString() %>>
|
|
|
|
<%
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
</solr-info>
|
|
|
|
</solr>
|