Class Main

java.lang.Object
io.hawt.embedded.Main
All Implemented Interfaces:
Callable<Integer>

public class Main extends Object implements Callable<Integer>
A simple way to run hawtio embedded inside a JVM by booting up a Jetty server
  • Constructor Details

    • Main

      public Main()
  • Method Details

    • run

      public static void run(String... args)
    • call

      public Integer call() throws Exception
      Specified by:
      call in interface Callable<Integer>
      Throws:
      Exception
    • main

      public static void main(String[] args)
    • doRun

      public static void doRun(Main main)
    • run

      public String run() throws Exception
      Throws:
      Exception
    • run

      public String run(boolean join) throws Exception
      Throws:
      Exception
    • findThirdPartyPlugins

      protected void findThirdPartyPlugins(org.slf4j.Logger log, org.eclipse.jetty.server.handler.ContextHandlerCollection handlers, File tempDir)
    • findWar

      protected String findWar(String... paths)
      Strategy method where we could use some smarts to find the war using known paths or maybe the local maven repository?
    • isWarFileName

      protected boolean isWarFileName(String name)
    • showWelcome

      public void showWelcome(boolean welcome)
    • setWarLocation

      public void setWarLocation(String warLocation)
    • setWar

      public void setWar(String war)
    • setContextPath

      public void setContextPath(String contextPath)
    • setPlugins

      public void setPlugins(String plugins)
    • setHost

      public void setHost(String host)
    • setPort

      public void setPort(Integer port)
    • setExtraClassPath

      public void setExtraClassPath(String extraClassPath)
    • setJointServerThread

      public void setJointServerThread(boolean jointServerThread)
    • setOpenUrl

      public void setOpenUrl(boolean openUrl)
    • setKeyStore

      public void setKeyStore(String keyStore)
    • setKeyStorePass

      public void setKeyStorePass(String keyStorePass)
    • setConnections

      public void setConnections(Map<String,Optional<String>> connections)