Now requiring Cluster to be started and shut down manually when used outside of the Kernel
This commit is contained in:
parent
ba2b66bf55
commit
fa009e4353
4 changed files with 61 additions and 38 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue