|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.uoa.di.madgik.commons.channel.registry.ChannelRegistry
public class ChannelRegistry
ChannelRegistry is a utility class that acts as a container for channels. It is the main connector point so that outlets can locate inlets
| Constructor Summary | |
|---|---|
ChannelRegistry()
|
|
| Method Summary | |
|---|---|
protected static void |
CleanUp(ChannelRegistryKey RegistryKey)
Cleans up the entry of the provided registry key. |
static ChannelRegistryKey |
Register(ChannelState State,
INozzleConfig Config,
String RegisteringNozzle)
Registers a channel and assigns it a referencable unique identifier. |
static ChannelRegistryEntry |
Retrieve(ChannelRegistryKey Key)
Retrieves the associated to a registry key entry |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChannelRegistry()
| Method Detail |
|---|
public static ChannelRegistryKey Register(ChannelState State,
INozzleConfig Config,
String RegisteringNozzle)
IChannelProxy.SetChannelRegistryKey(ChannelRegistryKey)
is called so that now the inlet side of the channel has all the information needed
to complete its instantiation of inlet side proxy able to identify
fully the served channel. The cleanup module ChannelRegistryCleanUp
is registered with events produced by the registered ChannelState
so that it can cleanup the registry entries when the channel will be disposed.
State - the state that represents the main synchronization pointConfig - the configuration of the created channelRegisteringNozzle - the inlet nozzle
public static ChannelRegistryEntry Retrieve(ChannelRegistryKey Key)
Key - The registry key of which to retrieve the entry
protected static void CleanUp(ChannelRegistryKey RegistryKey)
ChannelRegistryCleanUp module from events by the ChannelState to
be cleaned up. Then calls ChannelRegistryEntry.Dispose() for the entry
that is stored for the provided registry key
RegistryKey - the registry key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||