com.loopfor.zookeeper

Id

Related Docs: trait Id | package zookeeper

object Id

Constructs and deconstructs Id values.

An Id is composed of two parts: a scheme and an id. There exists only a finite set of schemes recognized by ZooKeeper, which are noted below. The acceptable form of id depends on the chosen scheme.

Schemes

world -- id must be "anyone".

auth -- id must be "" (empty string).

digest -- id must be of the form "username:password".

host -- id should be an Internet domain name.

ip -- id must be a valid IPv4 or IPv6 address with an optional network prefix, variations of which follow:

See also

Schemes

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Id
  2. AnyRef
  3. 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. val Anyone: Id

    An identity whose scheme is "world" and id is "anyone".

    An identity whose scheme is "world" and id is "anyone".

    Equivalent to WorldId.

  5. val Creator: Id

    An identity whose scheme is "auth" and id is "".

    An identity whose scheme is "auth" and id is "".

    This is a special identity, usable only while setting ACLs, that is substituted with the identities used during client authentication.

    Equivalent to AuthId.

  6. def apply(s: String): Id

    Constructs a new identity from the input string s.

    Constructs a new identity from the input string s.

    s

    a string representing the identity

    returns

    the identity in s if it conforms to the proper syntax

    Exceptions thrown

    IllegalArgumentException if s does not conform to the proper syntax

    See also

    parse

  7. def apply(scheme: String, id: String): Id

    Constructs a new identity.

    Constructs a new identity.

    scheme

    a string representing the scheme

    id

    a string representing the id

    returns

    an identity with the given scheme and id

    Exceptions thrown

    IllegalArgumentException if a valid identity cannot be constructed from scheme and id

    See also

    parse

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  19. def parse(s: String): Try[Id]

    Parses the identity in the input string s.

    Parses the identity in the input string s.

    The syntax of s is "scheme:id", where the : delimiter may be omitted if id is not required for the given scheme.

    s

    a string representing the identity

    returns

    a Success containing the identity in s if it conforms to the proper syntax, otherwise a Failure containing the offending exception

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

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    AnyRef → Any
  22. implicit def tupleToIdentity(id: (String, String)): Id

  23. def unapply(id: Id): Option[(String, String)]

    Used in pattern matching to deconstruct an identity.

    Used in pattern matching to deconstruct an identity.

    id

    selector value

    returns

    a Some containing scheme and id if the selector value is not null, otherwise None

  24. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped