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:
@@ -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;
|
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
|
* application main thread which won't return until the manager has been
|
||||||
* requested to shut down.
|
* requested to shut down.
|
||||||
*/
|
*/
|
||||||
public class PresentsDObjectMgr implements DObjectManager
|
public class PresentsDObjectMgr implements RootDObjectManager
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Creates the dobjmgr and prepares it for operation.
|
* Creates the dobjmgr and prepares it for operation.
|
||||||
|
|||||||
Reference in New Issue
Block a user