2006-11-09 18:13:58 -05:00
|
|
|
<%@ page contentType="text/xml; charset=utf-8" pageEncoding="UTF-8" language="java" %>
|
|
|
|
<%--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
--%>
|
2006-02-22 00:53:23 -05:00
|
|
|
<%@ page import="org.apache.solr.core.SolrInfoMBean,
|
|
|
|
java.net.URL,
|
|
|
|
java.util.Date,
|
|
|
|
java.util.Map"%>
|
2006-02-14 14:36:06 -05:00
|
|
|
<?xml-stylesheet type="text/xsl" href="registry.xsl"?>
|
2006-01-26 00:37:29 -05:00
|
|
|
|
2006-02-22 00:53:23 -05:00
|
|
|
<%@include file="_info.jsp" %>
|
2006-01-26 00:37:29 -05:00
|
|
|
|
|
|
|
<solr>
|
2007-12-06 22:49:52 -05:00
|
|
|
<core><%= core.getName()%></core>
|
2006-01-26 00:37:29 -05:00
|
|
|
<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-12-08 03:01:51 -05:00
|
|
|
<solr-spec-version><%= solrSpecVersion %></solr-spec-version>
|
|
|
|
<solr-impl-version><%= solrImplVersion %></solr-impl-version>
|
|
|
|
<lucene-spec-version><%= luceneSpecVersion %></lucene-spec-version>
|
|
|
|
<lucene-impl-version><%= luceneImplVersion %></lucene-impl-version>
|
2006-01-26 00:37:29 -05:00
|
|
|
<solr-info>
|
|
|
|
<%
|
|
|
|
for (SolrInfoMBean.Category cat : SolrInfoMBean.Category.values()) {
|
|
|
|
%>
|
|
|
|
<<%= cat.toString() %>>
|
|
|
|
<%
|
2009-03-11 14:33:31 -04:00
|
|
|
Map<String, SolrInfoMBean> reg = core.getInfoRegistry();
|
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;
|
|
|
|
|
|
|
|
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);
|
2006-03-02 20:43:03 -05:00
|
|
|
String srcId = (m.getSourceId()!=null ? m.getSourceId() : na);
|
|
|
|
String src = (m.getSource()!=null ? m.getSource() : na);
|
2006-01-26 00:37:29 -05:00
|
|
|
// print
|
|
|
|
%>
|
|
|
|
<entry>
|
|
|
|
<name>
|
|
|
|
<%= key %>
|
|
|
|
</name>
|
|
|
|
<class>
|
|
|
|
<%= name %>
|
|
|
|
</class>
|
|
|
|
<version>
|
|
|
|
<%= vers %>
|
|
|
|
</version>
|
|
|
|
<description>
|
|
|
|
<%= desc %>
|
|
|
|
</description>
|
2006-03-02 20:43:03 -05:00
|
|
|
<sourceid>
|
|
|
|
<%= srcId %>
|
|
|
|
</sourceid>
|
|
|
|
<source>
|
|
|
|
<%= src %>
|
|
|
|
</source>
|
|
|
|
|
2006-01-26 00:37:29 -05:00
|
|
|
<%
|
|
|
|
URL[] urls = m.getDocs();
|
|
|
|
if ((urls != null) && (urls.length != 0)) {
|
|
|
|
%>
|
|
|
|
<urls>
|
|
|
|
<%
|
|
|
|
for (URL u : urls) {
|
|
|
|
%>
|
|
|
|
<url>
|
|
|
|
<%= u.toString() %>
|
|
|
|
</url>
|
|
|
|
<%
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
</urls>
|
|
|
|
<%
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
</entry>
|
|
|
|
<%
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
</<%= cat.toString() %>>
|
|
|
|
<%
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
</solr-info>
|
|
|
|
</solr>
|