Test throttle changing.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5433 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-10-10 22:43:55 +00:00
parent a4a25674ce
commit ae6e3e883a
7 changed files with 97 additions and 29 deletions
@@ -21,11 +21,11 @@
package com.threerings.presents.server;
import java.util.ArrayList;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.client.TestService;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.TestMarshaller;
import java.util.List;
/**
* Dispatches requests to the {@link TestProvider}.
@@ -47,7 +47,6 @@ public class TestDispatcher extends InvocationDispatcher<TestMarshaller>
return new TestMarshaller();
}
@SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest (
ClientObject source, int methodId, Object[] args)
@@ -56,15 +55,19 @@ public class TestDispatcher extends InvocationDispatcher<TestMarshaller>
switch (methodId) {
case TestMarshaller.GET_TEST_OID:
((TestProvider)provider).getTestOid(
source,
(TestService.TestOidListener)args[0]
source, (TestService.TestOidListener)args[0]
);
return;
case TestMarshaller.GIVE_ME_THE_POWER:
((TestProvider)provider).giveMeThePower(
source, (InvocationService.ConfirmListener)args[0]
);
return;
case TestMarshaller.TEST:
((TestProvider)provider).test(
source,
(String)args[0], ((Integer)args[1]).intValue(), (ArrayList<java.lang.Integer>)args[2], (TestService.TestFuncListener)args[3]
source, (String)args[0], ((Integer)args[1]).intValue(), (List<Integer>)args[2], (TestService.TestFuncListener)args[3]
);
return;