Class ManifoldCFJettyRunner


  • public class ManifoldCFJettyRunner
    extends java.lang.Object
    Run ManifoldCF with jetty.
    • 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+mcf
      static void runAgents​(IThreadContext tc)
      Run the agents process.
      void start()  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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)
      • 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
      • main

        public static void main​(java.lang.String[] args)
        A main class that starts jetty+mcf