public class DatashareContainerAdapter extends Object implements IChannelContainerAdapter
| Modifier and Type | Field and Description |
|---|---|
protected SOContainer |
container |
protected static int |
DEFAULT_TRANSACTION_WAIT |
protected SharedObjectDatashareContainerAdapter |
delegate |
protected ID |
delegateID |
protected static int |
SO_CREATION_ERROR |
| Constructor and Description |
|---|
DatashareContainerAdapter(SOContainer container) |
| Modifier and Type | Method and Description |
|---|---|
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,
Map properties)
Create a new channel within this container
|
Object |
getAdapter(Class adapter) |
IChannel |
getChannel(ID channelID)
Get IChannel with given channelID.
|
Namespace |
getChannelNamespace()
Get expected Namespace for channel ID creation
|
protected void |
initialize() |
boolean |
removeChannel(ID channelID)
Remove channel with given ID.
|
void |
removeListener(IChannelContainerListener listener)
Remove listener for IChannelContainerAdapter events
|
protected SOContainer container
protected static final int DEFAULT_TRANSACTION_WAIT
protected static final int SO_CREATION_ERROR
protected SharedObjectDatashareContainerAdapter delegate
protected ID delegateID
public DatashareContainerAdapter(SOContainer container)
protected void initialize()
public IChannel createChannel(ID newID, IChannelListener listener, Map properties) throws ECFException
IChannelContainerAdaptercreateChannel in interface IChannelContainerAdapternewID - 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 instancepublic IChannel createChannel(IChannelConfig newChannelConfig) throws ECFException
IChannelContainerAdaptercreateChannel in interface IChannelContainerAdapternewChannelConfig - the configuration for the newly created channel. Must not be
null.null.ECFException - if some problem creating IChannel instancepublic IChannel getChannel(ID channelID)
IAbstractChannelContainerAdaptergetChannel in interface IAbstractChannelContainerAdapterchannelID - the ID of the channel to get. Must not be null.null if channel not found.public boolean removeChannel(ID channelID)
IAbstractChannelContainerAdapterIAbstractChannel.dispose() to dispose the channel
before returning from this method.removeChannel in interface IAbstractChannelContainerAdapterchannelID - the ID of the channel to remove within this container. Must
not be null.public Namespace getChannelNamespace()
IAbstractChannelContainerAdaptergetChannelNamespace in interface IAbstractChannelContainerAdapternull.public void addListener(IChannelContainerListener listener)
IAbstractChannelContainerAdapteraddListener in interface IAbstractChannelContainerAdapterlistener - to be added. Must not be null.public void removeListener(IChannelContainerListener listener)
IAbstractChannelContainerAdapterremoveListener in interface IAbstractChannelContainerAdapterlistener - to be removed. Must not be null.Copyright © 2020 Eclipse Foundation. All rights reserved.