Implemented the mechanism for initiating and clearing out a remote object

proxy. Untested, but hey, it probably works. :)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4543 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2007-02-08 19:43:55 +00:00
parent 9a39128322
commit a1be45996b
2 changed files with 128 additions and 42 deletions
@@ -120,6 +120,19 @@ public class PresentsDObjectMgr
_proxies.put(origObjectId, new ProxyReference(object.getOid(), omgr));
}
/**
* Clears a proxy object reference from our local distributed object space. This merely removes
* it from our internal tables, the caller is responsible for coordinating the deregistration
* of the object with the proxying client.
*/
public void clearProxyObject (int origObjectId, DObject object)
{
if (_proxies.remove(origObjectId) == null) {
log.warning("Missing proxy mapping for cleared proxy [ooid=" + origObjectId + "].");
}
_objects.remove(object.getOid());
}
// from interface DObjectManager
public boolean isManager (DObject object)
{