Class ManifoldCFJettyRunner
- java.lang.Object
-
- org.apache.manifoldcf.jettyrunner.ManifoldCFJettyRunner
-
public class ManifoldCFJettyRunner extends java.lang.ObjectRun ManifoldCF with jetty.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsidstatic java.lang.StringapiServiceWarPathPropertystatic java.lang.StringauthorityServiceWarPathPropertystatic java.lang.StringcrawlerUIWarPathPropertystatic java.lang.StringjettyConfigFilePropertyprotected org.eclipse.jetty.server.Serverserverstatic java.lang.StringuseJettyParentClassLoaderProperty
-
Constructor Summary
Constructors Constructor Description ManifoldCFJettyRunner(int port, java.lang.String crawlerWarPath, java.lang.String authorityServiceWarPath, java.lang.String apiWarPath, boolean useParentLoader)ManifoldCFJettyRunner(java.io.File configFile, java.lang.String crawlerWarPath, java.lang.String authorityServiceWarPath, java.lang.String apiWarPath, boolean useParentLoader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLocalPort()Returns the Local Port of the first Connector found for the jetty Server.protected voidinitializeServer(java.lang.String crawlerWarPath, java.lang.String authorityServiceWarPath, java.lang.String apiWarPath, boolean useParentLoader)static voidmain(java.lang.String[] args)A main class that starts jetty+mcfstatic voidrunAgents(IThreadContext tc)Run the agents process.voidstart()voidstop()
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
crawlerUIWarPathProperty
public static final java.lang.String crawlerUIWarPathProperty
- See Also:
- Constant Field Values
-
authorityServiceWarPathProperty
public static final java.lang.String authorityServiceWarPathProperty
- See Also:
- Constant Field Values
-
apiServiceWarPathProperty
public static final java.lang.String apiServiceWarPathProperty
- See Also:
- Constant Field Values
-
useJettyParentClassLoaderProperty
public static final java.lang.String useJettyParentClassLoaderProperty
- See Also:
- Constant Field Values
-
jettyConfigFileProperty
public static final java.lang.String jettyConfigFileProperty
- See Also:
- Constant Field Values
-
server
protected org.eclipse.jetty.server.Server server
-
-
Constructor Detail
-
ManifoldCFJettyRunner
public ManifoldCFJettyRunner(java.io.File configFile, java.lang.String crawlerWarPath, java.lang.String authorityServiceWarPath, java.lang.String apiWarPath, boolean useParentLoader) throws java.lang.Exception- Throws:
java.lang.Exception
-
ManifoldCFJettyRunner
public ManifoldCFJettyRunner(int port, java.lang.String crawlerWarPath, java.lang.String authorityServiceWarPath, java.lang.String apiWarPath, boolean useParentLoader)
-
-
Method Detail
-
initializeServer
protected void initializeServer(java.lang.String crawlerWarPath, java.lang.String authorityServiceWarPath, java.lang.String apiWarPath, boolean useParentLoader)
-
start
public void start() throws ManifoldCFException- Throws:
ManifoldCFException
-
stop
public void stop() throws ManifoldCFException- Throws:
ManifoldCFException
-
getLocalPort
public int getLocalPort() throws ManifoldCFExceptionReturns the Local Port of the first Connector found for the jetty Server.- Returns:
- the port number.
- Throws:
ManifoldCFException
-
runAgents
public static void runAgents(IThreadContext tc) throws ManifoldCFException
Run the agents process. This method will not return unless the agents process is shut down.- Throws:
ManifoldCFException
-
main
public static void main(java.lang.String[] args)
A main class that starts jetty+mcf
-
-