Package org.apache.solr.cli
Class SolrProcessManager
java.lang.Object
org.apache.solr.cli.SolrProcessManager
Class to interact with Solr OS processes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a running Solr processstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProcessForPid(Long pid) Return the SolrProcess for a given PID, if it is runningbooleanisRunningWithPid(Long pid) booleanisRunningWithPort(Integer port) processForPort(Integer port) Scans the PID directory for Solr PID files and returns a list of SolrProcesses for each running Solr instance.
-
Field Details
-
enableTestingMode
public static boolean enableTestingMode
-
-
Constructor Details
-
SolrProcessManager
public SolrProcessManager()
-
-
Method Details
-
isRunningWithPort
-
isRunningWithPid
-
processForPort
-
getProcessForPid
Return the SolrProcess for a given PID, if it is running -
scanSolrPidFiles
Scans the PID directory for Solr PID files and returns a list of SolrProcesses for each running Solr instance. If a PID file is found but no process is running, the PID file is deleted. On Windows, the file is a 'PORT' file containing the port number.- Returns:
- a list of SolrProcesses for each running Solr instance
- Throws:
IOException
-
getAllRunning
-