|
|||||||||
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.ProbeManagerHandle
ProbeManagerHandle provides the interface for application to operate on the probes, such as deploy, activate, focus, undeploy, etc.
Constructor Summary | |
ProbeManagerHandle(BandwidthProbeConsumer pc,
java.lang.String pmName,
java.lang.String sienaSetup)
Initialize a new handle. |
Method Summary | |
void |
debugln(java.lang.String s)
Print out some debugging message for user. |
ProbeHandle |
deploy()
Deploy a new RemosProbe, that is, create a remos probe that is ready to monitor bandwidth information for application. |
void |
notify(siena.Notification e)
Siena notify function. |
void |
notify(siena.Notification[] es)
Siena notify function. |
void |
onFail(siena.Notification e)
Deal with Fail message from RemosProbe, basically, what it does is to print out the message and tell user something is wrong. |
boolean |
undeploy(ProbeHandle prbHdl)
Undeploy some probe. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProbeManagerHandle(BandwidthProbeConsumer pc, java.lang.String pmName, java.lang.String sienaSetup)
pc
- the reference to the application class who calls this methodpmName
- name for ProbeManager provided by applicatonsienaSetup
- the siena setup information. This actually comes from command line parameter, and is about siena server address.Method Detail |
public ProbeHandle deploy()
public boolean undeploy(ProbeHandle prbHdl)
prbHdl
- the handle of the probe to be undeployedpublic void onFail(siena.Notification e)
e
- the siena event notification about the failure message.public void notify(siena.Notification e)
notify
in interface siena.Notifiable
e
- refer to siena document to know the detailpublic void notify(siena.Notification[] es)
notify
in interface siena.Notifiable
es
- refer to siena document to know the detailpublic void debugln(java.lang.String s)
s
- debugging message
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |