|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.cmu.cs.able.probes.RemosProbe.ProbeManagerComm
ProbeManagerComm is a kind of server which sits on siena bus, listening the probe request message sent by ProbeManagerHandle, and behave accordingly.
Method Summary | |
void |
debugln(java.lang.String s)
Output debuggin message |
static void |
main(java.lang.String[] args)
Create an instance of ProbeManagerComm and starts listening on siena about the events that it is interested in. |
void |
notify(siena.Notification e)
Siena notfication method |
void |
notify(siena.Notification[] es)
Siena notfication method |
void |
onActivate(siena.Notification e)
Used to activate a probe. |
void |
onDeploy(siena.Notification e)
Process the deploy request from ProbeManagerHandle, create a probe and reply with probe name Message received from ProbeManageHandle should have the following format: |
void |
onFocus(siena.Notification e)
Used to change the monitoring parameters of the probe |
void |
onUndeploy(siena.Notification e)
Undeploy a probe |
void |
reportError(ProbeID prbID)
Used to report probe execution error to application |
void |
sensed(ProbeID prbID,
double bw)
Report the probing value back to ProbeHandle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void main(java.lang.String[] args)
public void onDeploy(siena.Notification e)
o. "RemosProbe", "Deploy", "Request"
Here, "RemosProbe" is the ProbeType, all the siean message sent through siena bus should have this type, so as to differentiate with the messages sent by other types of probes; "Deploy" is the Action; and "Request" gives the message direction information, that is, indicating that the message is sent from ProbeManageHandle to the ProbeManangeComm.
The reply message should be one of the following two, according to whether or not the action is successful.
o. "RemosProbe", "Deploy", "Reply", "Succeed", "ProbeID"
o. "RemosProbe", "Deploy", "Reply", "Fail"
e
- siena notification messagepublic void onUndeploy(siena.Notification e)
e
- siean notification messagepublic void onActivate(siena.Notification e)
e
- siena notification messagepublic void onFocus(siena.Notification e)
e
- siena notification messagepublic void sensed(ProbeID prbID, double bw)
prbID
- the ID of the probe that reports this valuebw
- the available bandwidth from the probepublic void notify(siena.Notification e)
notify
in interface siena.Notifiable
e
- siena notification messagepublic void notify(siena.Notification[] es)
notify
in interface siena.Notifiable
es
- siena notification messagepublic void reportError(ProbeID prbID)
prbID
- ID of the probe that create the errorpublic void debugln(java.lang.String s)
s
- debuggin message
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |