Merge branch 'master' of git@github.com:jboner/akka

This commit is contained in:
Jonas Bonér 2009-12-21 08:01:37 +01:00
commit 4012c79c78
9 changed files with 271 additions and 56 deletions

View file

@ -118,12 +118,14 @@ class RemoteServer extends Logging {
bootstrap.setOption("child.connectTimeoutMillis", RemoteServer.CONNECTION_TIMEOUT_MILLIS)
openChannels.add(bootstrap.bind(new InetSocketAddress(hostname, port)))
isRunning = true
Cluster.registerLocalNode(hostname,port)
}
}
def shutdown = {
openChannels.close.awaitUninterruptibly()
bootstrap.releaseExternalResources
Cluster.deregisterLocalNode(hostname,port)
}
}