All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class websphinx.workbench.Statistics

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----websphinx.workbench.Statistics

public class Statistics
extends Panel
implements CrawlListener, Runnable

Constructor Index

 o Statistics()

Method Index

 o clear()
Reset statistics (primarily the running time, since all other statistics are computed directly from the crawler's state).
 o cleared(CrawlEvent)
Notify that the crawler's state was cleared.
 o handleEvent(Event)
 o layout()
 o minimumSize()
 o monitor(Crawler)
Create a new Frame containing a Statistics panel connected to a crawler.
 o paint(Graphics)
 o paused(CrawlEvent)
Notify that the crawler is paused.
 o preferredSize()
 o run()
Background thread.
 o start()
Start the background thread to update the display.
 o started(CrawlEvent)
Notify that the crawler started.
 o stop()
Stop the background thread that updates the display.
 o stopped(CrawlEvent)
Notify that the crawler ran out of links to crawl
 o timedOut(CrawlEvent)
Notify that the crawler timed out.
 o update()
Compute the latest statistics.
 o update(Graphics)

Constructors

 o Statistics
 public Statistics()

Methods

 o layout
 public synchronized void layout()
Overrides:
layout in class Container
 o minimumSize
 public Dimension minimumSize()
Overrides:
minimumSize in class Container
 o preferredSize
 public Dimension preferredSize()
Overrides:
preferredSize in class Container
 o update
 public synchronized void update(Graphics g)
Overrides:
update in class Container
 o paint
 public synchronized void paint(Graphics g)
Overrides:
paint in class Container
 o handleEvent
 public boolean handleEvent(Event event)
Overrides:
handleEvent in class Component
 o clear
 public synchronized void clear()
Reset statistics (primarily the running time, since all other statistics are computed directly from the crawler's state). If listening to a crawler, this method is called automatically when the crawler is cleared.

 o update
 public synchronized void update()
Compute the latest statistics. Called automatically by a background thread when the crawler is running.

 o start
 public synchronized void start()
Start the background thread to update the display. If listening to a crawler, this method is called automatically when the crawler starts.

 o stop
 public synchronized void stop()
Stop the background thread that updates the display. If listening to a crawler, this method is called automatically when the crawler stops.

 o run
 public void run()
Background thread. Clients shouldn't call this.

 o started
 public void started(CrawlEvent event)
Notify that the crawler started.

 o stopped
 public synchronized void stopped(CrawlEvent event)
Notify that the crawler ran out of links to crawl

 o cleared
 public void cleared(CrawlEvent event)
Notify that the crawler's state was cleared.

 o timedOut
 public void timedOut(CrawlEvent event)
Notify that the crawler timed out.

 o paused
 public void paused(CrawlEvent event)
Notify that the crawler is paused.

 o monitor
 public static Frame monitor(Crawler crawler)
Create a new Frame containing a Statistics panel connected to a crawler.


All Packages  Class Hierarchy  This Package  Previous  Next  Index