Class/Object

com.typesafe.conductr.bundlelib.scala

LocationService

Related Docs: object LocationService | package scala

Permalink

class LocationService extends AbstractLocationService

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

Instance Constructors

  1. new LocationService(handler: ConnectionHandler)

    Permalink

Type Members

  1. type CC = ConnectionContext

    Permalink
    Attributes
    protected
    Definition Classes
    LocationServiceAbstractLocationService

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

    Definition Classes
    AbstractLocationService
  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.

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

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractLocationService
  13. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  15. 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.

    Definition Classes
    LocationServiceAbstractLocationService
  16. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractLocationService
  22. final def wait(): Unit

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

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

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

Inherited from AbstractLocationService

Inherited from AnyRef

Inherited from Any

Ungrouped