Object

org.apache.spark.ui

JettyUtils

Related Doc: package ui

Permalink

object JettyUtils extends Logging

Utilities for launching a web server using Jetty's HTTP Server class

Linear Supertypes
Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JettyUtils
  2. Logging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Responder[T] = (HttpServletRequest) ⇒ T

    Permalink
  2. class ServletParams[T] extends AnyRef

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val REDIRECT_CONNECTOR_NAME: String

    Permalink
  5. val SPARK_CONNECTOR_NAME: String

    Permalink
  6. def addFilters(handlers: Seq[ServletContextHandler], conf: SparkConf): Unit

    Permalink

    Add filters, if any, to the given list of ServletContextHandlers

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def basicAuthenticationHandler(): SecurityHandler

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. lazy val constraintMapping: ConstraintMapping

    Permalink
  11. def createProxyHandler(prefix: String, target: String): ServletContextHandler

    Permalink

    Create a handler for proxying request to Workers and Application Drivers

  12. def createProxyLocationHeader(prefix: String, headerValue: String, clientRequest: HttpServletRequest, targetUri: URI): String

    Permalink
  13. def createProxyURI(prefix: String, target: String, path: String, query: String): URI

    Permalink
  14. def createRedirectHandler(srcPath: String, destPath: String, beforeRedirect: (HttpServletRequest) ⇒ Unit = x => (), basePath: String = "", httpMethods: Set[String] = Set("GET")): ServletContextHandler

    Permalink

    Create a handler that always redirects the user to the given path

  15. def createServlet[T](servletParams: ServletParams[T], securityMgr: SecurityManager, conf: SparkConf)(implicit arg0: (T) ⇒ AnyRef): HttpServlet

    Permalink
  16. def createServletHandler(path: String, servlet: HttpServlet, basePath: String): ServletContextHandler

    Permalink

    Create a context handler that responds to a request with the given path prefix

  17. def createServletHandler[T](path: String, servletParams: ServletParams[T], securityMgr: SecurityManager, conf: SparkConf, basePath: String = "")(implicit arg0: (T) ⇒ AnyRef): ServletContextHandler

    Permalink

    Create a context handler that responds to a request with the given path prefix

  18. def createStaticHandler(resourceBase: String, path: String): ServletContextHandler

    Permalink

    Create a handler for serving files from a static directory

  19. var customAuthenticator: Option[BasicAuthenticator]

    Permalink
  20. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. implicit def htmlResponderToServlet(responder: Responder[Seq[Node]]): ServletParams[Seq[Node]]

    Permalink
  26. def initializeLogIfNecessary(isInterpreter: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  29. implicit def jsonResponderToServlet(responder: Responder[JValue]): ServletParams[JValue]

    Permalink
  30. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  31. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  32. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  33. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  34. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  35. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  36. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  37. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  38. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  39. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  40. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  41. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  42. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  43. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  44. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  45. val skipHandlerStart: ThreadLocal[Boolean]

    Permalink
  46. val snappyDataRealm: String

    Permalink
  47. val snappyDataRoles: Array[String]

    Permalink
  48. lazy val snappyHashLoginService: HashLoginService

    Permalink
  49. def startJettyServer(hostName: String, port: Int, sslOptions: SSLOptions, handlers: Seq[ServletContextHandler], conf: SparkConf, serverName: String = ""): ServerInfo

    Permalink

    Attempt to start a Jetty server bound to the supplied hostName:port using the given context handlers.

    Attempt to start a Jetty server bound to the supplied hostName:port using the given context handlers.

    If the desired port number is contended, continues incrementing ports until a free port is found. Return the jetty Server object, the chosen port, and a mutable collection of handlers.

  50. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  51. implicit def textResponderToServlet(responder: Responder[String]): ServletParams[String]

    Permalink
  52. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  53. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped