edu.cmu.cs.able.probebus.test
Class FakeLatencyGauge2

java.lang.Object
  |
  +--edu.cmu.cs.able.probebus.test.FakeLatencyGauge2
All Implemented Interfaces:
IProbeConsumer

public class FakeLatencyGauge2
extends java.lang.Object
implements IProbeConsumer

George Fairbanks 19 Nov 2001 This example is better than FakeLatencyGauge because it uses the IProbeConsumer interface rather than hooking directly up to Siena. This is how actual gauges would work except for the initialization step below where the SienaProbeBus is directly created.


Constructor Summary
FakeLatencyGauge2()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void onProbeEvent(IProbeEvent e)
          Callback method
protected  void subscribeToLatencyEvents()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeLatencyGauge2

public FakeLatencyGauge2()
Method Detail

onProbeEvent

public void onProbeEvent(IProbeEvent e)
Callback method
Specified by:
onProbeEvent in interface IProbeConsumer
Following copied from interface: edu.cmu.cs.able.probebus.IProbeConsumer
Parameters:
e. - The event that was reported.

subscribeToLatencyEvents

protected void subscribeToLatencyEvents()

main

public static void main(java.lang.String[] args)