|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGlobalNameServer
public class GlobalNameServer
This class represents the global name server.
Field Summary | |
---|---|
(package private) java.util.Vector<RoutingInfo> |
routingTable
A vector that stores the global routing information |
Constructor Summary | |
---|---|
GlobalNameServer()
Construct a new GlobalNameServer object. |
Method Summary | |
---|---|
int |
addRoutingRow(RoutingInfo rinfo)
Adds a row of routing inforamtion into the lookup table. |
void |
dump()
Displays the contents of the routing table. |
java.lang.String |
getAPPids()
Returns (as a tab-separated list) the APPids of every LP in the application. |
int |
getLidByAid(java.lang.String appid)
Looks up the LP id of an LP by its application id. |
int |
getPidByAid(java.lang.String appid)
Looks up the PE id of an LP by its application id. |
int |
getPidByLid(int lid)
Looks up the PE id of an LP by its LP id. |
RoutingInfo |
getRoutingInfoByAid(java.lang.String appid)
Looks up the routing info by an LP's application id. |
RoutingInfo |
getRoutingInfoByLid(int lid)
Looks up the routing info by an LP id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.util.Vector<RoutingInfo> routingTable
Constructor Detail |
---|
public GlobalNameServer()
Method Detail |
---|
public int addRoutingRow(RoutingInfo rinfo)
rinfo
- an RoutingInfo instance representing a row in the table.
public RoutingInfo getRoutingInfoByAid(java.lang.String appid)
appid
- String representing the application id of the LP.public RoutingInfo getRoutingInfoByLid(int lid)
lid
- int representing the LP id.public void dump()
public java.lang.String getAPPids()
public int getPidByLid(int lid)
lid
- int representing the LPid of the LP.public int getPidByAid(java.lang.String appid)
appid
- String representing the application id of the LP.public int getLidByAid(java.lang.String appid)
appid
- String representing the application id of the LP.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |