Package

com.comcast.xfinity.sirius

util

Permalink

package util

Visibility
  1. Public
  2. All

Type Members

  1. class AkkaExternalAddressResolver extends AnyRef

    Permalink

    Class for figuring out a local actor refs remote address.

    Class for figuring out a local actor refs remote address. This is weird, and I got the gist of it from the following guys:

    Don't use directly, akka does some voodoo to make the ExtendedActorSystem available.

    Suggested usage is as follows:

    AkkaExternalAddressResolver(actorSystem).externalAddressFor(actorRef)

  2. class RichJTreeMap[K, V] extends TreeMap[K, V]

    Permalink

    A Java TreeMap with some functional style helpers for mutating the underling collection (contradictory eh?)

    A Java TreeMap with some functional style helpers for mutating the underling collection (contradictory eh?)

    The JavaConversions stuff doesn't appear to have anything that allows us to mutate the underlying collection

  3. class Slf4jEventHandlerWithRemotingSilencer extends Slf4jLogger

    Permalink

    Akka Logging event handler for suppressing unnecessarily noisy Remoting errors.

    Akka Logging event handler for suppressing unnecessarily noisy Remoting errors.

    Suppresses all Error and Warn level messages that start with "REMOTE: RemoteClient" or "REMOTE: RemoteServer". Turns out this is a pretty good qualifier.

    If you want to see remoting errors, register an event handler for them to be handled explicitly.

    The need for this rises from akka.remote.RemoteTransport line 194, where these errors are logged.

    Credit to https://groups.google.com/forum/?fromgroups=#!topic/akka-user/hLGkCjnGQZc for pointing out that this had to be done this way

Value Members

  1. object AkkaExternalAddressResolver

    Permalink
  2. object RichJTreeMap extends Serializable

    Permalink
  3. object SiriusShortNameParser extends RegexParsers

    Permalink

    Parser for translating short representation of Sirius node names to their full Akka address string.

    Parser for translating short representation of Sirius node names to their full Akka address string.

    It uses defaults for fields which aren't provided. Below are some example inputs with outputs:

    host -> akka://sirius-system@host:2552/user/sirius host:1234 -> akka://sirius-system@host:1234/user/sirius system@host -> akka://system@host:2552/user/sirius system@host:1234 -> akka://system@host:1234/user/sirius host/path -> akka://sirius-system@host:2552/path host:1234/path -> akka://sirius-system@host:1234/path system@host:1234/path -> akka://system@host:1234/path /local/path -> /local/path

    Anything prefixed with "akka://" will be passed through without any parsing.

Ungrouped