final class LinkManager
extends java.lang.Object
Link
,
LinkFactory
Modifier and Type | Field and Description |
---|---|
private static java.util.ArrayList |
eventChans
These event channels are used by the LinkManager to inform any process that may be interested in Link Lost
events.
|
private static LinkManager |
instance
Singleton instance of the LinkManager.
|
private static java.util.Hashtable |
links
A table containing the links currently in operation within the Node.
|
Modifier | Constructor and Description |
---|---|
private |
LinkManager()
Private default constructor for singleton instance.
|
Modifier and Type | Method and Description |
---|---|
(package private) static LinkManager |
getInstance()
Gets the singleton instance of the LinkManager
|
(package private) AltingChannelInput |
getLinkLostEventChannel()
Gets a channel input end for receiving Link Lost events.
|
(package private) void |
lostLink(Link link)
Handles a Link Lost event.
|
(package private) boolean |
registerLink(Link link)
Registers a new Link with the LinkManager.
|
(package private) Link |
requestLink(NodeID id)
Returns the Link for the given NodeID
|
private static final java.util.Hashtable links
private static java.util.ArrayList eventChans
private static LinkManager instance
private LinkManager()
static LinkManager getInstance()
void lostLink(Link link)
link
- The Link that has been lost.boolean registerLink(Link link)
link
- The Link to register.Link requestLink(NodeID id)
id
- The NodeID of the remote nodeAltingChannelInput getLinkLostEventChannel()