Class

agora.api.exchange

Dispatch

Related Doc: package exchange

Permalink

case class Dispatch[+T](request: T, job: SubmitJob, matchDetails: MatchDetails, matchedWorker: WorkerDetails) extends Product with Serializable

A client-side representation of a SubmitJob / WorkerDetails match produced by an Exchange, created

by the AsClient which made the initial request.

The workflow is:

1) Some custom request object 'Foo' -> 2) a 'SubmitJob' containing the json form for 'Foo' -> 3) a call to an Exchange with the SubmitJob -> 4) a reply w/ a match from the exchange -> 5) the exchnage client taking initial Foo, SubmitJob, and MatchDetails/WorkerDetails from the match response and producing a Dispatch 6) an implicit AsClient typeclass using the info in 'Dispatch' to make some request, presumably against the worker defined in 'WorkerDetails'

T

the original request type before it was serialised into json in the submit job

request

the initial request object used to produce the SubmitJob

job

the SubmitJob instance which was produced from request request and sent to the exchange

matchDetails

the match details from the Exchange

matchedWorker

the worker details matched to the SubmitJob

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Dispatch
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Dispatch(request: T, job: SubmitJob, matchDetails: MatchDetails, matchedWorker: WorkerDetails)

    Permalink

    request

    the initial request object used to produce the SubmitJob

    job

    the SubmitJob instance which was produced from request request and sent to the exchange

    matchDetails

    the match details from the Exchange

    matchedWorker

    the worker details matched to the SubmitJob

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 asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  10. val job: SubmitJob

    Permalink

    the SubmitJob instance which was produced from request request and sent to the exchange

  11. def location: HostLocation

    Permalink
  12. val matchDetails: MatchDetails

    Permalink

    the match details from the Exchange

  13. val matchedWorker: WorkerDetails

    Permalink

    the worker details matched to the SubmitJob

  14. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  17. def path: String

    Permalink
  18. val request: T

    Permalink

    the initial request object used to produce the SubmitJob

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

    Permalink
    Definition Classes
    AnyRef
  20. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped