Java Doc for FrontierHostStatistics.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) 


org.archive.crawler.framework.FrontierHostStatistics

FrontierHostStatistics
public interface FrontierHostStatistics (Code)
An optional interface the Frontiers can implement to provide information about specific hosts.

Some URIFrontier implmentations will want to provide a number of statistics relating to the progress of particular hosts. This only applies to those Frontiers whose internal structure uses hosts to split up the workload and (for example) implement politeness. Some other Frontiers may also provide this info based on calculations.


author:
   Kristinn Sigurdsson
See Also:   org.archive.crawler.framework.Frontier


Field Summary
final public static  intHOST_DEFERRED
     Host has been deferred for some amount of time, will become ready once once that time has elapsed.
final public static  intHOST_INACTIVE
     Host has been encountered and all availible URIs for it have been processed already.
final public static  intHOST_INPROCESS
     Host has URIs currently being proessed.
final public static  intHOST_READY
     Host has URIs ready to be emited.
final public static  intHOST_UNKNOWN
     Host has not been encountered by the Frontier, or has been encountered but has been inactive so long that it has expired.


Method Summary
public  intactiveHosts()
     Total number of hosts that are currently active.
public  intdeferredHosts()
     Total number of deferred hosts.
public  inthostStatus(String host)
     Get the status of a host.

Hosts can be in one of the following states:

Some Frontiers may allow a host to have more then one URI in process at the same time.

public  intinProcessHosts()
     Total number of hosts with URIs in process.

It is generally assumed that each host can have only 1 URI in process at the same time.

public  intinactiveHosts()
     Total number of inactive hosts.
public  intreadyHosts()
     Total number of hosts that have a URI ready for processing.

Field Detail
HOST_DEFERRED
final public static int HOST_DEFERRED(Code)
Host has been deferred for some amount of time, will become ready once once that time has elapsed. This is most likely due to politeness or waiting between retries. Other conditions may exist.



HOST_INACTIVE
final public static int HOST_INACTIVE(Code)
Host has been encountered and all availible URIs for it have been processed already. More URIs may become availible later or not. Inactive hosts may eventually become 'forgotten'.



HOST_INPROCESS
final public static int HOST_INPROCESS(Code)
Host has URIs currently being proessed.



HOST_READY
final public static int HOST_READY(Code)
Host has URIs ready to be emited.



HOST_UNKNOWN
final public static int HOST_UNKNOWN(Code)
Host has not been encountered by the Frontier, or has been encountered but has been inactive so long that it has expired.





Method Detail
activeHosts
public int activeHosts()(Code)
Total number of hosts that are currently active.

Active hosts are considered to be those that are ready, deferred or in process. Total number of hosts that are currently active.




deferredHosts
public int deferredHosts()(Code)
Total number of deferred hosts.

Deferred hosts are currently active hosts that have been deferred from processing for the time being (becausee of politeness or waiting before retrying. Total number of deferred hosts.




hostStatus
public int hostStatus(String host)(Code)
Get the status of a host.

Hosts can be in one of the following states:

Some Frontiers may allow a host to have more then one URI in process at the same time. In those cases it will be reported as FrontierHostStatistics.HOST_READY Ready as long as it is has more URIs ready for processing. Only once it has no more possible URIs for processing will it be reported as FrontierHostStatistics.HOST_INPROCESS In process
Parameters:
  host - The name of the host to lookup the status for. The status of the specified host.
See Also:   FrontierHostStatistics.HOST_DEFERRED
See Also:   FrontierHostStatistics.HOST_INACTIVE
See Also:   FrontierHostStatistics.HOST_INPROCESS
See Also:   FrontierHostStatistics.HOST_READY
See Also:   FrontierHostStatistics.HOST_UNKNOWN




inProcessHosts
public int inProcessHosts()(Code)
Total number of hosts with URIs in process.

It is generally assumed that each host can have only 1 URI in process at the same time. However some frontiers may implement politeness differently meaning that the same host is both ready and in process. FrontierHostStatistics.activeHosts() activeHosts() will not count them twice though. Total number of hosts with URIs in process.




inactiveHosts
public int inactiveHosts()(Code)
Total number of inactive hosts.

Inactive hosts are those hosts that have been active but have now been exhausted and contain no more additional URIs. Total number of inactive hosts.




readyHosts
public int readyHosts()(Code)
Total number of hosts that have a URI ready for processing. Total number of hosts that have a URI ready for processing.



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