Class JettyServerComponent

  • All Implemented Interfaces:
    ManagementComponent

    public class JettyServerComponent
    extends java.lang.Object
    implements ManagementComponent
    This class can be used for configuring and starting a Jetty webserver for the adapter.

    You must provide the jetty config file in the bootstrap.properties file for a Jetty instance to startup.
    See the Jetty Guide for more information on configuration options.

    For adding webapps to the server the jettyWebappBase parameter can be used.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      Destroy the management component making it require re-initialisation.
      void init​(java.util.Properties properties)
      Initialise the management component.
      void setClassLoader​(java.lang.ClassLoader classLoader)  
      void start()
      Had to do some tricks for proper classloading.
      void stop()
      Stop the management component.
      • Methods inherited from class java.lang.Object

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

      • DEFAULT_JETTY_PORT

        public static final java.lang.String DEFAULT_JETTY_PORT
        See Also:
        Constant Field Values
      • ATTR_JMX_SERVICE_URL

        public static final java.lang.String ATTR_JMX_SERVICE_URL
        See Also:
        Constant Field Values
      • ATTR_JMX_ADAPTER_UID

        public static final java.lang.String ATTR_JMX_ADAPTER_UID
        See Also:
        Constant Field Values
      • SERVER_ID

        public static final java.lang.String SERVER_ID
      • ATTR_BOOTSTRAP_KEYS

        public static final java.lang.String[] ATTR_BOOTSTRAP_KEYS
    • Constructor Detail

      • JettyServerComponent

        public JettyServerComponent()
    • Method Detail

      • init

        public void init​(java.util.Properties properties)
                  throws java.lang.Exception
        Description copied from interface: ManagementComponent
        Initialise the management component.
        Specified by:
        init in interface ManagementComponent
        Parameters:
        properties - configuration properties that have been built during bootstrap.
        Throws:
        java.lang.Exception - if initialisation fails.
      • start

        public void start()
                   throws java.lang.Exception
        Had to do some tricks for proper classloading.
        Specified by:
        start in interface ManagementComponent
        Throws:
        java.lang.Exception
      • destroy

        public void destroy()
                     throws java.lang.Exception
        Description copied from interface: ManagementComponent
        Destroy the management component making it require re-initialisation.
        Specified by:
        destroy in interface ManagementComponent
        Throws:
        java.lang.Exception