rjack-solr 3.6.2.0-java → 4.0.0.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +5 -0
- data/Manifest.txt +268 -33
- data/NOTICE.txt +1 -1
- data/README.rdoc +6 -6
- data/assembly.xml +2 -2
- data/bin/rjack-solr-fg +1 -1
- data/init/rjack-solr +2 -2
- data/lib/rjack-solr.rb +7 -2
- data/lib/rjack-solr/base.rb +2 -2
- data/lib/rjack-solr/commons-cli-1.2.jar +0 -0
- data/lib/rjack-solr/config.rb +1 -1
- data/lib/rjack-solr/server.rb +1 -1
- data/lib/rjack-solr/solr-core-4.0.0.jar +0 -0
- data/lib/rjack-solr/solr-solrj-4.0.0.jar +0 -0
- data/pom.xml +19 -6
- data/test/test_solr.rb +7 -5
- data/webapp/META-INF/LICENSE.txt +0 -940
- data/webapp/META-INF/MANIFEST.MF +5 -5
- data/webapp/META-INF/NOTICE.txt +160 -93
- data/webapp/WEB-INF/web.xml +57 -43
- data/webapp/admin.html +140 -0
- data/webapp/css/chosen.css +392 -0
- data/webapp/css/styles/analysis.css +293 -0
- data/webapp/css/styles/cloud.css +331 -0
- data/webapp/css/styles/common.css +593 -0
- data/webapp/css/styles/cores.css +203 -0
- data/webapp/css/styles/dashboard.css +127 -0
- data/webapp/css/styles/dataimport.css +222 -0
- data/webapp/css/styles/index.css +195 -0
- data/webapp/css/styles/java-properties.css +33 -0
- data/webapp/css/styles/logging.css +323 -0
- data/webapp/css/styles/menu.css +272 -0
- data/webapp/css/styles/plugins.css +175 -0
- data/webapp/css/styles/query.css +137 -0
- data/webapp/css/styles/replication.css +494 -0
- data/webapp/css/styles/schema-browser.css +476 -0
- data/webapp/css/styles/threads.css +153 -0
- data/webapp/img/ZeroClipboard.swf +0 -0
- data/webapp/img/chosen-sprite.png +0 -0
- data/webapp/img/div.gif +0 -0
- data/webapp/{admin → img}/favicon.ico +0 -0
- data/webapp/img/filetypes/7z.png +0 -0
- data/webapp/img/filetypes/README +27 -0
- data/webapp/img/filetypes/ai.png +0 -0
- data/webapp/img/filetypes/aiff.png +0 -0
- data/webapp/img/filetypes/asc.png +0 -0
- data/webapp/img/filetypes/audio.png +0 -0
- data/webapp/img/filetypes/bin.png +0 -0
- data/webapp/img/filetypes/bz2.png +0 -0
- data/webapp/img/filetypes/c.png +0 -0
- data/webapp/img/filetypes/cfc.png +0 -0
- data/webapp/img/filetypes/cfm.png +0 -0
- data/webapp/img/filetypes/chm.png +0 -0
- data/webapp/img/filetypes/class.png +0 -0
- data/webapp/img/filetypes/conf.png +0 -0
- data/webapp/img/filetypes/cpp.png +0 -0
- data/webapp/img/filetypes/cs.png +0 -0
- data/webapp/img/filetypes/css.png +0 -0
- data/webapp/img/filetypes/csv.png +0 -0
- data/webapp/img/filetypes/deb.png +0 -0
- data/webapp/img/filetypes/divx.png +0 -0
- data/webapp/img/filetypes/doc.png +0 -0
- data/webapp/img/filetypes/dot.png +0 -0
- data/webapp/img/filetypes/eml.png +0 -0
- data/webapp/img/filetypes/enc.png +0 -0
- data/webapp/img/filetypes/file.png +0 -0
- data/webapp/img/filetypes/gif.png +0 -0
- data/webapp/img/filetypes/gz.png +0 -0
- data/webapp/img/filetypes/hlp.png +0 -0
- data/webapp/img/filetypes/htm.png +0 -0
- data/webapp/img/filetypes/html.png +0 -0
- data/webapp/img/filetypes/image.png +0 -0
- data/webapp/img/filetypes/iso.png +0 -0
- data/webapp/img/filetypes/jar.png +0 -0
- data/webapp/img/filetypes/java.png +0 -0
- data/webapp/img/filetypes/jpeg.png +0 -0
- data/webapp/img/filetypes/jpg.png +0 -0
- data/webapp/img/filetypes/js.png +0 -0
- data/webapp/img/filetypes/lua.png +0 -0
- data/webapp/img/filetypes/m.png +0 -0
- data/webapp/img/filetypes/mm.png +0 -0
- data/webapp/img/filetypes/mov.png +0 -0
- data/webapp/img/filetypes/mp3.png +0 -0
- data/webapp/img/filetypes/mpg.png +0 -0
- data/webapp/img/filetypes/odc.png +0 -0
- data/webapp/img/filetypes/odf.png +0 -0
- data/webapp/img/filetypes/odg.png +0 -0
- data/webapp/img/filetypes/odi.png +0 -0
- data/webapp/img/filetypes/odp.png +0 -0
- data/webapp/img/filetypes/ods.png +0 -0
- data/webapp/img/filetypes/odt.png +0 -0
- data/webapp/img/filetypes/ogg.png +0 -0
- data/webapp/img/filetypes/pdf.png +0 -0
- data/webapp/img/filetypes/pgp.png +0 -0
- data/webapp/img/filetypes/php.png +0 -0
- data/webapp/img/filetypes/pl.png +0 -0
- data/webapp/img/filetypes/png.png +0 -0
- data/webapp/img/filetypes/ppt.png +0 -0
- data/webapp/img/filetypes/ps.png +0 -0
- data/webapp/img/filetypes/py.png +0 -0
- data/webapp/img/filetypes/ram.png +0 -0
- data/webapp/img/filetypes/rar.png +0 -0
- data/webapp/img/filetypes/rb.png +0 -0
- data/webapp/img/filetypes/rm.png +0 -0
- data/webapp/img/filetypes/rpm.png +0 -0
- data/webapp/img/filetypes/rtf.png +0 -0
- data/webapp/img/filetypes/sig.png +0 -0
- data/webapp/img/filetypes/sql.png +0 -0
- data/webapp/img/filetypes/swf.png +0 -0
- data/webapp/img/filetypes/sxc.png +0 -0
- data/webapp/img/filetypes/sxd.png +0 -0
- data/webapp/img/filetypes/sxi.png +0 -0
- data/webapp/img/filetypes/sxw.png +0 -0
- data/webapp/img/filetypes/tar.png +0 -0
- data/webapp/img/filetypes/tex.png +0 -0
- data/webapp/img/filetypes/tgz.png +0 -0
- data/webapp/img/filetypes/txt.png +0 -0
- data/webapp/img/filetypes/vcf.png +0 -0
- data/webapp/img/filetypes/video.png +0 -0
- data/webapp/img/filetypes/vsd.png +0 -0
- data/webapp/img/filetypes/wav.png +0 -0
- data/webapp/img/filetypes/wma.png +0 -0
- data/webapp/img/filetypes/wmv.png +0 -0
- data/webapp/img/filetypes/xls.png +0 -0
- data/webapp/img/filetypes/xml.png +0 -0
- data/webapp/img/filetypes/xpi.png +0 -0
- data/webapp/img/filetypes/xvid.png +0 -0
- data/webapp/img/filetypes/zip.png +0 -0
- data/webapp/img/ico/arrow-000-small.png +0 -0
- data/webapp/img/ico/arrow-circle.png +0 -0
- data/webapp/img/ico/arrow-switch.png +0 -0
- data/webapp/img/ico/asterisk.png +0 -0
- data/webapp/img/ico/battery.png +0 -0
- data/webapp/img/ico/block-small.png +0 -0
- data/webapp/img/ico/block.png +0 -0
- data/webapp/img/ico/book-open-text.png +0 -0
- data/webapp/img/ico/box.png +0 -0
- data/webapp/img/ico/bug.png +0 -0
- data/webapp/img/ico/chart.png +0 -0
- data/webapp/img/ico/chevron-small-expand.png +0 -0
- data/webapp/img/ico/chevron-small.png +0 -0
- data/webapp/img/ico/clipboard-list.png +0 -0
- data/webapp/img/ico/clipboard-paste-document-text.png +0 -0
- data/webapp/img/ico/clipboard-paste.png +0 -0
- data/webapp/img/ico/clock-select-remain.png +0 -0
- data/webapp/img/ico/clock-select.png +0 -0
- data/webapp/img/ico/construction.png +0 -0
- data/webapp/img/ico/cross-0.png +0 -0
- data/webapp/img/ico/cross-1.png +0 -0
- data/webapp/img/ico/cross.png +0 -0
- data/webapp/img/ico/dashboard.png +0 -0
- data/webapp/img/ico/database.png +0 -0
- data/webapp/img/ico/databases.png +0 -0
- data/webapp/img/ico/disk-black.png +0 -0
- data/webapp/img/ico/document-convert.png +0 -0
- data/webapp/img/ico/document-import.png +0 -0
- data/webapp/img/ico/document-list.png +0 -0
- data/webapp/img/ico/document-text.png +0 -0
- data/webapp/img/ico/download-cloud.png +0 -0
- data/webapp/img/ico/exclamation-button.png +0 -0
- data/webapp/img/ico/eye.png +0 -0
- data/webapp/img/ico/folder-export.png +0 -0
- data/webapp/img/ico/folder-tree.png +0 -0
- data/webapp/img/ico/folder.png +0 -0
- data/webapp/img/ico/funnel-small.png +0 -0
- data/webapp/img/ico/funnel.png +0 -0
- data/webapp/img/ico/gear.png +0 -0
- data/webapp/img/ico/globe-network.png +0 -0
- data/webapp/img/ico/globe.png +0 -0
- data/webapp/img/ico/hammer-screwdriver.png +0 -0
- data/webapp/img/ico/hand.png +0 -0
- data/webapp/img/ico/highlighter-text.png +0 -0
- data/webapp/img/ico/hourglass--exclamation.png +0 -0
- data/webapp/img/ico/hourglass.png +0 -0
- data/webapp/img/ico/inbox-document-text.png +0 -0
- data/webapp/img/ico/information-button.png +0 -0
- data/webapp/img/ico/information-small.png +0 -0
- data/webapp/img/ico/information-white.png +0 -0
- data/webapp/img/ico/information.png +0 -0
- data/webapp/img/ico/jar.png +0 -0
- data/webapp/img/ico/magnifier.png +0 -0
- data/webapp/img/ico/mail.png +0 -0
- data/webapp/img/ico/memory.png +0 -0
- data/webapp/img/ico/molecule.png +0 -0
- data/webapp/img/ico/network-cloud.png +0 -0
- data/webapp/img/ico/network-status-away.png +0 -0
- data/webapp/img/ico/network-status-busy.png +0 -0
- data/webapp/img/ico/network-status-offline.png +0 -0
- data/webapp/img/ico/network-status.png +0 -0
- data/webapp/img/ico/network.png +0 -0
- data/webapp/img/ico/node-design.png +0 -0
- data/webapp/img/ico/node-master.png +0 -0
- data/webapp/img/ico/node-select.png +0 -0
- data/webapp/img/ico/node-slave.png +0 -0
- data/webapp/img/ico/node.png +0 -0
- data/webapp/img/ico/pencil-small.png +0 -0
- data/webapp/img/ico/plus-button.png +0 -0
- data/webapp/img/ico/processor.png +0 -0
- data/webapp/img/ico/prohibition.png +0 -0
- data/webapp/img/ico/property.png +0 -0
- data/webapp/img/ico/question-small-white.png +0 -0
- data/webapp/img/ico/question-white.png +0 -0
- data/webapp/img/ico/question.png +0 -0
- data/webapp/img/ico/receipt-invoice.png +0 -0
- data/webapp/img/ico/receipt.png +0 -0
- data/webapp/img/ico/script-code.png +0 -0
- data/webapp/img/ico/server-cast.png +0 -0
- data/webapp/img/ico/server.png +0 -0
- data/webapp/img/ico/sitemap.png +0 -0
- data/webapp/img/ico/slash.png +0 -0
- data/webapp/img/ico/status-away.png +0 -0
- data/webapp/img/ico/status-busy.png +0 -0
- data/webapp/img/ico/status-offline.png +0 -0
- data/webapp/img/ico/status.png +0 -0
- data/webapp/img/ico/system-monitor--exclamation.png +0 -0
- data/webapp/img/ico/system-monitor.png +0 -0
- data/webapp/img/ico/table.png +0 -0
- data/webapp/img/ico/terminal.png +0 -0
- data/webapp/img/ico/tick-circle.png +0 -0
- data/webapp/img/ico/tick-red.png +0 -0
- data/webapp/img/ico/tick.png +0 -0
- data/webapp/img/ico/toggle-small-expand.png +0 -0
- data/webapp/img/ico/toggle-small.png +0 -0
- data/webapp/img/ico/toolbox.png +0 -0
- data/webapp/img/ico/ui-accordion.png +0 -0
- data/webapp/img/ico/ui-address-bar.png +0 -0
- data/webapp/img/ico/ui-check-box-uncheck.png +0 -0
- data/webapp/img/ico/ui-check-box.png +0 -0
- data/webapp/img/ico/ui-radio-button-uncheck.png +0 -0
- data/webapp/img/ico/ui-radio-button.png +0 -0
- data/webapp/img/ico/ui-text-field-select.png +0 -0
- data/webapp/img/ico/users.png +0 -0
- data/webapp/img/ico/wooden-box.png +0 -0
- data/webapp/img/ico/zone.png +0 -0
- data/webapp/img/loader-light.gif +0 -0
- data/webapp/img/loader.gif +0 -0
- data/webapp/img/lucene-ico.png +0 -0
- data/webapp/img/solr-ico.png +0 -0
- data/webapp/{admin/solr_small.png → img/solr.png} +0 -0
- data/webapp/img/tree.png +0 -0
- data/webapp/js/lib/ZeroClipboard.js +317 -0
- data/webapp/js/lib/chosen.js +953 -0
- data/webapp/{admin/get-properties.jsp → js/lib/console.js} +13 -10
- data/webapp/js/lib/d3.js +9342 -0
- data/webapp/js/lib/highlight.js +1 -0
- data/webapp/{admin/jquery-1.4.3.min.js → js/lib/jquery-1.7.2.min.js} +0 -0
- data/webapp/js/lib/jquery.blockUI.js +499 -0
- data/webapp/js/lib/jquery.cookie.js +47 -0
- data/webapp/js/lib/jquery.form.js +782 -0
- data/webapp/js/lib/jquery.jstree.js +3510 -0
- data/webapp/js/lib/jquery.sammy.js +1856 -0
- data/webapp/js/lib/jquery.sparkline.js +1271 -0
- data/webapp/js/lib/jquery.timeago.js +165 -0
- data/webapp/js/lib/linker.js +48 -0
- data/webapp/js/lib/order.js +189 -0
- data/webapp/js/main.js +57 -0
- data/webapp/js/require.js +11319 -0
- data/webapp/js/scripts/analysis.js +549 -0
- data/webapp/js/scripts/app.js +368 -0
- data/webapp/js/scripts/cloud.js +719 -0
- data/webapp/js/scripts/cores.js +540 -0
- data/webapp/js/scripts/dashboard.js +540 -0
- data/webapp/js/scripts/dataimport.js +567 -0
- data/webapp/js/scripts/file.js +56 -0
- data/webapp/js/scripts/index.js +344 -0
- data/webapp/js/scripts/java-properties.js +107 -0
- data/webapp/js/scripts/logging.js +519 -0
- data/webapp/js/scripts/ping.js +72 -0
- data/webapp/js/scripts/plugins.js +426 -0
- data/webapp/js/scripts/query.js +170 -0
- data/webapp/js/scripts/replication.js +557 -0
- data/webapp/js/scripts/schema-browser.js +1206 -0
- data/webapp/js/scripts/threads.js +159 -0
- data/webapp/tpl/analysis.html +83 -0
- data/webapp/tpl/cloud.html +54 -0
- data/webapp/tpl/cores.html +215 -0
- data/webapp/tpl/dashboard.html +164 -0
- data/webapp/tpl/dataimport.html +123 -0
- data/webapp/tpl/index.html +250 -0
- data/webapp/tpl/logging.html +23 -0
- data/webapp/tpl/plugins.html +39 -0
- data/webapp/tpl/query.html +318 -0
- data/webapp/tpl/replication.html +207 -0
- data/webapp/tpl/schema-browser.html +178 -0
- data/webapp/tpl/threads.html +56 -0
- metadata +307 -40
- data/lib/rjack-solr/solr-core-3.6.2.jar +0 -0
- data/lib/rjack-solr/solr-solrj-3.6.2.jar +0 -0
- data/webapp/admin/_info.jsp +0 -120
- data/webapp/admin/action.jsp +0 -94
- data/webapp/admin/analysis.jsp +0 -496
- data/webapp/admin/analysis.xsl +0 -179
- data/webapp/admin/dataimport.jsp +0 -53
- data/webapp/admin/debug.jsp +0 -103
- data/webapp/admin/distributiondump.jsp +0 -160
- data/webapp/admin/form.jsp +0 -152
- data/webapp/admin/get-file.jsp +0 -72
- data/webapp/admin/header.jsp +0 -44
- data/webapp/admin/index.jsp +0 -162
- data/webapp/admin/meta.xsl +0 -34
- data/webapp/admin/ping.jsp +0 -52
- data/webapp/admin/ping.xsl +0 -71
- data/webapp/admin/raw-schema.jsp +0 -38
- data/webapp/admin/registry.jsp +0 -107
- data/webapp/admin/registry.xsl +0 -321
- data/webapp/admin/replication/header.jsp +0 -89
- data/webapp/admin/replication/index.jsp +0 -378
- data/webapp/admin/schema.jsp +0 -690
- data/webapp/admin/solr-admin.css +0 -215
- data/webapp/admin/stats.jsp +0 -92
- data/webapp/admin/stats.xsl +0 -220
- data/webapp/admin/tabular.xsl +0 -141
- data/webapp/admin/threaddump.jsp +0 -110
- data/webapp/admin/threaddump.xsl +0 -103
- data/webapp/index.jsp +0 -49
data/webapp/admin/tabular.xsl
DELETED
@@ -1,141 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!--
|
3
|
-
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
-
contributor license agreements. See the NOTICE file distributed with
|
5
|
-
this work for additional information regarding copyright ownership.
|
6
|
-
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
-
(the "License"); you may not use this file except in compliance with
|
8
|
-
the License. You may obtain a copy of the License at
|
9
|
-
|
10
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
|
12
|
-
Unless required by applicable law or agreed to in writing, software
|
13
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
See the License for the specific language governing permissions and
|
16
|
-
limitations under the License.
|
17
|
-
-->
|
18
|
-
<!-- $Id: tabular.xsl 1075192 2011-02-28 00:50:09Z uschindler $ -->
|
19
|
-
<!-- $URL: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_3_6/solr/webapp/web/admin/tabular.xsl $ -->
|
20
|
-
|
21
|
-
|
22
|
-
<xsl:stylesheet
|
23
|
-
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
24
|
-
version="1.0">
|
25
|
-
|
26
|
-
|
27
|
-
<xsl:output
|
28
|
-
method="html"
|
29
|
-
encoding="utf-8"
|
30
|
-
media-type="text/html"
|
31
|
-
indent="yes"
|
32
|
-
doctype-public="-//W3C//DTD HTML 4.01//EN"
|
33
|
-
doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
|
34
|
-
|
35
|
-
|
36
|
-
<xsl:template match="/">
|
37
|
-
<html>
|
38
|
-
<head>
|
39
|
-
<link rel="stylesheet" type="text/css" href="solr-admin.css"></link>
|
40
|
-
<link rel="icon" href="favicon.ico" type="image/ico"></link>
|
41
|
-
<link rel="shortcut icon" href="favicon.ico" type="image/ico"></link>
|
42
|
-
<title>Solr Search Results</title>
|
43
|
-
</head>
|
44
|
-
<body>
|
45
|
-
<a href=".">
|
46
|
-
<img border="0" align="right" height="78" width="142" src="solr_small.png" alt="Apache Solr">
|
47
|
-
</img>
|
48
|
-
</a>
|
49
|
-
<h1>Solr Search Results</h1>
|
50
|
-
<br clear="all" />
|
51
|
-
<xsl:apply-templates/>
|
52
|
-
<br /><br />
|
53
|
-
<a href=".">Return to Admin Page</a>
|
54
|
-
</body>
|
55
|
-
</html>
|
56
|
-
</xsl:template>
|
57
|
-
|
58
|
-
|
59
|
-
<xsl:template match="responseHeader">
|
60
|
-
<table name="responseHeader">
|
61
|
-
<xsl:apply-templates/>
|
62
|
-
</table>
|
63
|
-
</xsl:template>
|
64
|
-
|
65
|
-
|
66
|
-
<xsl:template match="status">
|
67
|
-
<tr>
|
68
|
-
<td name="responseHeader"><strong>Status: </strong></td>
|
69
|
-
<td><xsl:value-of select="."></xsl:value-of></td>
|
70
|
-
</tr>
|
71
|
-
</xsl:template>
|
72
|
-
|
73
|
-
|
74
|
-
<xsl:template match="numFields">
|
75
|
-
<tr>
|
76
|
-
<td name="responseHeader"><strong>Number of Fields: </strong></td>
|
77
|
-
<td><xsl:value-of select="."></xsl:value-of></td>
|
78
|
-
</tr>
|
79
|
-
</xsl:template>
|
80
|
-
|
81
|
-
|
82
|
-
<xsl:template match="numRecords">
|
83
|
-
<tr>
|
84
|
-
<td name="responseHeader"><strong>Records Returned: </strong></td>
|
85
|
-
<td><xsl:value-of select="."></xsl:value-of></td>
|
86
|
-
</tr>
|
87
|
-
</xsl:template>
|
88
|
-
|
89
|
-
|
90
|
-
<xsl:template match="numFound">
|
91
|
-
<tr>
|
92
|
-
<td name="responseHeader"><strong>Records Found: </strong></td>
|
93
|
-
<td><xsl:value-of select="."></xsl:value-of></td>
|
94
|
-
</tr>
|
95
|
-
</xsl:template>
|
96
|
-
|
97
|
-
|
98
|
-
<xsl:template match="QTime">
|
99
|
-
<tr>
|
100
|
-
<td name="responseHeader"><strong>Query time: </strong></td>
|
101
|
-
<td><xsl:value-of select="."></xsl:value-of>(ms)</td>
|
102
|
-
</tr>
|
103
|
-
</xsl:template>
|
104
|
-
|
105
|
-
<!-- YCS.. match everything. How to match only what is not
|
106
|
-
matched above???
|
107
|
-
-->
|
108
|
-
<xsl:template match="responseHeader/*">
|
109
|
-
<tr>
|
110
|
-
<td name="responseHeader"><strong><xsl:value-of select="name(.)"></xsl:value-of>: </strong></td>
|
111
|
-
<td><xsl:value-of select="."></xsl:value-of></td>
|
112
|
-
</tr>
|
113
|
-
</xsl:template>
|
114
|
-
|
115
|
-
<xsl:template match="responseBody">
|
116
|
-
<br></br><br></br>
|
117
|
-
<table border="2">
|
118
|
-
|
119
|
-
<!-- table headers -->
|
120
|
-
<tr>
|
121
|
-
<xsl:for-each select="record[1]/field">
|
122
|
-
<th><xsl:value-of select="name"></xsl:value-of></th>
|
123
|
-
</xsl:for-each>
|
124
|
-
</tr>
|
125
|
-
|
126
|
-
<!-- table rows -->
|
127
|
-
<xsl:for-each select="record">
|
128
|
-
<tr>
|
129
|
-
<xsl:for-each select="field">
|
130
|
-
<td><xsl:value-of select="value"></xsl:value-of> </td>
|
131
|
-
</xsl:for-each>
|
132
|
-
</tr>
|
133
|
-
</xsl:for-each>
|
134
|
-
|
135
|
-
</table>
|
136
|
-
|
137
|
-
|
138
|
-
</xsl:template>
|
139
|
-
|
140
|
-
|
141
|
-
</xsl:stylesheet>
|
data/webapp/admin/threaddump.jsp
DELETED
@@ -1,110 +0,0 @@
|
|
1
|
-
<%@ page contentType="text/xml; charset=utf-8" pageEncoding="UTF-8" language="java" %>
|
2
|
-
<%--
|
3
|
-
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
-
contributor license agreements. See the NOTICE file distributed with
|
5
|
-
this work for additional information regarding copyright ownership.
|
6
|
-
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
-
(the "License"); you may not use this file except in compliance with
|
8
|
-
the License. You may obtain a copy of the License at
|
9
|
-
|
10
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
|
12
|
-
Unless required by applicable law or agreed to in writing, software
|
13
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
See the License for the specific language governing permissions and
|
16
|
-
limitations under the License.
|
17
|
-
--%>
|
18
|
-
<%@ page import="org.apache.solr.core.SolrCore,
|
19
|
-
java.lang.management.ManagementFactory,
|
20
|
-
java.lang.management.ThreadMXBean,
|
21
|
-
java.lang.management.ThreadInfo,
|
22
|
-
java.io.IOException,
|
23
|
-
org.apache.solr.common.util.XML"%>
|
24
|
-
<%@include file="_info.jsp" %>
|
25
|
-
|
26
|
-
|
27
|
-
<?xml-stylesheet type="text/xsl" href="threaddump.xsl"?>
|
28
|
-
<%!
|
29
|
-
static ThreadMXBean tmbean = ManagementFactory.getThreadMXBean();
|
30
|
-
%>
|
31
|
-
<solr>
|
32
|
-
<core><%= collectionName %></core>
|
33
|
-
<system>
|
34
|
-
<jvm>
|
35
|
-
<version><%=System.getProperty("java.vm.version")%></version>
|
36
|
-
<name><%=System.getProperty("java.vm.name")%></name>
|
37
|
-
</jvm>
|
38
|
-
<threadCount>
|
39
|
-
<current><%=tmbean.getThreadCount()%></current>
|
40
|
-
<peak><%=tmbean.getPeakThreadCount()%></peak>
|
41
|
-
<daemon><%=tmbean.getDaemonThreadCount()%></daemon>
|
42
|
-
</threadCount>
|
43
|
-
<%
|
44
|
-
long[] tids;
|
45
|
-
ThreadInfo[] tinfos;
|
46
|
-
tids = tmbean.findMonitorDeadlockedThreads();
|
47
|
-
if (tids != null) {
|
48
|
-
out.println(" <deadlocks>");
|
49
|
-
tinfos = tmbean.getThreadInfo(tids, Integer.MAX_VALUE);
|
50
|
-
for (ThreadInfo ti : tinfos) {
|
51
|
-
printThreadInfo(ti, out);
|
52
|
-
}
|
53
|
-
out.println(" </deadlocks>");
|
54
|
-
}
|
55
|
-
%>
|
56
|
-
<%
|
57
|
-
tids = tmbean.getAllThreadIds();
|
58
|
-
tinfos = tmbean.getThreadInfo(tids, Integer.MAX_VALUE);
|
59
|
-
out.println(" <threadDump>");
|
60
|
-
for (ThreadInfo ti : tinfos) {
|
61
|
-
printThreadInfo(ti, out);
|
62
|
-
}
|
63
|
-
out.println(" </threadDump>");
|
64
|
-
%>
|
65
|
-
</system>
|
66
|
-
</solr>
|
67
|
-
|
68
|
-
<%!
|
69
|
-
static void printThreadInfo(ThreadInfo ti, JspWriter out) throws IOException {
|
70
|
-
long tid = ti.getThreadId();
|
71
|
-
out.println(" <thread>");
|
72
|
-
out.println(" <id>" + tid + "</id>");
|
73
|
-
out.print(" <name>");
|
74
|
-
XML.escapeCharData(ti.getThreadName(), out);
|
75
|
-
out.println("</name>");
|
76
|
-
out.println(" <state>" + ti.getThreadState() + "</state>");
|
77
|
-
if (ti.getLockName() != null) {
|
78
|
-
out.println(" <lock>" + ti.getLockName() + "</lock>");
|
79
|
-
}
|
80
|
-
if (ti.isSuspended()) {
|
81
|
-
out.println(" <suspended/>");
|
82
|
-
}
|
83
|
-
if (ti.isInNative()) {
|
84
|
-
out.println(" <inNative/>");
|
85
|
-
}
|
86
|
-
if (tmbean.isThreadCpuTimeSupported()) {
|
87
|
-
out.println(" <cpuTime>" + formatNanos(tmbean.getThreadCpuTime(tid)) + "</cpuTime>");
|
88
|
-
out.println(" <userTime>" + formatNanos(tmbean.getThreadUserTime(tid)) + "</userTime>");
|
89
|
-
}
|
90
|
-
|
91
|
-
if (ti.getLockOwnerName() != null) {
|
92
|
-
out.println(" <owner>");
|
93
|
-
out.println(" <name>" + ti.getLockOwnerName() + "</name>");
|
94
|
-
out.println(" <id>" + ti.getLockOwnerId() + "</id>");
|
95
|
-
out.println(" </owner>");
|
96
|
-
}
|
97
|
-
out.println(" <stackTrace>");
|
98
|
-
for (StackTraceElement ste : ti.getStackTrace()) {
|
99
|
-
out.print(" <line>");
|
100
|
-
XML.escapeCharData("at " + ste.toString(), out);
|
101
|
-
out.println(" </line>");
|
102
|
-
}
|
103
|
-
out.println(" </stackTrace>");
|
104
|
-
out.println(" </thread>");
|
105
|
-
}
|
106
|
-
|
107
|
-
static String formatNanos(long ns) {
|
108
|
-
return String.format("%.4fms", ns / (double) 1000000);
|
109
|
-
}
|
110
|
-
%>
|
data/webapp/admin/threaddump.xsl
DELETED
@@ -1,103 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!--
|
3
|
-
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
-
contributor license agreements. See the NOTICE file distributed with
|
5
|
-
this work for additional information regarding copyright ownership.
|
6
|
-
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
-
(the "License"); you may not use this file except in compliance with
|
8
|
-
the License. You may obtain a copy of the License at
|
9
|
-
|
10
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
|
12
|
-
Unless required by applicable law or agreed to in writing, software
|
13
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
See the License for the specific language governing permissions and
|
16
|
-
limitations under the License.
|
17
|
-
-->
|
18
|
-
<!-- $Id$ -->
|
19
|
-
<!-- $URL$ -->
|
20
|
-
|
21
|
-
<xsl:stylesheet
|
22
|
-
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
23
|
-
version="1.0">
|
24
|
-
|
25
|
-
<xsl:output
|
26
|
-
method="html"
|
27
|
-
indent="yes"
|
28
|
-
encoding="utf-8"
|
29
|
-
media-type="text/html"
|
30
|
-
doctype-public="-//W3C//DTD HTML 4.01//EN"
|
31
|
-
doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
|
32
|
-
|
33
|
-
<xsl:template match="/">
|
34
|
-
<html>
|
35
|
-
<head>
|
36
|
-
<link rel="stylesheet" type="text/css" href="solr-admin.css"></link>
|
37
|
-
<link rel="icon" href="favicon.ico" type="image/ico"></link>
|
38
|
-
<link rel="shortcut icon" href="favicon.ico" type="image/ico"></link>
|
39
|
-
<title>Solr Info</title>
|
40
|
-
</head>
|
41
|
-
<body>
|
42
|
-
<a href=".">
|
43
|
-
<img border="0" align="right" height="78" width="142" src="solr_small.png" alt="Apache Solr"/>
|
44
|
-
</a>
|
45
|
-
<h1>Solr Admin (<xsl:value-of select="solr/meta/collection" />)</h1>
|
46
|
-
<h2>Thread Dump</h2>
|
47
|
-
<div style="margin-top: 1em;">
|
48
|
-
<table>
|
49
|
-
<xsl:apply-templates/>
|
50
|
-
</table>
|
51
|
-
<a href=".">Return to Admin Page</a>
|
52
|
-
</div>
|
53
|
-
</body>
|
54
|
-
</html>
|
55
|
-
</xsl:template>
|
56
|
-
|
57
|
-
<xsl:include href="meta.xsl"/>
|
58
|
-
|
59
|
-
<xsl:template match="solr/system/jvm">
|
60
|
-
<tr>
|
61
|
-
<td><xsl:value-of select="name"/> <xsl:value-of select="version"/></td>
|
62
|
-
</tr>
|
63
|
-
</xsl:template>
|
64
|
-
|
65
|
-
<xsl:template match="solr/system/threadCount">
|
66
|
-
<tr>
|
67
|
-
<td>
|
68
|
-
Thread Count:
|
69
|
-
current=<xsl:value-of select="current"/>,
|
70
|
-
peak=<xsl:value-of select="peak"/>,
|
71
|
-
daemon=<xsl:value-of select="daemon"/></td>
|
72
|
-
</tr>
|
73
|
-
</xsl:template>
|
74
|
-
|
75
|
-
<xsl:template match="solr/system/threadDump">
|
76
|
-
<div>Full Thread Dump:</div>
|
77
|
-
<xsl:for-each select="thread">
|
78
|
-
<!-- OG: TODO: add suspended/native conditionals -->
|
79
|
-
<tr>
|
80
|
-
<td style="margin-left: 1em; font-weight: bold;">
|
81
|
-
'<xsl:value-of select="name"/>'
|
82
|
-
Id=<xsl:value-of select="id"/>,
|
83
|
-
<xsl:value-of select="state"/>
|
84
|
-
on lock=<xsl:value-of select="lock"/>,
|
85
|
-
total cpu time=<xsl:value-of select="cpuTime"/>
|
86
|
-
user time=<xsl:value-of select="userTime"/>
|
87
|
-
</td>
|
88
|
-
</tr>
|
89
|
-
<xsl:apply-templates select="stackTrace"/>
|
90
|
-
</xsl:for-each>
|
91
|
-
</xsl:template>
|
92
|
-
|
93
|
-
<xsl:template match="stackTrace">
|
94
|
-
<tr>
|
95
|
-
<td style="margin-left: 1em;">
|
96
|
-
<xsl:for-each select="line">
|
97
|
-
<xsl:value-of select="."/><br/>
|
98
|
-
</xsl:for-each>
|
99
|
-
</td>
|
100
|
-
</tr>
|
101
|
-
</xsl:template>
|
102
|
-
|
103
|
-
</xsl:stylesheet>
|
data/webapp/index.jsp
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
<%@ page import="org.apache.solr.core.SolrCore" %>
|
2
|
-
<%@ page import="java.util.Collection" %>
|
3
|
-
<%--
|
4
|
-
Licensed to the Apache Software Foundation (ASF) under one or more
|
5
|
-
contributor license agreements. See the NOTICE file distributed with
|
6
|
-
this work for additional information regarding copyright ownership.
|
7
|
-
The ASF licenses this file to You under the Apache License, Version 2.0
|
8
|
-
(the "License"); you may not use this file except in compliance with
|
9
|
-
the License. You may obtain a copy of the License at
|
10
|
-
|
11
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
|
13
|
-
Unless required by applicable law or agreed to in writing, software
|
14
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
See the License for the specific language governing permissions and
|
17
|
-
limitations under the License.
|
18
|
-
--%>
|
19
|
-
|
20
|
-
<html>
|
21
|
-
<head>
|
22
|
-
<link rel="stylesheet" type="text/css" href="solr-admin.css">
|
23
|
-
<link rel="icon" href="favicon.ico" type="image/ico"></link>
|
24
|
-
<link rel="shortcut icon" href="favicon.ico" type="image/ico"></link>
|
25
|
-
<title>Welcome to Solr</title>
|
26
|
-
</head>
|
27
|
-
|
28
|
-
<body>
|
29
|
-
<h1>Welcome to Solr!</h1>
|
30
|
-
<a href="."><img border="0" align="right" height="78" width="142" src="admin/solr_small.png" alt="Solr"/></a>
|
31
|
-
|
32
|
-
<%
|
33
|
-
org.apache.solr.core.CoreContainer cores = (org.apache.solr.core.CoreContainer)request.getAttribute("org.apache.solr.CoreContainer");
|
34
|
-
Collection<SolrCore> solrCores = cores.getCores();
|
35
|
-
if( cores != null
|
36
|
-
&& solrCores.size() > 0 // HACK! check that we have valid names...
|
37
|
-
&& solrCores.iterator().next().getName().length() != 0 ) {
|
38
|
-
for( org.apache.solr.core.SolrCore core : cores.getCores() ) {
|
39
|
-
String coreName = core.getName();
|
40
|
-
if("".equals(coreName) ) coreName =".";
|
41
|
-
%>
|
42
|
-
<a href="<%= coreName %>/admin/">Admin <%= core.getName() %></a>
|
43
|
-
<br/>
|
44
|
-
<% }} else { %>
|
45
|
-
<a href="admin/">Solr Admin</a>
|
46
|
-
<% } %>
|
47
|
-
|
48
|
-
</body>
|
49
|
-
</html>
|