* CompactByteString provides an instance of ByteString that is
guaranteed to be compact and has performance-optimized element
acces (since no range-checking is necessary)
* sealed abstract class ByteString, since the implementations of
ByteString1 and ByteStings assume a fixed set of ByteString
classes (in pattern matching).
- LoggingBus.startDefaultLoggers will register a forwarder actor for
UnhandledMessage, which republishes them as Debug message
- add tests and docs
- TestEventListener logs UnhandledMessage as Warning
Sample run (need to be seen with monospaced font)
$ ./bin/akka-cluster --help
Usage: akka-cluster <node-hostname:jmx-port> <command> ...
Supported commands are:
ping - Sends a PING command to the node to see if it is up and available
join <actor-system-url> - Sends request a JOIN node with the specified URL
leave <actor-system-url> - Sends a request for node with URL to LEAVE the cluster
remove <actor-system-url> - Sends a request for node with URL to be instantly REMOVED from the cluster
down <actor-system-url> - Sends a request for marking node with URL as DOWN
member-status - Asks the member node for its current status
cluster-status - Asks the cluster for its current status (member ring, unavailable nodes, meta data etc.)
leader - Asks the cluster who the current leader is
is-singleton - Checks if the cluster is a singleton cluster (single node cluster)
is-available - Checks if the member node is available
has-convergence - Checks if there is a cluster convergence
Where the <actor-system-url> should be on the format of 'akka://actor-system-name@hostname:port'
Examples: akka-cluster localhost:9999 ping
akka-cluster localhost:9999 join akka://MySystem@darkstar:2552
akka-cluster localhost:9999 cluster-status
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
- “case object” will emit a concrete class without constructor, so put
abstract class in its way in order to obtain an accessible type for
Scala & Java (i.e. without $)
- add “def instance = this” to make access uniform from Java
- this does not work for nested case objects because of missing static
forwarders, so keep those as they were
- fix issue with case object FromConfig colliding with case class
FromConfig by open-coding the “case”iness in this case (should be
thrown out in 2.1)