Packages

class HttpWarmup extends AnyRef

A utility for performing requests to endpoints defined by a configured HttpRouter for the purpose of warming up the HttpServer.

Note

This only provides routing to user-defined routes of the configured HttpRouter.

See also

HttpRouter

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpWarmup
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new HttpWarmup(router: HttpRouter, mapper: ScalaObjectMapper)

    router

    the configured HttpRouter

    mapper

    the configured server com.twitter.util.jackson.ScalaObjectMapper

    Annotations
    @Inject()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. def send(request: => Request, admin: Boolean = false, times: Int = 1)(responseCallback: (Response) => Unit = unitFunction): Unit

    Send a request to warmup services that are not yet externally receiving traffic.

    Send a request to warmup services that are not yet externally receiving traffic.

    request

    the com.twitter.finagle.http.Request to send.

    admin

    if the request should be sent to a route that is intended to be exposed on the TwitterServer HTTP admin interface.

    times

    the number of times to send the request.

    responseCallback

    a callback called for every response where assertions can be made.

    Note

    be aware that in the response callback, failed assertions that throw exceptions could prevent a server from starting. This is generally when dependent services are unresponsive, causing the warm-up request(s) to fail. As such, you should wrap your warm-up calls in these situations in a try/catch {}.

    See also

    http://twitter.github.io/finatra/user-guide/http/controllers.html#controllers-and-routing

    http://twitter.github.io/finatra/user-guide/http/controllers.html#admin-paths

    TwitterServer HTTP Admin Interface

  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def close(): Unit
    Annotations
    @deprecated
    Deprecated

    (Since version 2018-03-20) This is now a no-op.

Inherited from AnyRef

Inherited from Any

Ungrouped