|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--MicroTAPAS.MicroActor
|
+--MicroTAPAS.mobility.MobilitySupportActor
|
+--MicroTAPAS.mobility.MobilityManager1
This class implements specialized functionality for handling Mobility Management tasks.
| Field Summary | |
protected static boolean |
DEBUG
Determines whether debug info to be sent to debug-server |
protected static boolean |
isConnected
|
MobilityManagerFrame |
mmFrame
Frame for displaying updated status-information. |
MobilityRegistryManager |
mrm
Manages the mobility registry. |
protected Node |
node
Object to hold information about THIS node |
protected java.lang.String |
nodeID
Unique ID for this terminal |
protected static MicroPingClient |
pc
|
protected static MicroPingServer |
ps
|
protected GAI |
registryGAI
Address of the registry where this node is registered |
| Fields inherited from class MicroTAPAS.MicroActor |
bf, context, debug, fh, properties |
| Constructor Summary | |
MobilityManager1()
Constructor |
|
| Method Summary | |
RequestResult |
actorEntry(RequestPars rp)
Common enrty point of this actor to invoke some activity from outside |
void |
cleanUp()
|
RequestResult |
control(java.lang.String command,
java.lang.String[] pars)
Controls this entity through text commands and paramters. |
boolean |
getConnected()
Returns the connection status of this entity |
java.util.Vector |
getPingNodes()
Returns a vector of pingable nodes. |
private RequestResult |
handleActorMove(RequestPars pRP)
Handles an actor move request. |
void |
init(ActorContext pAC)
To leave constructor empty, this method is used to initialize Object data. |
RequestResult |
mobilityActorEntry(RequestPars pRP)
Common enrty point of this actor to invoke some activity from outside |
private RequestResult |
notifyDirectorOfTerminalMove(MobilityRequest mr)
Sends a TerminalMove request to the Director |
void |
pln(java.lang.String[] s1,
java.lang.String s2)
Common method to print debug messages to debug frame(s). |
protected RequestResult |
registerMMNode(GAI receiver)
Register this MM at another MM |
protected void |
registerMMNodeCancel()
Method to send NodeRegisterCancel to all registered MM's. |
protected RequestResult |
requestToActor(RequestPars pRP)
Common method for most types of requests from actors to other actors |
private RequestResult |
sendNodeRegisterRequest(GAI receiver)
Sends a NodeRegisterRequest to the indicated node (MM or MA). |
void |
setConnected(boolean pIsConnected,
Node pNode)
Method that allows changing the connection status. |
void |
start()
Starts this entity |
Item |
status()
Status report of this entity in Item hierarchy of information elements. |
void |
term()
Gives this actor a chance to clean up before closing down. |
void |
terminalMoveLocation(java.lang.String oldNode,
java.lang.String newNode)
Method to handle the detected moving of a terminal. |
| Methods inherited from class MicroTAPAS.MicroActor |
findRoleSession, getGAI, terminalMove |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public MobilityRegistryManager mrm
public MobilityManagerFrame mmFrame
protected static final boolean DEBUG
protected GAI registryGAI
protected java.lang.String nodeID
protected static MicroPingClient pc
protected static MicroPingServer ps
protected static boolean isConnected
protected Node node
| Constructor Detail |
public MobilityManager1()
| Method Detail |
public void init(ActorContext pAC)
init in class MobilitySupportActorpAC - context data for this actorpublic void start()
start in interface MicroActorInterfacestart in class MobilitySupportActor
public RequestResult control(java.lang.String command,
java.lang.String[] pars)
throws java.lang.Exception
control in interface ControlInterfacecontrol in class MobilitySupportActorcommand - the command to be performed
java.lang.Exceptionpublic RequestResult mobilityActorEntry(RequestPars pRP)
mobilityActorEntry in class MobilitySupportActorpRP - Parameters for the activity this actorEntry will attempt to carry out
public java.util.Vector getPingNodes()
getPingNodes in class MobilitySupportActor
public void terminalMoveLocation(java.lang.String oldNode,
java.lang.String newNode)
terminalMoveLocation in class MobilitySupportActorprivate RequestResult sendNodeRegisterRequest(GAI receiver)
receiver - The receiving node
private RequestResult notifyDirectorOfTerminalMove(MobilityRequest mr)
mr - TAPAS style mobility request
protected RequestResult registerMMNode(GAI receiver)
receiver - The receiver of the registration
protected void registerMMNodeCancel()
private RequestResult handleActorMove(RequestPars pRP)
public void pln(java.lang.String[] s1,
java.lang.String s2)
s1 - Info about where the message is from.s2 - The debug/info message.
public void setConnected(boolean pIsConnected,
Node pNode)
setConnected in class MobilitySupportActorpIsConnected - Boolean indicating whether the specified node is connected.pNode - The node that has no connection (for MA=this node)public Item status()
status in class MobilitySupportActorpublic void term()
term in interface MicroActorInterfaceterm in class MobilitySupportActorpublic RequestResult actorEntry(RequestPars rp)
actorEntry in interface MicroActorInterfacerp - Parameters for the activity this actorEntry will attempt to carry out
public boolean getConnected()
false indicates no connection.protected RequestResult requestToActor(RequestPars pRP)
pRP - The request
public void cleanUp()
cleanUp in interface ControlInterface
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||