Class

com.typesafe.conductr.bundlelib.scala

AbstractLocationService

Related Doc: package scala

Permalink

abstract class AbstractLocationService extends AnyRef

A Location Service is used to look up services using the Typesafe ConductR Service Locator.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractLocationService
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractLocationService(handler: AbstractConnectionHandler)

    Permalink

Type Members

  1. abstract type CC <: AbstractConnectionContext

    Permalink
    Attributes
    protected

Abstract Value Members

  1. abstract def lookup(serviceName: String, fallback: URI, cache: CacheLike)(implicit cc: CC): Future[Option[URI]]

    Permalink

    Look up a service by service name using a cache.

    Look up a service by service name using a cache. Service names correspond to those declared in a Bundle component's endpoint data structure i.e. within a bundle's bundle.conf. If the bundle component has not been started by ConductR then the fallback will be used.

    Returns some URI representing the service or None if the service is not found.

Concrete 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. def createLookupPayload(serviceName: String): Option[HttpPayload]

    Permalink

    Create the HttpPayload necessary to look up a service by name.

    Create the HttpPayload necessary to look up a service by name.

    If the service is available and can be looked up the response for the HTTP request should be 307 (Temporary Redirect), and the resulting URI to the service is in the "Location" header of the response. A Cache-Control header may also be returned indicating the maxAge that the location should be cached for. If the service can not be looked up the response should be 404 (Not Found). All other response codes are considered illegal.

    serviceName

    The name of the service

    returns

    Some HttpPayload describing how to do the service lookup or None if this program is not running within ConductR

  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getLookupUrl(serviceName: String, fallback: URL): URL

    Permalink

    A convenience function for createLookupPayload where the payload url is created when this bundle component is running in the context of ConductR.

    A convenience function for createLookupPayload where the payload url is created when this bundle component is running in the context of ConductR. If it is not then a fallback is returned.

  12. def handleLookup(responseCode: Int, headers: Map[String, Option[String]]): Option[(URI, Option[FiniteDuration])]

    Permalink
    Attributes
    protected
  13. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. def toUri(service: Option[(URI, Option[FiniteDuration])]): Option[URI]

    Permalink
    Attributes
    protected
  21. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped