Class IndexManager
java.lang.Object
org.jcsp.net.IndexManager
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChannelIndexMapstatic final longprivate Hashtableprivate longprivate static IndexManagerprivate Hashtableprivate static final PoisonFilterprivate Hashtable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddReservedChannel(SharedChannelOutput channel, long channelIndex) (package private) int(package private) intbroadcastLinkLost(Object message) Reply channels have their destroyWriter method called.(package private) static booleancheckIndexIsValid(long vcn) static IndexManager(package private) static long(package private) IndexManager.ChannelAndIndexgetNewChannel(String label) (package private) IndexManager.ChannelAndIndexgetNewReplyChannel(One2NetChannel writer) (package private) ChannelOutputgetRxChannel(long channelIndex) (package private) ChannelOutputgetRxChannel(String vcnLabel) (package private) voidremoveChannel(long channelIndex, SharedChannelOutput currentChannel)
-
Field Details
-
instance
-
channels
-
indexValue
private long indexValue -
labelToIndexMap
-
indexToLabelMap
-
replyChannels
-
CNS_CHANNEL_INDEX
public static final long CNS_CHANNEL_INDEX- See Also:
-
POISON_FILTER
-
-
Constructor Details
-
IndexManager
IndexManager()
-
-
Method Details
-
getInstance
-
getNewChannel
-
getNewReplyChannel
-
getRxChannel
-
getRxChannel
-
broadcast
-
broadcastLinkLost
Reply channels have their destroyWriter method called. Other channels get sent the broadcast message. -
checkIndexIsValid
static boolean checkIndexIsValid(long vcn) -
getInvalidVCN
static long getInvalidVCN()
-