changed remote server API to allow creating multiple servers (RemoteServer) or one (RemoteServerNode), also added a shutdown method

This commit is contained in:
jboner 2009-11-24 17:41:08 +01:00
parent 794750f7fa
commit 1787307dad
23 changed files with 288 additions and 160 deletions

View file

@ -7,7 +7,8 @@ package se.scalablesolutions.akka.api;
import se.scalablesolutions.akka.Config;
import se.scalablesolutions.akka.actor.ActiveObject;
import se.scalablesolutions.akka.config.ActiveObjectConfigurator;
import se.scalablesolutions.akka.nio.RemoteServer;
import se.scalablesolutions.akka.nio.RemoteServerNode;
import junit.framework.TestCase;
public class RemoteInMemoryStateTest extends TestCase {
@ -16,7 +17,7 @@ public class RemoteInMemoryStateTest extends TestCase {
static {
new Thread(new Runnable() {
public void run() {
RemoteServer.start();
RemoteServerNode.start();
}
}).start();
try { Thread.currentThread().sleep(1000); } catch (Exception e) {}