|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISharedObjectManager
Manager for creating, disposing, and accessing ISharedObjects from an ISharedObjectContainer.
ISharedObjectContainer.getSharedObjectManager()
Method Summary | |
---|---|
ID |
addSharedObject(ID sharedObjectID,
ISharedObject sharedObject,
java.util.Map properties)
Add an ISharedObject to this container. |
ISharedObjectConnector |
connectSharedObjects(ID sharedObjectFrom,
ID[] sharedObjectsTo)
Create an ISharedObjectConnector instance for sending messages from a single ISharedObject to one or more receiver ISharedObjects. |
ID |
createSharedObject(SharedObjectDescription sd)
Create a new ISharedObject within this container from the given SharedObjectDescription. |
void |
disconnectSharedObjects(ISharedObjectConnector connector)
Destroy an ISharedObjectConnector instance. |
ISharedObject |
getSharedObject(ID sharedObjectID)
Get the ISharedObject instance corresponding to the given sharedObjectID. |
java.util.List |
getSharedObjectConnectors(ID sharedObjectFrom)
Get the sharedObjectConnectors associated with the given sharedObjectID |
ID[] |
getSharedObjectIDs()
Get the array of SharedObject instances currently contained by this ISharedObjectContainer |
ISharedObject |
removeSharedObject(ID sharedObjectID)
Remove the given sharedObjectID from this ISharedObjectContainer. |
void |
setRemoteAddPolicy(ISharedObjectPolicy policy)
Set this shared object manager's policy for adding remote shared objects. |
Method Detail |
---|
ID addSharedObject(ID sharedObjectID, ISharedObject sharedObject, java.util.Map properties) throws SharedObjectAddException
sharedObjectID
- the ID of new SharedObjectsharedObject
- the ISharedObject instance to addproperties
- the Map associated with the added ISharedObject
SharedObjectAddException
- if the add cannot be accomplished for any reasonISharedObjectConnector connectSharedObjects(ID sharedObjectFrom, ID[] sharedObjectsTo) throws SharedObjectConnectException
sharedObjectFrom
- the ID of the sender ISharedObjectsharedObjectsTo
- the ID[] of the receiver ISharedObjects
SharedObjectConnectException
- thrown if specified sender or receivers do not exist within
the context of this containerID createSharedObject(SharedObjectDescription sd) throws SharedObjectCreateException
sd
- the SharedObjectDescription that describes the SharedObject to
be created
SharedObjectCreateException
- if the SharedObject cannot be createdvoid disconnectSharedObjects(ISharedObjectConnector connector) throws SharedObjectDisconnectException
connector
- the connector previously created via connectSharedObjects
SharedObjectDisconnectException
- thrown if specified connector does not exist in the context
of this containerISharedObject getSharedObject(ID sharedObjectID)
sharedObjectID
- of the desired ISharedObject
java.util.List getSharedObjectConnectors(ID sharedObjectFrom)
ID[] getSharedObjectIDs()
ISharedObject removeSharedObject(ID sharedObjectID)
sharedObjectID
- the ID of the ISharedObject to remove
void setRemoteAddPolicy(ISharedObjectPolicy policy)
policy
- the ISharedObjectPolicy instance to use to check the validity
of remote requests to add/replicate a shared object into this
container
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |