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
-
Statistics()
-
-
clear()
- Reset statistics (primarily the running time, since all other
statistics are computed directly from the crawler's state).
-
cleared(CrawlEvent)
- Notify that the crawler's state was cleared.
-
handleEvent(Event)
-
-
layout()
-
-
minimumSize()
-
-
monitor(Crawler)
- Create a new Frame containing a Statistics panel connected to a crawler.
-
paint(Graphics)
-
-
paused(CrawlEvent)
- Notify that the crawler is paused.
-
preferredSize()
-
-
run()
- Background thread.
-
start()
- Start the background thread to update the display.
-
started(CrawlEvent)
- Notify that the crawler started.
-
stop()
- Stop the background thread that updates the display.
-
stopped(CrawlEvent)
- Notify that the crawler ran out of links to crawl
-
timedOut(CrawlEvent)
- Notify that the crawler timed out.
-
update()
- Compute the latest statistics.
-
update(Graphics)
-
Statistics
public Statistics()
layout
public synchronized void layout()
- Overrides:
- layout in class Container
minimumSize
public Dimension minimumSize()
- Overrides:
- minimumSize in class Container
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Container
update
public synchronized void update(Graphics g)
- Overrides:
- update in class Container
paint
public synchronized void paint(Graphics g)
- Overrides:
- paint in class Container
handleEvent
public boolean handleEvent(Event event)
- Overrides:
- handleEvent in class Component
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.
update
public synchronized void update()
- Compute the latest statistics. Called automatically by
a background thread when the crawler is running.
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.
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.
run
public void run()
- Background thread. Clients shouldn't call this.
started
public void started(CrawlEvent event)
- Notify that the crawler started.
stopped
public synchronized void stopped(CrawlEvent event)
- Notify that the crawler ran out of links to crawl
cleared
public void cleared(CrawlEvent event)
- Notify that the crawler's state was cleared.
timedOut
public void timedOut(CrawlEvent event)
- Notify that the crawler timed out.
paused
public void paused(CrawlEvent event)
- Notify that the crawler is paused.
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