Packages

class ThriftWarmup extends AnyRef

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

Note

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

,

This is only for use with generated Scala code which uses the ThriftRouter.

See also

com.twitter.finatra.thrift.routing.ThriftRouter

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

Instance Constructors

  1. new ThriftWarmup(router: ThriftRouter)

    router

    the configured com.twitter.finatra.thrift.routing.ThriftRouter

    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 sendRequest[M <: ThriftMethod](method: M, req: Request[sendRequest.M.Args], times: Int = 1)(responseCallback: (Try[Response[sendRequest.M.SuccessType]]) => 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.

    M

    the type of the com.twitter.scrooge.ThriftMethod

    method

    the com.twitter.scrooge.ThriftMethod to request

    req

    the com.twitter.scrooge.Request to send

    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 restarting. 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/thrift/controllers.html

  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.

  2. def send[M <: ThriftMethod](method: M, args: send.M.Args, times: Int = 1)(responseCallback: (Try[send.M.SuccessType]) => 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.

    M

    the type of the com.twitter.scrooge.ThriftMethod

    method

    thecom.twitter.scrooge.ThriftMethod to request

    args

    the com.twitter.scrooge.ThriftMethod.Args to send

    times

    the number of times to send the request

    responseCallback

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2018-12-20) Use Request/Response based functionality

    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 {}.

Inherited from AnyRef

Inherited from Any

Ungrouped