public interface ISharedObjectManager
| Modifier and Type | Method and Description |
|---|---|
ID |
addSharedObject(ID sharedObjectID,
ISharedObject sharedObject,
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.
|
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.
|
ID addSharedObject(ID sharedObjectID, ISharedObject sharedObject, Map properties) throws SharedObjectAddException
sharedObjectID - the ID of new SharedObjectsharedObject - the ISharedObject instance to addproperties - the Map associated with the added ISharedObjectSharedObjectAddException - 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 ISharedObjectsSharedObjectConnectException - 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 createdSharedObjectCreateException - if the SharedObject cannot be createdvoid disconnectSharedObjects(ISharedObjectConnector connector) throws SharedObjectDisconnectException
connector - the connector previously created via connectSharedObjectsSharedObjectDisconnectException - thrown if specified connector does not exist in the context
of this containerISharedObject getSharedObject(ID sharedObjectID)
sharedObjectID - of the desired ISharedObjectList getSharedObjectConnectors(ID sharedObjectFrom)
ID[] getSharedObjectIDs()
ISharedObject removeSharedObject(ID sharedObjectID)
sharedObjectID - the ID of the ISharedObject to removevoid setRemoteAddPolicy(ISharedObjectPolicy policy)
policy - the ISharedObjectPolicy instance to use to check the validity
of remote requests to add/replicate a shared object into this
containerCopyright © 2004–2020 Eclipse Foundation. All rights reserved.