tanning_bed_solr 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.bnsignore +18 -0
- data/.gitignore +9 -0
- data/History.txt +4 -0
- data/README.txt +45 -0
- data/Rakefile +18 -0
- data/lib/tanning_bed_solr.rb +65 -0
- data/vendor/solr/README.txt +42 -0
- data/vendor/solr/etc/jetty.xml +212 -0
- data/vendor/solr/etc/webdefault.xml +379 -0
- data/vendor/solr/example-DIH/README.txt +43 -0
- data/vendor/solr/example-DIH/hsqldb/ex.backup +0 -0
- data/vendor/solr/example-DIH/hsqldb/ex.data +0 -0
- data/vendor/solr/example-DIH/hsqldb/ex.log +2 -0
- data/vendor/solr/example-DIH/hsqldb/ex.properties +17 -0
- data/vendor/solr/example-DIH/hsqldb/ex.script +12 -0
- data/vendor/solr/example-DIH/solr/db/conf/admin-extra.html +31 -0
- data/vendor/solr/example-DIH/solr/db/conf/db-data-config.xml +31 -0
- data/vendor/solr/example-DIH/solr/db/conf/elevate.xml +36 -0
- data/vendor/solr/example-DIH/solr/db/conf/protwords.txt +21 -0
- data/vendor/solr/example-DIH/solr/db/conf/schema.xml +356 -0
- data/vendor/solr/example-DIH/solr/db/conf/scripts.conf +24 -0
- data/vendor/solr/example-DIH/solr/db/conf/solrconfig.xml +705 -0
- data/vendor/solr/example-DIH/solr/db/conf/stopwords.txt +58 -0
- data/vendor/solr/example-DIH/solr/db/conf/synonyms.txt +31 -0
- data/vendor/solr/example-DIH/solr/db/conf/xslt/example.xsl +132 -0
- data/vendor/solr/example-DIH/solr/db/conf/xslt/example_atom.xsl +63 -0
- data/vendor/solr/example-DIH/solr/db/conf/xslt/example_rss.xsl +62 -0
- data/vendor/solr/example-DIH/solr/db/conf/xslt/luke.xsl +345 -0
- data/vendor/solr/example-DIH/solr/db/lib/hsqldb-1.8.0.10.jar +0 -0
- data/vendor/solr/example-DIH/solr/mail/conf/data-config.xml +11 -0
- data/vendor/solr/example-DIH/solr/mail/conf/protwords.txt +21 -0
- data/vendor/solr/example-DIH/solr/mail/conf/schema.xml +370 -0
- data/vendor/solr/example-DIH/solr/mail/conf/solrconfig.xml +807 -0
- data/vendor/solr/example-DIH/solr/mail/conf/stopwords.txt +58 -0
- data/vendor/solr/example-DIH/solr/mail/conf/synonyms.txt +31 -0
- data/vendor/solr/example-DIH/solr/rss/conf/admin-extra.html +31 -0
- data/vendor/solr/example-DIH/solr/rss/conf/elevate.xml +36 -0
- data/vendor/solr/example-DIH/solr/rss/conf/protwords.txt +21 -0
- data/vendor/solr/example-DIH/solr/rss/conf/rss-data-config.xml +26 -0
- data/vendor/solr/example-DIH/solr/rss/conf/schema.xml +316 -0
- data/vendor/solr/example-DIH/solr/rss/conf/scripts.conf +24 -0
- data/vendor/solr/example-DIH/solr/rss/conf/solrconfig.xml +704 -0
- data/vendor/solr/example-DIH/solr/rss/conf/stopwords.txt +58 -0
- data/vendor/solr/example-DIH/solr/rss/conf/synonyms.txt +31 -0
- data/vendor/solr/example-DIH/solr/solr.xml +8 -0
- data/vendor/solr/exampledocs/books.csv +11 -0
- data/vendor/solr/exampledocs/hd.xml +48 -0
- data/vendor/solr/exampledocs/ipod_other.xml +52 -0
- data/vendor/solr/exampledocs/ipod_video.xml +36 -0
- data/vendor/solr/exampledocs/mem.xml +60 -0
- data/vendor/solr/exampledocs/monitor.xml +31 -0
- data/vendor/solr/exampledocs/monitor2.xml +30 -0
- data/vendor/solr/exampledocs/mp500.xml +39 -0
- data/vendor/solr/exampledocs/payload.xml +57 -0
- data/vendor/solr/exampledocs/post.jar +0 -0
- data/vendor/solr/exampledocs/post.sh +28 -0
- data/vendor/solr/exampledocs/sd500.xml +34 -0
- data/vendor/solr/exampledocs/solr.xml +38 -0
- data/vendor/solr/exampledocs/test_utf8.sh +83 -0
- data/vendor/solr/exampledocs/utf8-example.xml +42 -0
- data/vendor/solr/exampledocs/vidcard.xml +54 -0
- data/vendor/solr/lib/jetty-6.1.3.jar +0 -0
- data/vendor/solr/lib/jetty-util-6.1.3.jar +0 -0
- data/vendor/solr/lib/jsp-2.1/ant-1.6.5.jar +0 -0
- data/vendor/solr/lib/jsp-2.1/core-3.1.1.jar +0 -0
- data/vendor/solr/lib/jsp-2.1/jsp-2.1.jar +0 -0
- data/vendor/solr/lib/jsp-2.1/jsp-api-2.1.jar +0 -0
- data/vendor/solr/lib/servlet-api-2.5-6.1.3.jar +0 -0
- data/vendor/solr/logs/.keep +0 -0
- data/vendor/solr/multicore/README.txt +3 -0
- data/vendor/solr/multicore/core0/conf/schema.xml +41 -0
- data/vendor/solr/multicore/core0/conf/solrconfig.xml +40 -0
- data/vendor/solr/multicore/core1/conf/schema.xml +41 -0
- data/vendor/solr/multicore/core1/conf/solrconfig.xml +40 -0
- data/vendor/solr/multicore/exampledocs/ipod_other.xml +34 -0
- data/vendor/solr/multicore/exampledocs/ipod_video.xml +22 -0
- data/vendor/solr/multicore/solr.xml +35 -0
- data/vendor/solr/solr/README.txt +54 -0
- data/vendor/solr/solr/conf/admin-extra.html +31 -0
- data/vendor/solr/solr/conf/elevate.xml +36 -0
- data/vendor/solr/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/vendor/solr/solr/conf/protwords.txt +21 -0
- data/vendor/solr/solr/conf/schema.xml +126 -0
- data/vendor/solr/solr/conf/scripts.conf +24 -0
- data/vendor/solr/solr/conf/solrconfig.xml +458 -0
- data/vendor/solr/solr/conf/spellings.txt +2 -0
- data/vendor/solr/solr/conf/stopwords.txt +58 -0
- data/vendor/solr/solr/conf/synonyms.txt +31 -0
- data/vendor/solr/solr/conf/xslt/example.xsl +132 -0
- data/vendor/solr/solr/conf/xslt/example_atom.xsl +67 -0
- data/vendor/solr/solr/conf/xslt/example_rss.xsl +66 -0
- data/vendor/solr/solr/conf/xslt/luke.xsl +337 -0
- data/vendor/solr/start.jar +0 -0
- data/vendor/solr/webapps/solr.war +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/jsp/org/apache/jsp/admin/index_jsp.class +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/jsp/org/apache/jsp/index_jsp.class +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/META-INF/LICENSE.txt +1086 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/META-INF/NOTICE.txt +254 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/apache-solr-core-1.4.0.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/apache-solr-dataimporthandler-1.4.0.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/apache-solr-solrj-1.4.0.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/commons-codec-1.3.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/commons-csv-1.0-SNAPSHOT-r609327.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/commons-fileupload-1.2.1.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/commons-httpclient-3.1.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/commons-io-1.4.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/geronimo-stax-api_1.0_spec-1.0.1.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/jcl-over-slf4j-1.5.5.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-analyzers-2.9.1.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-core-2.9.1.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-highlighter-2.9.1.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-memory-2.9.1.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-misc-2.9.1.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-queries-2.9.1.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-snowball-2.9.1.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-spellchecker-2.9.1.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/slf4j-api-1.5.5.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/slf4j-jdk14-1.5.5.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/wstx-asl-3.2.7.jar +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/web.xml +148 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/weblogic.xml +12 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/_info.jsp +118 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/action.jsp +94 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/analysis.jsp +498 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/analysis.xsl +179 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/dataimport.jsp +54 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/debug.jsp +106 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/distributiondump.jsp +160 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/favicon.ico +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/form.jsp +137 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/get-file.jsp +72 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/get-properties.jsp +24 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/header.jsp +41 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/index.jsp +156 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/jquery-1.2.3.min.js +32 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/meta.xsl +34 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/ping.jsp +52 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/ping.xsl +71 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/raw-schema.jsp +38 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/registry.jsp +107 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/registry.xsl +321 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/replication/header.jsp +89 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/replication/index.jsp +378 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/schema.jsp +657 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/solr-admin.css +215 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/solr_small.png +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/stats.jsp +92 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/stats.xsl +220 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/tabular.xsl +141 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/threaddump.jsp +110 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/threaddump.xsl +103 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/favicon.ico +0 -0
- data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/index.jsp +42 -0
- data/version.txt +1 -0
- metadata +251 -0
data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/replication/header.jsp
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
<%@ page contentType="text/html; charset=utf-8" pageEncoding="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: header.jsp 809125 2009-08-29 12:46:54Z noble $ -->
|
19
|
+
<%@ page import="org.apache.solr.common.util.NamedList,
|
20
|
+
org.apache.solr.common.util.SimpleOrderedMap,
|
21
|
+
org.apache.solr.request.LocalSolrQueryRequest,
|
22
|
+
org.apache.solr.request.SolrQueryResponse,
|
23
|
+
org.apache.solr.request.SolrRequestHandler,
|
24
|
+
java.util.Map"%>
|
25
|
+
<%@ page import="org.apache.solr.handler.ReplicationHandler" %>
|
26
|
+
<%
|
27
|
+
request.setCharacterEncoding("UTF-8");
|
28
|
+
%>
|
29
|
+
|
30
|
+
<html>
|
31
|
+
<head>
|
32
|
+
|
33
|
+
<%@include file="../_info.jsp" %>
|
34
|
+
|
35
|
+
<script>
|
36
|
+
var host_name="<%= hostname %>"
|
37
|
+
</script>
|
38
|
+
|
39
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
40
|
+
<link rel="stylesheet" type="text/css" href="../solr-admin.css">
|
41
|
+
<link rel="icon" href="../favicon.ico" type="image/ico" />
|
42
|
+
<link rel="shortcut icon" href="../favicon.ico" type="image/ico" />
|
43
|
+
<title>Solr replication admin page</title>
|
44
|
+
<script type="text/javascript" src="../jquery-1.2.3.min.js"></script>
|
45
|
+
|
46
|
+
<%!
|
47
|
+
public NamedList executeCommand(String command, SolrCore core, SolrRequestHandler rh){
|
48
|
+
NamedList namedlist = new SimpleOrderedMap();
|
49
|
+
namedlist.add("command", command);
|
50
|
+
LocalSolrQueryRequest solrqreq = new LocalSolrQueryRequest(core, namedlist);
|
51
|
+
SolrQueryResponse rsp = new SolrQueryResponse();
|
52
|
+
core.execute(rh, solrqreq, rsp);
|
53
|
+
namedlist = rsp.getValues();
|
54
|
+
return namedlist;
|
55
|
+
}
|
56
|
+
%>
|
57
|
+
|
58
|
+
<%
|
59
|
+
final Map<String,SolrRequestHandler> all = core.getRequestHandlers(ReplicationHandler.class);
|
60
|
+
if(all.isEmpty()){
|
61
|
+
response.sendError( 404, "No ReplicationHandler registered" );
|
62
|
+
return;
|
63
|
+
}
|
64
|
+
|
65
|
+
// :HACK: we should be more deterministic if multiple instances
|
66
|
+
final SolrRequestHandler rh = all.values().iterator().next();
|
67
|
+
|
68
|
+
NamedList namedlist = executeCommand("details",core,rh);
|
69
|
+
NamedList detailsMap = (NamedList)namedlist.get("details");
|
70
|
+
%>
|
71
|
+
</head>
|
72
|
+
|
73
|
+
<body>
|
74
|
+
<a href=".."><img border="0" align="right" height="78" width="142" src="../solr_small.png" alt="Solr"></a>
|
75
|
+
<h1>Solr replication (<%= collectionName %>)
|
76
|
+
|
77
|
+
<%
|
78
|
+
if(detailsMap != null){
|
79
|
+
if( "true".equals(detailsMap.get("isMaster")) && "true".equals(detailsMap.get("isSlave")))
|
80
|
+
out.println(" Master & Slave");
|
81
|
+
else if("true".equals(detailsMap.get("isMaster")))
|
82
|
+
out.println(" Master");
|
83
|
+
else if("true".equals(detailsMap.get("isSlave")))
|
84
|
+
out.println(" Slave");
|
85
|
+
}
|
86
|
+
%></h1>
|
87
|
+
|
88
|
+
<%= hostname %>:<%= port %><br/>
|
89
|
+
cwd=<%= cwd %> SolrHome=<%= solrHome %>
|
data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/replication/index.jsp
ADDED
@@ -0,0 +1,378 @@
|
|
1
|
+
<%@ page contentType="text/html; charset=utf-8" pageEncoding="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
|
+
Unless required by applicable law or agreed to in writing, software
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
See the License for the specific language governing permissions and
|
15
|
+
limitations under the License.
|
16
|
+
--%>
|
17
|
+
<%@ page import="java.util.Collection" %>
|
18
|
+
<%@ page import="java.util.Date" %>
|
19
|
+
|
20
|
+
|
21
|
+
<%-- do a verbatim include so we can use the local vars --%>
|
22
|
+
<%@include file="header.jsp"%>
|
23
|
+
|
24
|
+
<br clear="all" />
|
25
|
+
(<a href="http://wiki.apache.org/solr/SolrReplication">What Is This Page?</a>)
|
26
|
+
<br clear="all" />
|
27
|
+
<table>
|
28
|
+
|
29
|
+
<%
|
30
|
+
|
31
|
+
final SolrCore solrcore = core;
|
32
|
+
|
33
|
+
%>
|
34
|
+
<%
|
35
|
+
NamedList slave = null, master = null;
|
36
|
+
if (detailsMap != null)
|
37
|
+
if ("true".equals(detailsMap.get("isSlave")))
|
38
|
+
if(detailsMap.get("slave") != null){
|
39
|
+
slave = (NamedList)detailsMap.get("slave");%>
|
40
|
+
<tr>
|
41
|
+
<td>
|
42
|
+
<strong>Master</strong>
|
43
|
+
</td>
|
44
|
+
<td>
|
45
|
+
<%=slave.get("masterUrl")%>
|
46
|
+
<%
|
47
|
+
NamedList nl = (NamedList) slave.get("masterDetails");
|
48
|
+
if(nl == null)
|
49
|
+
out.print(" - <b>Unreachable</b>");
|
50
|
+
%>
|
51
|
+
</td>
|
52
|
+
</tr>
|
53
|
+
<%
|
54
|
+
if (nl != null) {
|
55
|
+
nl = (NamedList) nl.get("master");
|
56
|
+
if(nl != null){
|
57
|
+
%>
|
58
|
+
<tr>
|
59
|
+
<td>
|
60
|
+
</td>
|
61
|
+
<td>Latest Index Version:<%=nl.get("indexVersion")%>, Generation: <%=nl.get("generation")%>
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
<tr>
|
65
|
+
<td></td>
|
66
|
+
<td>Replicatable Index Version:<%=nl.get("replicatableIndexVersion")%>, Generation: <%=nl.get("replicatableGeneration")%>
|
67
|
+
</td>
|
68
|
+
</tr>
|
69
|
+
<%
|
70
|
+
}
|
71
|
+
}%>
|
72
|
+
|
73
|
+
<tr>
|
74
|
+
<td>
|
75
|
+
<strong>Poll Interval</strong>
|
76
|
+
</td>
|
77
|
+
<td>
|
78
|
+
<%=slave.get("pollInterval")%>
|
79
|
+
</td>
|
80
|
+
</tr>
|
81
|
+
<%}%>
|
82
|
+
|
83
|
+
<tr>
|
84
|
+
<td>
|
85
|
+
<strong>Local Index</strong>
|
86
|
+
</td>
|
87
|
+
<td>
|
88
|
+
<%
|
89
|
+
if (detailsMap != null)
|
90
|
+
out.println("Index Version: " + detailsMap.get("indexVersion") + ", Generation: " + detailsMap.get("generation"));
|
91
|
+
%>
|
92
|
+
</td>
|
93
|
+
</tr>
|
94
|
+
|
95
|
+
<tr>
|
96
|
+
<td>
|
97
|
+
</td>
|
98
|
+
<td>
|
99
|
+
<% if (null != core.getIndexDir()) {
|
100
|
+
File dir = new File(core.getIndexDir());
|
101
|
+
out.println("Location: " + dir.getCanonicalPath());
|
102
|
+
}%>
|
103
|
+
</td>
|
104
|
+
</tr>
|
105
|
+
|
106
|
+
<tr>
|
107
|
+
<td></td>
|
108
|
+
<td><% if (detailsMap != null)
|
109
|
+
out.println("Size: " + detailsMap.get("indexSize"));
|
110
|
+
%>
|
111
|
+
</td>
|
112
|
+
</tr>
|
113
|
+
|
114
|
+
<%
|
115
|
+
if (detailsMap != null)
|
116
|
+
if ("true".equals(detailsMap.get("isMaster")))
|
117
|
+
if(detailsMap.get("master") != null){
|
118
|
+
master = (NamedList) detailsMap.get("master");
|
119
|
+
%>
|
120
|
+
|
121
|
+
<tr>
|
122
|
+
<td></td>
|
123
|
+
<td>
|
124
|
+
<%out.println("Config Files To Replicate: " + master.get("confFiles"));%>
|
125
|
+
</td>
|
126
|
+
</tr>
|
127
|
+
|
128
|
+
<tr>
|
129
|
+
<td></td>
|
130
|
+
<td>
|
131
|
+
<%out.println("Trigger Replication On: " + master.get("replicateAfter")); %>
|
132
|
+
</td>
|
133
|
+
</tr>
|
134
|
+
<%}%>
|
135
|
+
|
136
|
+
<%
|
137
|
+
if ("true".equals(detailsMap.get("isSlave")))
|
138
|
+
if (slave != null) {%>
|
139
|
+
<tr>
|
140
|
+
<td>
|
141
|
+
</td>
|
142
|
+
<td>
|
143
|
+
<%
|
144
|
+
out.println("Times Replicated Since Startup: " + slave.get("timesIndexReplicated"));
|
145
|
+
%>
|
146
|
+
</td>
|
147
|
+
</tr>
|
148
|
+
|
149
|
+
<tr>
|
150
|
+
<td>
|
151
|
+
</td>
|
152
|
+
<td>
|
153
|
+
<%
|
154
|
+
out.println("Previous Replication Done At: " + slave.get("indexReplicatedAt"));
|
155
|
+
%>
|
156
|
+
</td>
|
157
|
+
</tr>
|
158
|
+
|
159
|
+
<tr>
|
160
|
+
<td>
|
161
|
+
</td>
|
162
|
+
<td>
|
163
|
+
<%
|
164
|
+
out.println("Config Files Replicated At: " + slave.get("confFilesReplicatedAt"));
|
165
|
+
%>
|
166
|
+
</td>
|
167
|
+
</tr>
|
168
|
+
|
169
|
+
<tr>
|
170
|
+
<td>
|
171
|
+
</td>
|
172
|
+
<td>
|
173
|
+
<%
|
174
|
+
out.println("Config Files Replicated: " + slave.get("confFilesReplicated"));
|
175
|
+
%>
|
176
|
+
</td>
|
177
|
+
</tr>
|
178
|
+
|
179
|
+
<tr>
|
180
|
+
<td>
|
181
|
+
</td>
|
182
|
+
<td>
|
183
|
+
<%
|
184
|
+
out.println("Times Config Files Replicated Since Startup: " + slave.get("timesConfigReplicated"));
|
185
|
+
%>
|
186
|
+
</td>
|
187
|
+
</tr>
|
188
|
+
|
189
|
+
<tr>
|
190
|
+
<td>
|
191
|
+
</td>
|
192
|
+
<td>
|
193
|
+
<%
|
194
|
+
if (slave.get("nextExecutionAt") != null)
|
195
|
+
if (slave.get("nextExecutionAt") != "")
|
196
|
+
out.println("Next Replication Cycle At: " + slave.get("nextExecutionAt"));
|
197
|
+
else if ("true".equals(slave.get("isPollingDisabled")))
|
198
|
+
out.println("Next Replication Cycle At: Polling disabled.");
|
199
|
+
else {
|
200
|
+
NamedList nl1 = (NamedList) slave.get("masterDetails");
|
201
|
+
if(nl1 != null){
|
202
|
+
NamedList nl2 = (NamedList) nl1.get("master");
|
203
|
+
if(nl2 != null)
|
204
|
+
out.println("Next Replication Cycle At: After " + nl2.get("replicateAfter") + " on master.");
|
205
|
+
}
|
206
|
+
}
|
207
|
+
%>
|
208
|
+
</td>
|
209
|
+
</tr>
|
210
|
+
|
211
|
+
<%
|
212
|
+
if ("true".equals(slave.get("isReplicating"))) {
|
213
|
+
%>
|
214
|
+
<tr>
|
215
|
+
<td><strong>Current Replication Status</strong>
|
216
|
+
|
217
|
+
<td>
|
218
|
+
<%out.println("Start Time: " + slave.get("replicationStartTime"));%>
|
219
|
+
</td>
|
220
|
+
</tr>
|
221
|
+
|
222
|
+
<tr>
|
223
|
+
<td></td>
|
224
|
+
<td>
|
225
|
+
<%
|
226
|
+
out.println("Files Downloaded: " + slave.get("numFilesDownloaded") + " / " + slave.get("numFilesToDownload"));%>
|
227
|
+
</td>
|
228
|
+
</tr>
|
229
|
+
|
230
|
+
<tr>
|
231
|
+
<td></td>
|
232
|
+
<td>
|
233
|
+
<%
|
234
|
+
out.println("Downloaded: " + slave.get("bytesDownloaded") + " / " + slave.get("bytesToDownload") + " [" + slave.get("totalPercent") + "%]");%>
|
235
|
+
</td>
|
236
|
+
</tr>
|
237
|
+
|
238
|
+
<tr>
|
239
|
+
<td></td>
|
240
|
+
<td>
|
241
|
+
<%
|
242
|
+
out.println("Downloading File: " + slave.get("currentFile") + ", Downloaded: " + slave.get("currentFileSizeDownloaded") + " / " + slave.get("currentFileSize") + " [" + slave.get("currentFileSizePercent") + "%]");%>
|
243
|
+
</td>
|
244
|
+
</tr>
|
245
|
+
|
246
|
+
<tr>
|
247
|
+
<td></td>
|
248
|
+
<td>
|
249
|
+
<%
|
250
|
+
out.println("Time Elapsed: " + slave.get("timeElapsed") + ", Estimated Time Remaining: " + slave.get("timeRemaining") + ", Speed: " + slave.get("downloadSpeed") + "/s");%>
|
251
|
+
</td>
|
252
|
+
</tr>
|
253
|
+
<%}%>
|
254
|
+
|
255
|
+
<tr>
|
256
|
+
<td><strong>Controls</strong>
|
257
|
+
</td>
|
258
|
+
<td><%
|
259
|
+
String pollVal = request.getParameter("poll");
|
260
|
+
if (pollVal != null)
|
261
|
+
if (pollVal.equals("disable"))
|
262
|
+
executeCommand("disablepoll", core, rh);
|
263
|
+
else if (pollVal.equals("enable"))
|
264
|
+
executeCommand("enablepoll", core, rh);
|
265
|
+
if(slave != null)
|
266
|
+
if ("false".equals(slave.get("isPollingDisabled"))) {
|
267
|
+
%>
|
268
|
+
|
269
|
+
<form name=polling method="POST" action="./index.jsp" accept-charset="UTF-8">
|
270
|
+
<input name="poll" type="hidden" value="disable">
|
271
|
+
<input class="stdbutton" type="submit" value="Disable Poll">
|
272
|
+
</form>
|
273
|
+
|
274
|
+
<%}%>
|
275
|
+
<%
|
276
|
+
if(slave != null)
|
277
|
+
if ("true".equals(slave.get("isPollingDisabled"))) {
|
278
|
+
%>
|
279
|
+
|
280
|
+
<form name=polling method="POST" action="./index.jsp" accept-charset="UTF-8">
|
281
|
+
<input name="poll" type="hidden" value="enable">
|
282
|
+
<input class="stdbutton" type="submit" value="Enable Poll">
|
283
|
+
</form>
|
284
|
+
<%
|
285
|
+
}
|
286
|
+
%>
|
287
|
+
|
288
|
+
</td>
|
289
|
+
</tr>
|
290
|
+
|
291
|
+
<tr>
|
292
|
+
<td></td>
|
293
|
+
<td>
|
294
|
+
<form name=replicate method="POST" action="./index.jsp" accept-charset="UTF-8">
|
295
|
+
<input name="replicate" type="hidden" value="now">
|
296
|
+
<input name="replicateButton" class="stdbutton" type="submit" value="Replicate Now">
|
297
|
+
</form>
|
298
|
+
<%
|
299
|
+
if(slave != null)
|
300
|
+
if ("true".equals(slave.get("isReplicating"))) {
|
301
|
+
%>
|
302
|
+
<script type="text/javascript">
|
303
|
+
document["replicate"].replicateButton.disabled = true;
|
304
|
+
document["replicate"].replicateButton.className = 'stdbuttondis';
|
305
|
+
</script>
|
306
|
+
<form name=abort method="POST" action="./index.jsp" accept-charset="UTF-8">
|
307
|
+
<input name="abort" type="hidden" value="stop">
|
308
|
+
<input name="abortButton" class="stdbutton" type="submit" value="Abort">
|
309
|
+
</form>
|
310
|
+
|
311
|
+
<%} else {%>
|
312
|
+
<script type="text/javascript">
|
313
|
+
document["replicate"].replicateButton.disabled = false;
|
314
|
+
document["replicate"].replicateButton.className = 'stdbutton';
|
315
|
+
</script>
|
316
|
+
<%
|
317
|
+
}
|
318
|
+
String replicateParam = request.getParameter("replicate");
|
319
|
+
String abortParam = request.getParameter("abort");
|
320
|
+
if (replicateParam != null)
|
321
|
+
if (replicateParam.equals("now")) {
|
322
|
+
executeCommand("fetchindex", solrcore, rh);
|
323
|
+
}
|
324
|
+
if (abortParam != null)
|
325
|
+
if (abortParam.equals("stop")) {
|
326
|
+
executeCommand("abortfetch", solrcore, rh);
|
327
|
+
}
|
328
|
+
%>
|
329
|
+
</td>
|
330
|
+
|
331
|
+
</tr>
|
332
|
+
|
333
|
+
<%}%>
|
334
|
+
|
335
|
+
<%-- List the cores (that arent this one) so we can switch --%>
|
336
|
+
<% org.apache.solr.core.CoreContainer cores = (org.apache.solr.core.CoreContainer) request.getAttribute("org.apache.solr.CoreContainer");
|
337
|
+
if (cores != null) {
|
338
|
+
Collection<String> names = cores.getCoreNames();
|
339
|
+
if (names.size() > 1) {%>
|
340
|
+
<tr>
|
341
|
+
<td><strong>Cores:</strong><br></td>
|
342
|
+
<td><%
|
343
|
+
for (String name : names) {
|
344
|
+
%>[<a href="../../../<%=name%>/admin/index.jsp"><%=name%>
|
345
|
+
</a>]<%
|
346
|
+
}%></td>
|
347
|
+
</tr>
|
348
|
+
<%
|
349
|
+
}
|
350
|
+
}%>
|
351
|
+
|
352
|
+
|
353
|
+
</table>
|
354
|
+
<P>
|
355
|
+
|
356
|
+
<p>
|
357
|
+
|
358
|
+
<table>
|
359
|
+
<tr>
|
360
|
+
<td>
|
361
|
+
</td>
|
362
|
+
<td>
|
363
|
+
Current Time: <%= new Date() %>
|
364
|
+
</td>
|
365
|
+
</tr>
|
366
|
+
<tr>
|
367
|
+
<td>
|
368
|
+
</td>
|
369
|
+
<td>
|
370
|
+
Server Start At: <%= new Date(core.getStartTime()) %>
|
371
|
+
</td>
|
372
|
+
</tr>
|
373
|
+
</table>
|
374
|
+
|
375
|
+
<br>
|
376
|
+
<a href="..">Return to Admin Page</a>
|
377
|
+
</body>
|
378
|
+
</html>
|