Regenerated invocation service bits.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@613 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2008-06-06 14:39:03 +00:00
parent f663e36fe6
commit 2090bcdfeb
33 changed files with 58 additions and 103 deletions
@@ -25,9 +25,8 @@ import com.threerings.crowd.data.PlaceConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent;
import com.threerings.presents.net.Transport;
import com.threerings.whirled.client.SceneService;
import com.threerings.whirled.data.SceneModel;
import com.threerings.whirled.data.SceneUpdate;
/**
* Provides the implementation of the {@link SceneService} interface
@@ -55,7 +54,7 @@ public class SceneMarshaller extends InvocationMarshaller
_invId = null;
omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, MOVE_REQUIRES_SERVER_SWITCH,
new Object[] { arg1, arg2 }));
new Object[] { arg1, arg2 }, transport));
}
/** The method id used to dispatch {@link #moveSucceeded}
@@ -68,7 +67,7 @@ public class SceneMarshaller extends InvocationMarshaller
_invId = null;
omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, MOVE_SUCCEEDED,
new Object[] { Integer.valueOf(arg1), arg2 }));
new Object[] { Integer.valueOf(arg1), arg2 }, transport));
}
/** The method id used to dispatch {@link #moveSucceededWithScene}
@@ -81,7 +80,7 @@ public class SceneMarshaller extends InvocationMarshaller
_invId = null;
omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, MOVE_SUCCEEDED_WITH_SCENE,
new Object[] { Integer.valueOf(arg1), arg2, arg3 }));
new Object[] { Integer.valueOf(arg1), arg2, arg3 }, transport));
}
/** The method id used to dispatch {@link #moveSucceededWithUpdates}
@@ -94,7 +93,7 @@ public class SceneMarshaller extends InvocationMarshaller
_invId = null;
omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, MOVE_SUCCEEDED_WITH_UPDATES,
new Object[] { Integer.valueOf(arg1), arg2, arg3 }));
new Object[] { Integer.valueOf(arg1), arg2, arg3 }, transport));
}
@Override // from InvocationMarshaller
@@ -21,16 +21,12 @@
package com.threerings.whirled.server;
import com.threerings.crowd.data.PlaceConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationException;
import com.threerings.whirled.client.SceneService;
import com.threerings.whirled.data.SceneMarshaller;
import com.threerings.whirled.data.SceneModel;
import com.threerings.whirled.data.SceneUpdate;
/**
* Dispatches requests to the {@link SceneProvider}.
@@ -46,13 +42,14 @@ public class SceneDispatcher extends InvocationDispatcher
this.provider = provider;
}
// from InvocationDispatcher
@Override // documentation inherited
public InvocationMarshaller createMarshaller ()
{
return new SceneMarshaller();
}
@SuppressWarnings("unchecked") // from InvocationDispatcher
@SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest (
ClientObject source, int methodId, Object[] args)
throws InvocationException
@@ -21,14 +21,10 @@
package com.threerings.whirled.server;
import com.threerings.crowd.data.PlaceConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider;
import com.threerings.whirled.client.SceneService;
import com.threerings.whirled.data.SceneModel;
import com.threerings.whirled.data.SceneUpdate;
/**
* Defines the server-side of the {@link SceneService}.
@@ -24,11 +24,10 @@ package com.threerings.whirled.spot.data;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent;
import com.threerings.presents.net.Transport;
import com.threerings.whirled.client.SceneService;
import com.threerings.whirled.data.SceneMarshaller;
import com.threerings.whirled.spot.client.SpotService;
import com.threerings.whirled.spot.data.Location;
/**
* Provides the implementation of the {@link SpotService} interface
@@ -21,15 +21,12 @@
package com.threerings.whirled.spot.server;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationException;
import com.threerings.whirled.client.SceneService;
import com.threerings.whirled.data.SceneMarshaller;
import com.threerings.whirled.spot.client.SpotService;
import com.threerings.whirled.spot.data.Location;
import com.threerings.whirled.spot.data.SpotMarshaller;
@@ -47,13 +44,14 @@ public class SpotDispatcher extends InvocationDispatcher
this.provider = provider;
}
// from InvocationDispatcher
@Override // documentation inherited
public InvocationMarshaller createMarshaller ()
{
return new SpotMarshaller();
}
@SuppressWarnings("unchecked") // from InvocationDispatcher
@SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest (
ClientObject source, int methodId, Object[] args)
throws InvocationException
@@ -25,10 +25,10 @@ import com.threerings.crowd.data.PlaceConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent;
import com.threerings.presents.net.Transport;
import com.threerings.whirled.data.SceneModel;
import com.threerings.whirled.data.SceneUpdate;
import com.threerings.whirled.zone.client.ZoneService;
import com.threerings.whirled.zone.data.ZoneSummary;
/**
* Provides the implementation of the {@link ZoneService} interface
@@ -56,7 +56,7 @@ public class ZoneMarshaller extends InvocationMarshaller
_invId = null;
omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, MOVE_SUCCEEDED,
new Object[] { Integer.valueOf(arg1), arg2, arg3 }));
new Object[] { Integer.valueOf(arg1), arg2, arg3 }, transport));
}
/** The method id used to dispatch {@link #moveSucceededWithScene}
@@ -69,7 +69,7 @@ public class ZoneMarshaller extends InvocationMarshaller
_invId = null;
omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, MOVE_SUCCEEDED_WITH_SCENE,
new Object[] { Integer.valueOf(arg1), arg2, arg3, arg4 }));
new Object[] { Integer.valueOf(arg1), arg2, arg3, arg4 }, transport));
}
/** The method id used to dispatch {@link #moveSucceededWithUpdates}
@@ -82,7 +82,7 @@ public class ZoneMarshaller extends InvocationMarshaller
_invId = null;
omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, MOVE_SUCCEEDED_WITH_UPDATES,
new Object[] { Integer.valueOf(arg1), arg2, arg3, arg4 }));
new Object[] { Integer.valueOf(arg1), arg2, arg3, arg4 }, transport));
}
@Override // from InvocationMarshaller
@@ -21,17 +21,12 @@
package com.threerings.whirled.zone.server;
import com.threerings.crowd.data.PlaceConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationException;
import com.threerings.whirled.data.SceneModel;
import com.threerings.whirled.data.SceneUpdate;
import com.threerings.whirled.zone.client.ZoneService;
import com.threerings.whirled.zone.data.ZoneMarshaller;
import com.threerings.whirled.zone.data.ZoneSummary;
/**
* Dispatches requests to the {@link ZoneProvider}.
@@ -47,13 +42,14 @@ public class ZoneDispatcher extends InvocationDispatcher
this.provider = provider;
}
// from InvocationDispatcher
@Override // documentation inherited
public InvocationMarshaller createMarshaller ()
{
return new ZoneMarshaller();
}
@SuppressWarnings("unchecked") // from InvocationDispatcher
@SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest (
ClientObject source, int methodId, Object[] args)
throws InvocationException