com.twitter.finagle

Resolver

Related Docs: trait Resolver | package finagle

object Resolver extends BaseResolver

Linear Supertypes
BaseResolver, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Resolver
  2. BaseResolver
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  8. def eval(name: String): Name

    Parse and evaluate the argument into a Name.

    Parse and evaluate the argument into a Name. Eval parses a simple grammar: a scheme is followed by a bang, followed by an argument: name := scheme ! arg The scheme is looked up from registered Resolvers, and the argument is passed in.

    When name begins with the character '/' it is intepreted to be a logical name whose interpetation is subject to a Dtab.

    Eval throws exceptions upon failure to parse the name, or on failure to scheme lookup. Since names are late bound, binding failures are deferred.

    Definition Classes
    BaseResolver
  9. def evalLabeled(addr: String): (Name, String)

    Parse and evaluate the argument into a (Name, label: String) tuple.

    Parse and evaluate the argument into a (Name, label: String) tuple. Arguments are parsed with the same grammar as in eval. If a label is not provided (i.e. no "label=<addr>"), then the empty string is returned.

    Definition Classes
    BaseResolver
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def get[T <: Resolver](clazz: Class[T]): Option[T]

    Definition Classes
    BaseResolver
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

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

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

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

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

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

    Definition Classes
    AnyRef
  19. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def resolve(addr: String): Try[Group[SocketAddress]]

    Resolve a group from an address, a string.

    Resolve a group from an address, a string. Resolve uses Resolvers to do this. These are loaded via the Java ServiceLoader mechanism. The default resolver is "inet", resolving DNS name/port pairs.

    Target names have a simple grammar: The name of the resolver precedes the name of the address to be resolved, separated by an exclamation mark ("bang"). For example: inet!twitter.com:80 resolves the name "twitter.com:80" using the "inet" resolver. If no resolver name is present, the inet resolver is used.

    Names resolved by this mechanism are also a com.twitter.finagle.LabelledGroup. By default, this name is simply the addr string, but it can be overriden by prefixing a name separated by an equals sign from the rest of the addr. For example, the addr "www=inet!google.com:80" resolves "google.com:80" with the inet resolver, but the returned group's com.twitter.finagle.LabelledGroup name is "www".

    Definition Classes
    BaseResolver
    Annotations
    @deprecated
    Deprecated

    (Since version 6.7.x) Use Resolver.eval

Inherited from BaseResolver

Inherited from AnyRef

Inherited from Any

Ungrouped