Java Doc for ToePool.java in  » Web-Crawler » heritrix » org » archive » crawler » framework » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Crawler » heritrix » org.archive.crawler.framework 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.ThreadGroup
      org.archive.crawler.framework.ToePool

ToePool
public class ToePool extends ThreadGroup implements Reporter(Code)
A collection of ToeThreads. The class manages the ToeThreads currently running. Including increasing and decreasing their number, keeping track of their state and it can be used to kill hung threads.
author:
   Gordon Mohr
author:
   Kristinn Sigurdsson
See Also:   org.archive.crawler.framework.ToeThread


Field Summary
public static  StringCOMPACT_REPORT
    
public static  intDEFAULT_TOE_PRIORITY
    
protected static  String[]REPORTS
    
public static  StringSTANDARD_REPORT
    
protected  CrawlControllercontroller
    
protected  intnextSerialNumber
    
protected  inttargetSize
    

Constructor Summary
public  ToePool(CrawlController c)
     Constructor.

Method Summary
public  voidcleanup()
    
protected  voidcompactReportTo(PrintWriter writer)
    
public  intgetActiveToeCount()
    
public  CrawlControllergetController()
    
public  String[]getReports()
    
public  intgetToeCount()
     The number of ToeThreads.
public  voidkillThread(int threadNumber, boolean replace)
     Kills specified thread.
public  voidreportTo(String name, PrintWriter writer)
    
public  voidreportTo(PrintWriter writer)
    
public  voidsetSize(int newsize)
     Change the number of ToeThreads.
public  StringsingleLineLegend()
    
public  StringsingleLineReport()
    
public  voidsingleLineReportTo(PrintWriter w)
    
protected  voidstandardReportTo(PrintWriter writer)
    

Field Detail
COMPACT_REPORT
public static String COMPACT_REPORT(Code)



DEFAULT_TOE_PRIORITY
public static int DEFAULT_TOE_PRIORITY(Code)
run worker thread slightly lower than usual



REPORTS
protected static String[] REPORTS(Code)



STANDARD_REPORT
public static String STANDARD_REPORT(Code)



controller
protected CrawlController controller(Code)



nextSerialNumber
protected int nextSerialNumber(Code)



targetSize
protected int targetSize(Code)




Constructor Detail
ToePool
public ToePool(CrawlController c)(Code)
Constructor. Creates a pool of ToeThreads.
Parameters:
  c - A reference to the CrawlController for the current crawl.




Method Detail
cleanup
public void cleanup()(Code)



compactReportTo
protected void compactReportTo(PrintWriter writer)(Code)



getActiveToeCount
public int getActiveToeCount()(Code)
The number of ToeThreads that are not available (Approximation).



getController
public CrawlController getController()(Code)
Instance of CrawlController.



getReports
public String[] getReports()(Code)



getToeCount
public int getToeCount()(Code)
The number of ToeThreads. This may include killed ToeThreadsthat were not replaced.



killThread
public void killThread(int threadNumber, boolean replace)(Code)
Kills specified thread. Killed thread can be optionally replaced with a new thread.

WARNING: This operation should be used with great care. It may destabilize the crawler.
Parameters:
  threadNumber - Thread to kill
Parameters:
  replace - If true then a new thread will be created to take thekilled threads place. Otherwise the total number of threadswill decrease by one.




reportTo
public void reportTo(String name, PrintWriter writer)(Code)



reportTo
public void reportTo(PrintWriter writer)(Code)



setSize
public void setSize(int newsize)(Code)
Change the number of ToeThreads.
Parameters:
  newsize - The new number of ToeThreads.



singleLineLegend
public String singleLineLegend()(Code)



singleLineReport
public String singleLineReport()(Code)



singleLineReportTo
public void singleLineReportTo(PrintWriter w)(Code)



standardReportTo
protected void standardReportTo(PrintWriter writer)(Code)



Methods inherited from java.lang.ThreadGroup
public int activeCount()(Code)(Java Doc)
public int activeGroupCount()(Code)(Java Doc)
public boolean allowThreadSuspension(boolean b)(Code)(Java Doc)
final public void checkAccess()(Code)(Java Doc)
final public void destroy()(Code)(Java Doc)
public int enumerate(Thread list)(Code)(Java Doc)
public int enumerate(Thread list, boolean recurse)(Code)(Java Doc)
public int enumerate(ThreadGroup list)(Code)(Java Doc)
public int enumerate(ThreadGroup list, boolean recurse)(Code)(Java Doc)
final public int getMaxPriority()(Code)(Java Doc)
final public String getName()(Code)(Java Doc)
final public ThreadGroup getParent()(Code)(Java Doc)
final public void interrupt()(Code)(Java Doc)
final public boolean isDaemon()(Code)(Java Doc)
public synchronized boolean isDestroyed()(Code)(Java Doc)
public void list()(Code)(Java Doc)
final public boolean parentOf(ThreadGroup g)(Code)(Java Doc)
final public void resume()(Code)(Java Doc)
final public void setDaemon(boolean daemon)(Code)(Java Doc)
final public void setMaxPriority(int pri)(Code)(Java Doc)
final public void stop()(Code)(Java Doc)
final public void suspend()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void uncaughtException(Thread t, Throwable e)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.