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
- Alphabetic
- By Inheritance
- HttpWarmup
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new HttpWarmup(router: HttpRouter, mapper: ScalaObjectMapper)
- router
the configured HttpRouter
- mapper
the configured server com.twitter.util.jackson.ScalaObjectMapper
- Annotations
- @Inject()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()