Object/Trait

com.twitter.finagle

Resolver

Related Docs: trait Resolver | package finagle

Permalink

object Resolver extends BaseResolver

The default Resolver used by Finagle.

See also

Resolvers for Java support.

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
Visibility
  1. Public
  2. All

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 equals(arg0: Any): Boolean

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

    Permalink

    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 interpreted to be a logical name whose interpretation 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
    See also

    Resolvers.eval for Java support

  9. def evalLabeled(addr: String): (Name, String)

    Permalink

    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
    See also

    Resolvers.evalLabeled for Java support

  10. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  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. 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( ... )

Deprecated Value Members

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

    Permalink

    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 overridden 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