Now requiring Cluster to be started and shut down manually when used outside of the Kernel

This commit is contained in:
Viktor Klang 2010-02-03 20:55:42 +01:00
parent 4a14eb5da4
commit 7dac0dc65c
4 changed files with 61 additions and 38 deletions

View file

@ -112,8 +112,6 @@ object RemoteServer {
private[remote] def unregister(hostname: String, port: Int) =
remoteServers.remove(Address(hostname, port))
private[remote] def canShutDownCluster: Boolean = remoteServers.isEmpty
}
/**
@ -186,7 +184,6 @@ class RemoteServer extends Logging {
openChannels.close.awaitUninterruptibly(1000)
bootstrap.releaseExternalResources
Cluster.deregisterLocalNode(hostname, port)
if (RemoteServer.canShutDownCluster) Cluster.shutdown
}
}