Class

com.twitter.finatra.thrift.filters

DarkTrafficFilter

Related Doc: package filters

Permalink

class DarkTrafficFilter[ServiceIface] extends ThriftFilter with AbstractDarkTrafficFilter with Logging

An implementation of com.twitter.finagle.exp.AbstractDarkTrafficFilter which extends com.twitter.finatra.thrift.ThriftFilter and thus works in a Finatra ThriftRouter filter chain. This differs from the com.twitter.finagle.exp.DarkTrafficFilter in that this class is typed to work like other ThriftFilters as agnostic to types until apply() is invoked.

ServiceIface

- the type of the Service to take dark traffic

Annotations
@Experimental()
See also

com.twitter.finagle.exp.DarkTrafficFilter

Linear Supertypes
Logging, Logging, AbstractDarkTrafficFilter, ThriftFilter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DarkTrafficFilter
  2. Logging
  3. Logging
  4. AbstractDarkTrafficFilter
  5. ThriftFilter
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DarkTrafficFilter(darkServiceIface: ServiceIface, enableSampling: (ThriftRequest[_]) ⇒ Boolean, forwardAfterService: Boolean, statsReceiver: StatsReceiver)(implicit arg0: ClassTag[ServiceIface])

    Permalink

    darkServiceIface

    - Service to take dark traffic

    enableSampling

    - if function returns true, the request will forward

    forwardAfterService

    - forward the dark request after the service has processed the request instead of concurrently.

    statsReceiver

    - keeps stats for requests forwarded, skipped and failed.

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. final def andThen(next: ThriftFilter): ThriftFilter

    Permalink
    Definition Classes
    ThriftFilter
  5. def apply[T, Rep](request: ThriftRequest[T], service: Service[ThriftRequest[T], Rep]): Future[Rep]

    Permalink
    Definition Classes
    DarkTrafficFilterThriftFilter
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def debug(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  9. def debug(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  10. def debug(msg: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  11. def debugFutureResult[T](msg: String)(func: ⇒ Future[T]): Future[T]

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  12. def debugResult[T](msg: String)(func: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  13. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def error(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  16. def error(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  17. def error(msg: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  18. def errorResult[T](msg: String)(func: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  19. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def handleFailedInvocation(t: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    DarkTrafficFilter → AbstractDarkTrafficFilter
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. def info(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  24. def info(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  25. def info(msg: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  26. def infoResult[T](msg: String)(func: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  27. def isDebugEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  28. def isErrorEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  29. def isInfoEnabled: Boolean

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

    Permalink
    Definition Classes
    Any
  31. def isTraceEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  32. def isWarnEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  33. def logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  34. def loggerName: String

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

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

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

    Permalink
    Definition Classes
    AnyRef
  38. def sendDarkRequest[Req](request: Req)(shouldInvoke: (Req) ⇒ Boolean, invokeDarkService: (Req) ⇒ Future[_]): Future[_]

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractDarkTrafficFilter
  39. def serviceConcurrently[Req, Rep](service: Service[Req, Rep], request: Req)(shouldInvoke: (Req) ⇒ Boolean, invokeDarkService: (Req) ⇒ Future[_]): Future[Rep]

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractDarkTrafficFilter
  40. val statsReceiver: StatsReceiver

    Permalink

    - keeps stats for requests forwarded, skipped and failed.

    - keeps stats for requests forwarded, skipped and failed.

    Definition Classes
    DarkTrafficFilter → AbstractDarkTrafficFilter
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  42. def time[T](formatStr: String)(func: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  43. final def toFilter[T, Rep]: Filter[ThriftRequest[T], Rep, ThriftRequest[T], Rep]

    Permalink
    Definition Classes
    ThriftFilter
  44. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  45. def trace(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  46. def trace(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  47. def trace(msg: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  48. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. def warn(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  52. def warn(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  53. def warn(msg: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  54. def warnResult[T](msg: String)(func: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    Logging

Inherited from Logging

Inherited from Logging

Inherited from AbstractDarkTrafficFilter

Inherited from ThriftFilter

Inherited from AnyRef

Inherited from Any

Ungrouped