Removed 'ping' command. Replaced checking with 'is-available'. Added a bit of info to README for distribution.

Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
This commit is contained in:
Jonas Bonér 2012-04-23 14:13:05 +02:00
parent 822b9722f2
commit 5d575a18d7
3 changed files with 26 additions and 36 deletions

View file

@ -323,7 +323,6 @@ trait ClusterNodeMBean {
def isConvergence: Boolean
def isAvailable: Boolean
def ping(): String
def join(address: String)
def leave(address: String)
def down(address: String)
@ -444,8 +443,6 @@ class Cluster(system: ExtendedActorSystem) extends Extension { clusterNode ⇒
// ===================== PUBLIC API =====================
// ======================================================
def ping = "pong"
def self: Member = latestGossip.members
.find(_.address == remoteAddress)
.getOrElse(throw new IllegalStateException("Can't find 'this' Member (" + remoteAddress + ") in the cluster membership ring"))
@ -1086,8 +1083,6 @@ class Cluster(system: ExtendedActorSystem) extends Extension { clusterNode ⇒
// JMX commands
def ping(): String = clusterNode.ping
def join(address: String) = clusterNode.join(AddressFromURIString(address))
def leave(address: String) = clusterNode.leave(AddressFromURIString(address))