|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ecf.core.sharedobject.BaseSharedObject org.eclipse.ecf.provider.datashare.SharedObjectDatashareContainerAdapter
public class SharedObjectDatashareContainerAdapter
Field Summary | |
---|---|
protected java.util.List |
channelContainerListeners
|
protected static int |
DEFAULT_TRANSACTION_WAIT
|
Fields inherited from class org.eclipse.ecf.core.sharedobject.BaseSharedObject |
---|
DESTROYREMOTE_CODE, DESTROYSELFLOCAL_CODE |
Constructor Summary | |
---|---|
SharedObjectDatashareContainerAdapter()
|
Method Summary | |
---|---|
void |
addListener(IChannelContainerListener listener)
Add listener for IChannelContainerAdapter events. |
IChannel |
createChannel(IChannelConfig newChannelConfig)
Create a new channel within this container |
IChannel |
createChannel(ID newID,
IChannelListener listener,
java.util.Map properties)
Create a new channel within this container |
protected SharedObjectDescription |
createChannelSharedObjectDescription(IChannelConfig channelConfig)
|
protected ISharedObjectTransactionConfig |
createChannelSharedObjectTransactionConfig()
|
protected ISharedObject |
createSharedObject(SharedObjectTypeDescription typeDescription,
ISharedObjectTransactionConfig transactionConfig,
IChannelListener listener)
|
protected void |
fireChannelContainerListeners(IChannelContainerEvent event)
|
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
IChannel |
getChannel(ID channelID)
Get IChannel with given channelID. |
Namespace |
getChannelNamespace()
Get expected Namespace for channel ID creation |
protected void |
initialize()
Initialize this shared object. |
boolean |
removeChannel(ID channelID)
Remove channel with given ID. |
void |
removeListener(IChannelContainerListener listener)
Remove listener for IChannelContainerAdapter events |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int DEFAULT_TRANSACTION_WAIT
protected java.util.List channelContainerListeners
Constructor Detail |
---|
public SharedObjectDatashareContainerAdapter()
Method Detail |
---|
protected void initialize() throws SharedObjectInitException
BaseSharedObject
initialize
in class BaseSharedObject
SharedObjectInitException
- if initialization should throwprotected void fireChannelContainerListeners(IChannelContainerEvent event)
public IChannel createChannel(ID newID, IChannelListener listener, java.util.Map properties) throws ECFException
IChannelContainerAdapter
createChannel
in interface IChannelContainerAdapter
newID
- the ID of the new channel. Must not be null
.listener
- a listener for receiving messages from remotes for this
channel. May be null
if no listener is to be
notified.properties
- a Map of properties to provide to the channel. May be
null
.
ECFException
- if some problem creating IChannel instanceprotected SharedObjectDescription createChannelSharedObjectDescription(IChannelConfig channelConfig) throws ECFException
channelConfig
-
null
instance.
ECFException
- not thrown by this implementation.protected ISharedObjectTransactionConfig createChannelSharedObjectTransactionConfig()
protected ISharedObject createSharedObject(SharedObjectTypeDescription typeDescription, ISharedObjectTransactionConfig transactionConfig, IChannelListener listener) throws SharedObjectCreateException
SharedObjectCreateException
public IChannel createChannel(IChannelConfig newChannelConfig) throws ECFException
IChannelContainerAdapter
createChannel
in interface IChannelContainerAdapter
newChannelConfig
- the configuration for the newly created channel. Must not be
null
.
null
.
ECFException
- if some problem creating IChannel instancepublic IChannel getChannel(ID channelID)
IAbstractChannelContainerAdapter
getChannel
in interface IAbstractChannelContainerAdapter
channelID
- the ID of the channel to get. Must not be null
.
null
if channel not found.public boolean removeChannel(ID channelID)
IAbstractChannelContainerAdapter
IAbstractChannel.dispose()
to dispose the channel
before returning from this method.
removeChannel
in interface IAbstractChannelContainerAdapter
channelID
- the ID of the channel to remove within this container. Must
not be null
.
public Namespace getChannelNamespace()
IAbstractChannelContainerAdapter
getChannelNamespace
in interface IAbstractChannelContainerAdapter
null
.public void addListener(IChannelContainerListener listener)
IAbstractChannelContainerAdapter
addListener
in interface IAbstractChannelContainerAdapter
listener
- to be added. Must not be null
.public void removeListener(IChannelContainerListener listener)
IAbstractChannelContainerAdapter
removeListener
in interface IAbstractChannelContainerAdapter
listener
- to be removed. Must not be null
.public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class BaseSharedObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |