|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.vrspace.server.VRObject
org.vrspace.server.DBObject
org.vrspace.server.PublicDBObject
org.vrspace.server.OwnedDBObject
Forwards events to all the listeners, but receives events only from owners.
| Field Summary |
| Fields inherited from class org.vrspace.server.DBObject |
db |
| Fields inherited from class org.vrspace.server.VRObject |
db_id, primitiveMap, primitives |
| Constructor Summary | |
OwnedDBObject()
|
|
| Method Summary | |
void |
addOwner(Owner c)
Interface Owned |
boolean |
isOwned(Owner c)
Interface Owned |
void |
notifyOwners(java.lang.Object o)
Interface Owned |
void |
ownershipRequired(Request r)
Called from sendEvent( request ) in case request comes from non-owner. |
void |
processEvent(Request r)
Process a request. |
void |
removeOwner(Owner c)
Interface Owned |
void |
sendEvent(Request r)
Forwards request r to other clients, listeners added by Dispatcher. |
| Methods inherited from class org.vrspace.server.PublicDBObject |
setValue |
| Methods inherited from class org.vrspace.server.DBObject |
delete, get, put, put |
| Methods inherited from class org.vrspace.server.VRObject |
arrayToString, canRead, canWrite, clone, equals, fieldToText, fromString, fromText, getClassName, getField, getFields, getId, getID, getMemebers, hasField, hasMethod, isNew, newInstance, sendResponse, setField, setField, setField, setFields, setFields, stringToArray, toString, toText, toText, toText |
| Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public OwnedDBObject()
| Method Detail |
public void sendEvent(Request r)
throws RequestException
sendEvent in class DBObjectRequestException
public void ownershipRequired(Request r)
throws RequestException
RequestException
public void processEvent(Request r)
throws RequestException
RequestExceptionpublic void addOwner(Owner c)
addOwner in interface Ownedpublic void removeOwner(Owner c)
removeOwner in interface Ownedpublic boolean isOwned(Owner c)
isOwned in interface Ownedpublic void notifyOwners(java.lang.Object o)
notifyOwners in interface Owned
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||