|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--MicroTAPAS.mobility.MobilityRegistryManager
Manages and operates node registries for a Mobility entity.
The class contains four registers:
Node registry (nReg)
Assigned address registry (aReg)
Forward address registry (fReg)
Actor routing table (actReg)
The implementation includes methods to access and set information in the
various registries.
Node,
Serialized Form| Field Summary | |
MobilityManager1 |
parent
Reference to parent object. |
| Constructor Summary | |
MobilityRegistryManager(MobilityManager1 pParent,
java.lang.String id)
Constructor |
|
| Method Summary | |
RequestResult |
actorDiscovery(RequestPars rp)
This method discovers an actor in the registry. |
RequestResult |
actorMove(GAI oldGAI,
GAI newGAI)
Method to delete an actor entry in the actor registry when an actor has moved to a different node. |
RequestResult |
actorRegister(RequestPars rp)
Registers an actor with the actor's node registry. |
RequestResult |
actorRegisterCancel(RequestPars rp)
Removes an actor from the registry. |
RequestResult |
actorRegisterMove(RequestPars pRP)
Method to delete an actor entry in the actor registry when an actor has moved to a different node. |
Item |
actRegStatus()
Returns the status of the registry as an Item hierarchy of elements. |
RequestResult |
addLocalAssigned(java.lang.String ips,
boolean doUpdate)
Method to add new IP(s) to local domain (this MM's domain). |
RequestResult |
addNode(Node node,
java.util.Vector ips,
boolean doUpdate)
Method to add a node to the registries. |
Item |
aRegStatus()
Returns the status of the registry as an Item hierarchy of elements. |
Item |
fRegStatus()
Returns the status of the registry as an Item hierarchy of elements. |
java.util.Vector |
getAllDirectors()
Method to find all the Directors who are registered at this node. |
java.util.Vector |
getAllNodes()
Method to return a vector of Nodes that can be pinged (not itself). |
GAI |
getDirectorGAI(java.lang.String sNode)
Method to find the Director of a particular node |
java.util.Vector |
getLocalIPs()
Method to find all locally assigned IP's. |
java.util.Vector |
getMMNodes()
Method to return a vector of MM nodes. |
Node |
getNode(java.lang.String id)
Method to safely get a node from the node registry. |
java.util.Vector |
getPingNodes()
Method to return a vector of Nodes that can be pinged (not itself). |
Item |
listActors()
Returns all registered actors as an Item hierarchy of elements. |
RequestResult |
mmDiscovery(RequestPars rp)
Discovers a MobilityManager (searches only local registry). |
RequestResult |
mobilitySync(RequestPars rp)
Method to handle mobility synchronization: -ASSIGNED_UPDATE handles the update of the assigned address registry. |
RequestResult |
nodeDiscovery(RequestPars rp)
Handles incomming NodeDiscovery requests from foreign MM's. |
boolean |
nodeValidate(GAI mobGAI)
Checks if a node is previously registered. |
Item |
nRegStatus()
Returns the status of the registry as an Item hierarchy of elements. |
RequestResult |
removeLocalIP(java.lang.String ip)
Method to remove an assigned local IP from the registry. |
RequestResult |
removeNode(Node node,
boolean doUpdate)
Method to remove a node from the relevnat registries. |
void |
setConnected(boolean isConnected,
Node pNode)
Updates the connection status of a particular node. |
Item |
status()
Status report of MobilitySupportActor in Item hierarchy of information elements. |
boolean |
terminalMove(java.lang.String oldNode,
java.lang.String newNode,
Node node)
The indicated node has changed location, and relevnat registries must be updated. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public MobilityManager1 parent
| Constructor Detail |
public MobilityRegistryManager(MobilityManager1 pParent,
java.lang.String id)
| Method Detail |
public RequestResult addNode(Node node,
java.util.Vector ips,
boolean doUpdate)
node - The node to be added/updated.ips - The node's initially assigned IP's
public RequestResult removeNode(Node node,
boolean doUpdate)
node - The node to be removed.
public boolean terminalMove(java.lang.String oldNode,
java.lang.String newNode,
Node node)
oldNode - The old node.newNode - The new node.node - The updated node object for moved node.
public void setConnected(boolean isConnected,
Node pNode)
isConnected - Determines if the node is connected or notpNode - The node in question. If pNode = null, the status of the local
node is updated, else that node will be updated.public RequestResult mobilitySync(RequestPars rp)
rp - TAPAS-style request parameter.
public java.util.Vector getMMNodes()
public boolean nodeValidate(GAI mobGAI)
mobGAI - The GAI of the entity to be checked
public java.util.Vector getLocalIPs()
public RequestResult addLocalAssigned(java.lang.String ips,
boolean doUpdate)
ips - Comma-seperated string of IP addresses.
public RequestResult removeLocalIP(java.lang.String ip)
ip - The address to be removed.
public RequestResult actorDiscovery(RequestPars rp)
rp - TAPAS-style request.
public RequestResult mmDiscovery(RequestPars rp)
rp - TAPAS-style request parameter
public Node getNode(java.lang.String id)
id - The id/key of the node.
public RequestResult nodeDiscovery(RequestPars rp)
rp - TAPAS-style request.
public java.util.Vector getPingNodes()
public java.util.Vector getAllNodes()
public GAI getDirectorGAI(java.lang.String sNode)
sNode - The node address of the terminal
public java.util.Vector getAllDirectors()
public RequestResult actorRegister(RequestPars rp)
rp - TAPAS-style request.
public RequestResult actorRegisterCancel(RequestPars rp)
rp - TAPAS-style request.
public RequestResult actorMove(GAI oldGAI,
GAI newGAI)
oldGAI - The old GAI of the actor.newGAI - The new GAI of the actor.
public RequestResult actorRegisterMove(RequestPars pRP)
pRP - TAPAS-style request parameters.
public Item status()
public Item listActors()
public Item nRegStatus()
public Item fRegStatus()
public Item aRegStatus()
public Item actRegStatus()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||