We've always been at war with Eurasia. Changed InvocationManager to
InvocationDirector (please god let the renaming be done). Removed IntMap and modified code to use samskivert's HashIntMap. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@375 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: TestClient.java,v 1.8 2001/08/07 20:38:58 mdb Exp $
|
||||
// $Id: TestClient.java,v 1.9 2001/10/02 02:05:50 mdb Exp $
|
||||
|
||||
package com.threerings.cocktail.cher.client.test;
|
||||
|
||||
@@ -42,8 +42,8 @@ public class TestClient
|
||||
{
|
||||
Log.info("Client did logon [client=" + client + "].");
|
||||
// register our test notification receiver
|
||||
client.getInvocationManager().registerReceiver(TestService.MODULE,
|
||||
new TestReceiver());
|
||||
client.getInvocationDirector().registerReceiver(TestService.MODULE,
|
||||
new TestReceiver());
|
||||
// get the test object id
|
||||
TestService.getTestOid(client, this);
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
//
|
||||
// $Id: TestService.java,v 1.2 2001/08/07 20:38:58 mdb Exp $
|
||||
// $Id: TestService.java,v 1.3 2001/10/02 02:05:50 mdb Exp $
|
||||
|
||||
package com.threerings.cocktail.cher.client.test;
|
||||
|
||||
import com.threerings.cocktail.cher.Log;
|
||||
import com.threerings.cocktail.cher.client.Client;
|
||||
import com.threerings.cocktail.cher.client.InvocationManager;
|
||||
import com.threerings.cocktail.cher.client.InvocationDirector;
|
||||
|
||||
/**
|
||||
* A test of the invocation services.
|
||||
@@ -17,16 +17,16 @@ public class TestService
|
||||
public static void test (
|
||||
Client client, String one, int two, Object rsptarget)
|
||||
{
|
||||
InvocationManager invmgr = client.getInvocationManager();
|
||||
InvocationDirector invdir = client.getInvocationDirector();
|
||||
Object[] args = new Object[] { one, new Integer(two) };
|
||||
invmgr.invoke(MODULE, "Test", args, rsptarget);
|
||||
invdir.invoke(MODULE, "Test", args, rsptarget);
|
||||
Log.info("Sent test request [one=" + one + ", two=" + two + "].");
|
||||
}
|
||||
|
||||
public static void getTestOid (Client client, Object rsptarget)
|
||||
{
|
||||
InvocationManager invmgr = client.getInvocationManager();
|
||||
InvocationDirector invdir = client.getInvocationDirector();
|
||||
Object[] args = new Object[0];
|
||||
invmgr.invoke(MODULE, "GetTestOid", args, rsptarget);
|
||||
invdir.invoke(MODULE, "GetTestOid", args, rsptarget);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user