Java Doc for Checkpointer.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
   org.archive.crawler.framework.Checkpointer

Checkpointer
public class Checkpointer implements Serializable(Code)
Runs checkpointing. Also keeps history of crawl checkpoints Generally used by CrawlController only but also has static utility methods classes that need to participate in a checkpoint can use.
author:
   gojomo
author:
   stack

Inner Class :public class CheckpointingThread extends Thread

Field Summary
final public static  DecimalFormatINDEX_FORMAT
    

Constructor Summary
public  Checkpointer(CrawlController cc, File checkpointDir)
    
public  Checkpointer(CrawlController cc, String prefix)
    

Method Summary
public  voidcheckpoint()
     Run a checkpoint of the crawler.
protected  voidcheckpointFailed(Exception e)
    
protected  voidcheckpointFailed(String message)
    
protected  voidcheckpointFailed()
    
 voidcleanup()
    
protected  voidclearCheckpointInProgressDirectory()
    
protected  FilecreateCheckpointInProgressDirectory()
    
public static  StringformatCheckpointName(String prefix, int index)
    
public  FilegetCheckpointInProgressDirectory()
     Checkpoint directory.
protected  CrawlControllergetController()
    
public  intgetNextCheckpoint()
    
public  StringgetNextCheckpointName()
    
public  ListgetPredecessorCheckpoints()
    
protected  voidinitialize(CrawlController cc, String prefix)
    
public  booleanisAtBeginning()
    
protected  booleanisCheckpointErrors()
    
public  booleanisCheckpointFailed()
    
public  booleanisCheckpointing()
    
public  voidrecover(CrawlController cc)
     Call when recovering from a checkpoint.
protected  voidsetCheckpointErrors(boolean checkpointErrors)
    
protected  voidwriteValidity()
    

Field Detail
INDEX_FORMAT
final public static DecimalFormat INDEX_FORMAT(Code)




Constructor Detail
Checkpointer
public Checkpointer(CrawlController cc, File checkpointDir)(Code)
Create a new CheckpointContext with the given store directory
Parameters:
  cc - CrawlController instance thats hosting this Checkpointer.
Parameters:
  checkpointDir - Where to store checkpoint.



Checkpointer
public Checkpointer(CrawlController cc, String prefix)(Code)
Create a new CheckpointContext with the given store directory
Parameters:
  cc - CrawlController instance thats hosting this Checkpointer.
Parameters:
  prefix - Prefix for checkpoint label.




Method Detail
checkpoint
public void checkpoint()(Code)
Run a checkpoint of the crawler.



checkpointFailed
protected void checkpointFailed(Exception e)(Code)
Note that a checkpoint failed
Parameters:
  e - Exception checkpoint failed on.



checkpointFailed
protected void checkpointFailed(String message)(Code)



checkpointFailed
protected void checkpointFailed()(Code)



cleanup
void cleanup()(Code)



clearCheckpointInProgressDirectory
protected void clearCheckpointInProgressDirectory()(Code)



createCheckpointInProgressDirectory
protected File createCheckpointInProgressDirectory()(Code)



formatCheckpointName
public static String formatCheckpointName(String prefix, int index)(Code)



getCheckpointInProgressDirectory
public File getCheckpointInProgressDirectory()(Code)
Checkpoint directory. Name of the directory is the name of thiscurrent checkpoint. Null if no checkpoint in progress.



getController
protected CrawlController getController()(Code)



getNextCheckpoint
public int getNextCheckpoint()(Code)
Returns the nextCheckpoint index.



getNextCheckpointName
public String getNextCheckpointName()(Code)
next checkpoint name (zero-padding string).



getPredecessorCheckpoints
public List getPredecessorCheckpoints()(Code)
Returns the predecessorCheckpoints.



initialize
protected void initialize(CrawlController cc, String prefix)(Code)



isAtBeginning
public boolean isAtBeginning()(Code)
Return whether this context is at a new crawl, never-checkpointed state.



isCheckpointErrors
protected boolean isCheckpointErrors()(Code)



isCheckpointFailed
public boolean isCheckpointFailed()(Code)
True if current/last checkpoint failed.



isCheckpointing
public boolean isCheckpointing()(Code)
True if a checkpoint is in progress.



recover
public void recover(CrawlController cc)(Code)
Call when recovering from a checkpoint. Call this after instance has been revivifyied post-serialization to amend counters and directories that effect where checkpoints get stored from here on out.
Parameters:
  cc - CrawlController instance.



setCheckpointErrors
protected void setCheckpointErrors(boolean checkpointErrors)(Code)



writeValidity
protected void writeValidity()(Code)



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.