Class WorkerServer


  • public class WorkerServer
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkerServer​(WorkerService workerService, org.apache.pulsar.broker.authentication.AuthenticationService authenticationService)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.Integer> getListenPortHTTP()  
      java.util.Optional<java.lang.Integer> getListenPortHTTPS()  
      static org.eclipse.jetty.servlet.ServletContextHandler newServletContextHandler​(java.lang.String contextPath, org.glassfish.jersey.server.ResourceConfig config, WorkerService workerService, boolean requireAuthentication, org.apache.pulsar.broker.authentication.AuthenticationService authenticationService)  
      static org.eclipse.jetty.servlet.ServletContextHandler newServletContextHandler​(java.lang.String contextPath, org.glassfish.jersey.server.ResourceConfig config, WorkerService workerService, org.apache.pulsar.broker.authentication.AuthenticationService authenticationService)  
      void start()  
      void stop()  
      • Methods inherited from class java.lang.Object

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

      • WorkerServer

        public WorkerServer​(WorkerService workerService,
                            org.apache.pulsar.broker.authentication.AuthenticationService authenticationService)
    • Method Detail

      • start

        public void start()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • newServletContextHandler

        public static org.eclipse.jetty.servlet.ServletContextHandler newServletContextHandler​(java.lang.String contextPath,
                                                                                               org.glassfish.jersey.server.ResourceConfig config,
                                                                                               WorkerService workerService,
                                                                                               org.apache.pulsar.broker.authentication.AuthenticationService authenticationService)
      • newServletContextHandler

        public static org.eclipse.jetty.servlet.ServletContextHandler newServletContextHandler​(java.lang.String contextPath,
                                                                                               org.glassfish.jersey.server.ResourceConfig config,
                                                                                               WorkerService workerService,
                                                                                               boolean requireAuthentication,
                                                                                               org.apache.pulsar.broker.authentication.AuthenticationService authenticationService)
      • stop

        public void stop()
      • getListenPortHTTP

        public java.util.Optional<java.lang.Integer> getListenPortHTTP()
      • getListenPortHTTPS

        public java.util.Optional<java.lang.Integer> getListenPortHTTPS()