%@ page import="org.apache.solr.core.SolrConfig,
org.apache.solr.core.SolrCore,
org.apache.solr.schema.IndexSchema,
java.io.File"%>
<%@ page import="java.net.InetAddress"%>
<%@ page import="java.net.UnknownHostException"%>
<%@ page import="java.util.Date"%>
<%
SolrCore core = SolrCore.getSolrCore();
Integer port = new Integer(request.getServerPort());
IndexSchema schema = core.getSchema();
String rootdir = "/var/opt/resin3/"+port.toString();
File pidFile = new File(rootdir + "/logs/resin.pid");
File enableFile = new File(rootdir + "/logs/server-enabled");
boolean isEnabled = false;
String enabledStatus = "";
String enableActionStatus = "";
String makeEnabled = "";
String action = request.getParameter("action");
String startTime = "";
try {
startTime = (pidFile.lastModified() > 0)
? new Date(pidFile.lastModified()).toString()
: "No Resin Pid found (logs/resin.pid)";
} catch (Exception e) {
out.println("
SOLR |
[Status]
[Schema]
[Config]
[Analysis]
[Statistics] [Info] [Distribution] [Ping] |
App server: |
[Java Properties] [Thread Dump] <% if (isEnabled) { %> [Disable] <% } else { %> [Enable] <% } %> |
Hardware: |
[Status] [Traffic] [Problems] |
Make a Query |
[Full Interface] | |
StyleSheet: Query: |
Assistance |
[Documentation]
[Issue Tracker]
[Send Email]
[Lucene Query Syntax] |
Current Time: <%= new Date().toString() %> | |
Server Start At: <%= startTime %> |