Let's not confuse terminology between one server proxying for another server
and the ProxySubscriber mechanism by which the server proxies for the client. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4730 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -489,7 +489,7 @@ public class Client
|
|||||||
* If this client is being used to proxy events from another server, this method can be
|
* If this client is being used to proxy events from another server, this method can be
|
||||||
* overridden to adjust the event in any way needed prior to dispatching the event.
|
* overridden to adjust the event in any way needed prior to dispatching the event.
|
||||||
*/
|
*/
|
||||||
protected void adjustForProxy (DObject target, DEvent event)
|
protected void convertFromRemote (DObject target, DEvent event)
|
||||||
{
|
{
|
||||||
// nothing by default
|
// nothing by default
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -213,9 +213,9 @@ public class ClientDObjectMgr
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// because we might be acting as a proxy between servers, we may need to fiddle with this
|
// because we might be acting as a proxy for a remote server, we may need to fiddle with
|
||||||
// event before we dispatch it
|
// this event before we dispatch it
|
||||||
_client.adjustForProxy(target, event);
|
_client.convertFromRemote(target, event);
|
||||||
|
|
||||||
// if this is a compound event, we need to process its contained events in order
|
// if this is a compound event, we need to process its contained events in order
|
||||||
if (event instanceof CompoundEvent) {
|
if (event instanceof CompoundEvent) {
|
||||||
|
|||||||
@@ -704,8 +704,8 @@ public class PeerManager
|
|||||||
{
|
{
|
||||||
_record = record;
|
_record = record;
|
||||||
_client = new Client(null, PresentsServer.omgr) {
|
_client = new Client(null, PresentsServer.omgr) {
|
||||||
protected void adjustForProxy (DObject target, DEvent event) {
|
protected void convertFromRemote (DObject target, DEvent event) {
|
||||||
super.adjustForProxy(target, event);
|
super.convertFromRemote(target, event);
|
||||||
// rewrite the event's target oid using the oid currently configured on the
|
// rewrite the event's target oid using the oid currently configured on the
|
||||||
// distributed object (we will have it mapped in our remote server's oid space,
|
// distributed object (we will have it mapped in our remote server's oid space,
|
||||||
// but it may have been remapped into the oid space of the local server)
|
// but it may have been remapped into the oid space of the local server)
|
||||||
|
|||||||
Reference in New Issue
Block a user