org.jscience.net
Class Spider.SMonitor

java.lang.Object
  extended by org.jscience.util.Monitor
      extended by org.jscience.net.Spider.SMonitor
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
Spider

Deprecated.

@Deprecated
public static class Spider.SMonitor
extends Monitor
implements java.lang.Runnable

a specialized Monitor that can be used with a Spider; it simply provides some useful progress information during execution of the searchWebFor() function

See Also:
Spider.searchWebFor(String[],URL,boolean,int,boolean,String[],Monitor)

Field Summary
 
Fields inherited from class org.jscience.util.Monitor
test, timer
 
Constructor Summary
Spider.SMonitor(Logger logger, int maxFound)
          Deprecated.  
 
Method Summary
 int getCurrentLevel()
          Deprecated.  
 java.net.URL getCurrentURL()
          Deprecated.  
 java.util.List getExcludeList()
          Deprecated.  
 int getNumberOfPagesFound()
          Deprecated.  
 int getNumberOfPagesSearched()
          Deprecated.  
 java.util.List getResultList()
          Deprecated.  
 java.util.List getSearchList()
          Deprecated.  
 void run()
          Deprecated. prints progress information from the given monitor to either the console or a specified log file
 void setMaxFound(int maxFound)
          Deprecated.  
 
Methods inherited from class org.jscience.util.Monitor
disable, disabled, disableLater, done, enable, enabled, getMax, getMessage, getMin, getNumber, getNumber, getObject, getObject, getSize, getTask, getTimer, increment, increment, isDone, reInitialize, runTask, setMax, setMessage, setMin, setNumber, setNumber, setObject, setObject, setTask, test, test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Spider.SMonitor

public Spider.SMonitor(Logger logger,
                       int maxFound)
Deprecated. 
Parameters:
logger - if not null, logger will be used to log all messages there
maxFound - if set to a number >0, run() will disable the given monitor after the given number of pages were reported found by the monitor
See Also:
Spider.searchWebFor(String[],URL,boolean,int,boolean,String[],Monitor)
Method Detail

run

public void run()
Deprecated. 
prints progress information from the given monitor to either the console or a specified log file

Specified by:
run in interface java.lang.Runnable

getNumberOfPagesSearched

public int getNumberOfPagesSearched()
Deprecated. 

getCurrentLevel

public int getCurrentLevel()
Deprecated. 

getNumberOfPagesFound

public int getNumberOfPagesFound()
Deprecated. 

getCurrentURL

public java.net.URL getCurrentURL()
Deprecated. 

getSearchList

public java.util.List getSearchList()
Deprecated. 

getExcludeList

public java.util.List getExcludeList()
Deprecated. 

getResultList

public java.util.List getResultList()
Deprecated. 

setMaxFound

public void setMaxFound(int maxFound)
Deprecated.