com.loopfor.zookeeper

Id

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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

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

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

  8. 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

  9. 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

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  21. 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

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

    Definition Classes
    AnyRef
  23. def toString(): String

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

  25. 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

  26. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped