|
|||||||||
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.ChannelRegistryEntry
public class ChannelRegistryEntry
This class is the one kept by the registry connecting an ChannelState
that is registered with a specific ChannelRegistryKey
for which this entry is stored,
along with the INozzleConfig
that the ChannelInlet
of the channel
connected its channel with. This entry also holds info on all the connected ChannelOutlet
Constructor Summary | |
---|---|
ChannelRegistryEntry(ChannelRegistryKey Key,
ChannelState State,
INozzleConfig Config,
java.lang.String RegisteringNozzle)
Instantiates a new channel registry entry. |
Method Summary | |
---|---|
void |
Dispose()
Disposes the entry. |
INozzleConfig |
GetConfig()
|
java.lang.String |
GetInletNozzleID()
Gets the inlet nozzle identifier |
boolean |
GetIsBroadcast()
Gets whether the channel supports multiple outlets |
IChannelProxy |
GetProxy()
Gets the proxy that acts on behalf of the channel for the inlet nozzle |
java.util.List<RegisteredNozzle> |
GetRegisteredNozzles()
Gets the registered nozzles. |
ChannelRegistryKey |
GetRegistryKey()
Gets the registry key. |
int |
GetRestrictBroadcast()
Gets the number of outlet nozzles the channel supports |
ChannelState |
GetState()
Gets the synchronization point of the channel |
java.lang.Boolean |
HasConnected()
Checks the number of outlet nozzles connected to the channel |
boolean |
RegisterNozzle(RegisteredNozzle entry)
Registers a new outlet nozzle to the channel. |
java.lang.Boolean |
StillConnected()
Checks the outlet nozzles that have at some point connected to the channel and checks if at least one of them is still connected. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChannelRegistryEntry(ChannelRegistryKey Key, ChannelState State, INozzleConfig Config, java.lang.String RegisteringNozzle)
Key
- the key with which the entry is associated withState
- the synchronization point of the channelConfig
- the configuration provided to the ChannelInlet
RegisteringNozzle
- the inlet nozzle identifierMethod Detail |
---|
public ChannelRegistryKey GetRegistryKey()
public java.lang.String GetInletNozzleID()
public ChannelState GetState()
public IChannelProxy GetProxy()
public boolean GetIsBroadcast()
public INozzleConfig GetConfig()
public int GetRestrictBroadcast()
public boolean RegisterNozzle(RegisteredNozzle entry)
GetIsBroadcast()
and
GetRestrictBroadcast()
entry
- the new outlet nozzle information
public java.lang.Boolean HasConnected()
public java.lang.Boolean StillConnected()
public java.util.List<RegisteredNozzle> GetRegisteredNozzles()
public void Dispose()
ChannelState.Dispose()
method is called, and then the INozzleConfig.Dispose()
and for each connected nozzle, the RegisteredNozzle.Dispose()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |