webmngr.rmi
Class DataPollerClient

java.lang.Object
  |
  +--webmngr.rmi.DataPollerClient
All Implemented Interfaces:
com.jrefinery.chart.event.DataSourceChangeListener, java.lang.Runnable

public class DataPollerClient
extends java.lang.Object
implements com.jrefinery.chart.event.DataSourceChangeListener, java.lang.Runnable

Desenha um grafico animado a partir de dados recuperados do DataPollerServer.

Author:
Adriano Carolino de Melo

Constructor Summary
DataPollerClient(java.lang.String host, java.lang.String oid, int interval, java.lang.String graphicName, java.lang.String graphicTitle, java.lang.String sourceName)
          Constructor default.
 
Method Summary
 void dataSourceChanged(com.jrefinery.chart.event.DataSourceChangeEvent event)
          Receives the event that data source has changed.
 void finalize()
          Kills the monitor.
 GraphicData getGraphicData()
          Returns graphic data.
 void receiveNewValue(Timestamp newTimestamp)
          Receives from poller the new value to be plotted.
 void run()
          Inicia o polling.
 void start()
          Inicia as requisições.
 void stop()
          Pára de fazer as requisições.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataPollerClient

public DataPollerClient(java.lang.String host,
                        java.lang.String oid,
                        int interval,
                        java.lang.String graphicName,
                        java.lang.String graphicTitle,
                        java.lang.String sourceName)
Constructor default.
Method Detail

receiveNewValue

public void receiveNewValue(Timestamp newTimestamp)
Receives from poller the new value to be plotted.

dataSourceChanged

public void dataSourceChanged(com.jrefinery.chart.event.DataSourceChangeEvent event)
Receives the event that data source has changed.
Specified by:
dataSourceChanged in interface com.jrefinery.chart.event.DataSourceChangeListener

finalize

public void finalize()
Kills the monitor. This method is called when Garbage Collector is activated.
Overrides:
finalize in class java.lang.Object

getGraphicData

public GraphicData getGraphicData()
Returns graphic data.

start

public void start()
Inicia as requisições.

stop

public void stop()
Pára de fazer as requisições.

run

public void run()
Inicia o polling.
Specified by:
run in interface java.lang.Runnable