Created RootDObjectManager interface for those entities that want to look

up objects directly by oid. They, of course, must be on the server if they
are doing this.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@728 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-12-04 01:01:54 +00:00
parent 0748521613
commit 5d2f302218
2 changed files with 22 additions and 2 deletions
@@ -0,0 +1,20 @@
//
// $Id: RootDObjectManager.java,v 1.1 2001/12/04 01:01:54 mdb Exp $
package com.threerings.presents.dobj;
/**
* The root distributed object manager extends the basic distributed
* object manager interface with methods that can only be guaranteed to
* work in the virtual machine that is hosting the distributed objects in
* question. VMs that operate proxies of objects can only implement the
* basic distributed object manager interface.
*/
public interface RootDObjectManager extends DObjectManager
{
/**
* Looks up and returns the requested distributed object in the dobj
* table, returning null if no object exists with that oid.
*/
public DObject getObject (int oid);
}
@@ -1,5 +1,5 @@
//
// $Id: PresentsDObjectMgr.java,v 1.19 2001/10/24 00:36:40 mdb Exp $
// $Id: PresentsDObjectMgr.java,v 1.20 2001/12/04 01:01:54 mdb Exp $
package com.threerings.presents.server;
@@ -25,7 +25,7 @@ import com.threerings.presents.dobj.*;
* application main thread which won't return until the manager has been
* requested to shut down.
*/
public class PresentsDObjectMgr implements DObjectManager
public class PresentsDObjectMgr implements RootDObjectManager
{
/**
* Creates the dobjmgr and prepares it for operation.