Package org.jcsp.net
Class IndexManager
java.lang.Object
org.jcsp.net.IndexManager
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChannelIndexMap
static final long
private Hashtable
private long
private static IndexManager
private Hashtable
private static final PoisonFilter
private Hashtable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addReservedChannel
(SharedChannelOutput channel, long channelIndex) (package private) int
(package private) int
broadcastLinkLost
(Object message) Reply channels have their destroyWriter method called.(package private) static boolean
checkIndexIsValid
(long vcn) static IndexManager
(package private) static long
(package private) IndexManager.ChannelAndIndex
getNewChannel
(String label) (package private) IndexManager.ChannelAndIndex
getNewReplyChannel
(One2NetChannel writer) (package private) ChannelOutput
getRxChannel
(long channelIndex) (package private) ChannelOutput
getRxChannel
(String vcnLabel) (package private) void
removeChannel
(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()
-