|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--websphinx.workbench.Statistics
Inner classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock |
Field Summary | |
(package private) java.lang.String |
activeThreads
|
(package private) java.awt.Dimension |
cached
|
(package private) Crawler |
crawler
|
(package private) java.awt.FontMetrics |
fm
|
(package private) static java.text.NumberFormat |
fmtPagesPerSec
|
(package private) static int |
GUTTER
|
(package private) long |
kbMaxUsed
|
(package private) java.lang.String |
linksTested
|
(package private) java.lang.String |
memoryMaxUsed
|
(package private) java.lang.String |
memoryUsed
|
(package private) java.awt.Dimension |
minSize
|
(package private) long |
msecTotal
|
(package private) java.awt.Graphics |
offg
|
(package private) java.awt.Image |
offscreen
|
(package private) java.awt.Dimension |
offSize
|
(package private) static int |
PAGES_PER_SEC_DECIMAL_PLACES
|
(package private) java.lang.String |
pagesLeft
|
(package private) java.lang.String |
pagesPerSec
|
(package private) java.lang.String |
pagesVisited
|
(package private) java.awt.Button |
refreshButton
|
(package private) boolean |
running
|
(package private) java.lang.String |
runningTime
|
(package private) java.lang.Thread |
thread
|
(package private) long |
timeLastUpdate
|
Fields inherited from class java.awt.Panel |
base, nameCounter, serialVersionUID |
Fields inherited from class java.awt.Container |
component, containerListener, containerSerializedDataVersion, dbg, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads |
Fields inherited from class java.awt.Component |
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Statistics()
|
Method Summary | |
(package private) static void |
|
void |
clear()
Reset statistics (primarily the running time, since all other statistics are computed directly from the crawler's state). |
void |
cleared(CrawlEvent event)
Notify that the crawler's state was cleared. |
(package private) void |
createOffscreenArea(java.awt.Dimension d)
|
(package private) int |
drawField(java.awt.Graphics g,
int y,
java.lang.String caption,
java.lang.String value)
|
(package private) void |
drawFields(java.awt.Graphics g)
|
(package private) static java.lang.String |
formatPagesPerSec(double x)
|
(package private) static java.lang.String |
formatTime(int d,
int h,
int m,
int s)
|
(package private) static java.lang.String |
formatTime(long time)
|
boolean |
handleEvent(java.awt.Event event)
|
void |
layout()
|
(package private) int |
measureField(java.awt.FontMetrics fm,
java.lang.String caption,
java.lang.String value)
|
(package private) void |
measureFields()
|
java.awt.Dimension |
minimumSize()
|
static java.awt.Frame |
monitor(Crawler crawler)
Create a new Frame containing a Statistics panel connected to a crawler. |
void |
paint(java.awt.Graphics g)
|
void |
paused(CrawlEvent event)
Notify that the crawler is paused. |
java.awt.Dimension |
preferredSize()
|
void |
run()
Background thread. |
void |
start()
Start the background thread to update the display. |
void |
started(CrawlEvent event)
Notify that the crawler started. |
void |
stop()
Stop the background thread that updates the display. |
void |
stopped(CrawlEvent event)
Notify that the crawler ran out of links to crawl |
void |
timedOut(CrawlEvent event)
Notify that the crawler timed out. |
void |
update()
Compute the latest statistics. |
void |
update(java.awt.Graphics g)
|
Methods inherited from class java.awt.Panel |
addNotify, constructComponentName, getAccessibleContext |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, adjustListeningChildren, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, lightweightPaint, lightweightPrint, list, list, locate, nextFocus, numListening, paintComponents, paintHeavyweightComponents, paramString, postProcessKeyEvent, postsOldMouseEvents, preProcessKeyEvent, print, printComponents, printHeavyweightComponents, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, readObject, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusOwner, setFont, setLayout, transferFocus, validate, validateTree, writeObject |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, resetGC, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Field Detail |
Crawler crawler
java.lang.Thread thread
boolean running
static final int PAGES_PER_SEC_DECIMAL_PLACES
static final java.text.NumberFormat fmtPagesPerSec
java.lang.String runningTime
java.lang.String activeThreads
java.lang.String linksTested
java.lang.String pagesVisited
java.lang.String pagesPerSec
java.lang.String pagesLeft
java.lang.String memoryUsed
java.lang.String memoryMaxUsed
java.awt.Button refreshButton
long msecTotal
long timeLastUpdate
long kbMaxUsed
java.awt.Image offscreen
java.awt.Dimension offSize
java.awt.Graphics offg
java.awt.FontMetrics fm
java.awt.Dimension minSize
static final int GUTTER
java.awt.Dimension cached
Constructor Detail |
public Statistics()
Method Detail |
static void()
public void layout()
layout
in class java.awt.Container
public java.awt.Dimension minimumSize()
minimumSize
in class java.awt.Container
public java.awt.Dimension preferredSize()
preferredSize
in class java.awt.Container
public void update(java.awt.Graphics g)
update
in class java.awt.Container
void createOffscreenArea(java.awt.Dimension d)
int drawField(java.awt.Graphics g, int y, java.lang.String caption, java.lang.String value)
void drawFields(java.awt.Graphics g)
int measureField(java.awt.FontMetrics fm, java.lang.String caption, java.lang.String value)
void measureFields()
public void paint(java.awt.Graphics g)
paint
in class java.awt.Container
public boolean handleEvent(java.awt.Event event)
handleEvent
in class java.awt.Component
public void clear()
public void update()
static java.lang.String formatTime(long time)
static java.lang.String formatTime(int d, int h, int m, int s)
static java.lang.String formatPagesPerSec(double x)
public void start()
public void stop()
public void run()
run
in interface java.lang.Runnable
public void started(CrawlEvent event)
started
in interface CrawlListener
public void stopped(CrawlEvent event)
stopped
in interface CrawlListener
public void cleared(CrawlEvent event)
cleared
in interface CrawlListener
public void timedOut(CrawlEvent event)
timedOut
in interface CrawlListener
public void paused(CrawlEvent event)
paused
in interface CrawlListener
public static java.awt.Frame monitor(Crawler crawler)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |