Class ManifoldCFJettyRunner
- java.lang.Object
-
- org.apache.manifoldcf.jettyrunner.ManifoldCFJettyRunner
-
public class ManifoldCFJettyRunner extends java.lang.Object
Run ManifoldCF with jetty.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
_rcsid
static java.lang.String
apiServiceWarPathProperty
static java.lang.String
authorityServiceWarPathProperty
static java.lang.String
crawlerUIWarPathProperty
static java.lang.String
jettyConfigFileProperty
protected org.eclipse.jetty.server.Server
server
static java.lang.String
useJettyParentClassLoaderProperty
-
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 int
getLocalPort()
Returns the Local Port of the first Connector found for the jetty Server.protected void
initializeServer(java.lang.String crawlerWarPath, java.lang.String authorityServiceWarPath, java.lang.String apiWarPath, boolean useParentLoader)
static void
main(java.lang.String[] args)
A main class that starts jetty+mcfstatic void
runAgents(IThreadContext tc)
Run the agents process.void
start()
void
stop()
-
-
-
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 ManifoldCFException
Returns 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
-
-