Java Doc for BrokenLinkCheckerAvalonWrapper.java in  » Content-Management-System » hippo-cms » nl » hippo » cms » brokenlinkchecker » avalon » 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 » Content Management System » hippo cms » nl.hippo.cms.brokenlinkchecker.avalon 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


nl.hippo.cms.brokenlinkchecker.avalon.BrokenLinkCheckerAvalonWrapper

BrokenLinkCheckerAvalonWrapper
public class BrokenLinkCheckerAvalonWrapper extends AbstractLogEnabled implements Serviceable,Parameterizable,Initializable,CronJob,ThreadSafe(Code)

This Avalon component runs the broken link checker inside an Avalon container at specified times.

The following parameters are used:

Parameter name Requiredness Description
enabled Required Whether or not the broken link checker is enabled. If true the broken link checks will be performed.
role-of-this-component Required if enabled To be able to schedule itself this component must know its role. Unfortunately this component cannot obtain its role from the Avalon environment, so it must be specified by the user.
job-name Optional The name under which to schedule this component in the job scheduler. This name must be different from other jobs and names used for other instances of this component. If ommitted the fully-qualified class name of this component, nl.hippo.cms.brokenlinkchecker.avalon.BrokenLinkCheckerAvalonWrapper, will be used.
cron-expression Required if enabled A scheduling expression specifying when the broken link checker should run. See the Cron Triggers Tutorial of Quartz for more information about the scheduling expression.
document-tree-to-check-root-url Required if enabled The absolute URL of the root of the tree that should be checked for documents containing broken links. For example: http://localhost:60000/default/files/default.www/content/bulk.
documents-base-url Required if enabled The document URLs returned by the repository contain the complete path from the root of the webserver. This (relative) URL is the base URL that will be removed from the returned document URLs. For example: /default/files/default.www.
internal-url-prefixes-to-ignore Optional Not all internal links point to documents. To prevent these links from incorrectly being reported as broken, a set of URL prefixes can be specified. If an internal URL starts with one of these prefixes, it is not checked for brokenness. The format of this parameter is a set of space-separated relative URLs. For example: /assets/binaries/ /binaries/.
internal-links-base-url Required if enabled Internal links are specified using relative URLs. To be able to check if an internal link is broken an absolute URL is needed. This absolute URL will be prefixed to the URL of internal links so they can be checked. Note: this URL must point to a location that is part of the same repository as the tree containing the documents to check. For example: http://localhost:60000/default/files/default.www.
repository-username Required if enabled The username to use to login to the repository containing the documents to check, the documents pointed to by internal links and the result document.
repository-password Required if enabled The password to use to login to the repository containing the documents to check, the documents pointed to by internal links and the result document.
result-document-url Required if enabled The absolute URL of the document to which the results must be written. The folder in which the document must be stored must already exist. Note: this URL must point to a location that is part of the same repository as the tree containing the documents to check. For example: http://localhost:60000/default/files/default.www/broken-links.xml.
document-batch-size Optional For technical and performance reasons it is not possible to retrieve all documents containing links using one search request. This parameter specifies how many documents must be processed per search request. Valid values: [1, 1000]. If this parameter is omitted 100 documents will be processed per request.
number-of-link-checking-threads Optional Checking links is a time-consuming process because external servers have to be contacted. The checking does not use a lot of resources so it is no problem to check multiple links simultaneously. This parameter specifies how many links must be checked simultaneously. Valid values: [1, ∞> (practically the maximum value is 231 - 1 = 2147483647), but values greater than 25 are discouraged because of performance reasons. If this parameter is omitted 10 links will be checked simultaneously.
link-check-timeout-seconds Optional It is possible that a server to which a link points is unresponsive. The thread checking the link will wait a while before deciding that the link is broken. This timeout (in seconds) specifies how long a thread should wait for an unresponsive server before marking the link as broken. Valid values: [1, 2147483]. If this parameter is omitted the threads will wait 10 seconds for unresponsive servers.



Constructor Summary
public  BrokenLinkCheckerAvalonWrapper()
    

Create an instance of this component.


Method Summary
public  voidexecute(String jobName)
    

Run the broken links checker.

public  voidinitialize()
    

Create the configuration for the broken link checker so it will be ready when this component is executed as a job, and schedule this component as a job in the job scheduler.

public  voidparameterize(Parameters parameters)
    

Read the configuration from the Avalon parameters.

public  voidservice(ServiceManager serviceManager)
    

Inject the Avalon service manager into this component.



Constructor Detail
BrokenLinkCheckerAvalonWrapper
public BrokenLinkCheckerAvalonWrapper()(Code)

Create an instance of this component. The instance is unusable after construction. The Avalon lifecycle methods have to be invoked (in the correct order) on the instance for it to start working.





Method Detail
execute
public void execute(String jobName)(Code)

Run the broken links checker.




initialize
public void initialize() throws CascadingException(Code)

Create the configuration for the broken link checker so it will be ready when this component is executed as a job, and schedule this component as a job in the job scheduler.


throws:
  CascadingException - if an error occurs during intialization.



parameterize
public void parameterize(Parameters parameters) throws ParameterException(Code)

Read the configuration from the Avalon parameters.


Parameters:
  parameters - the Avalon parameters to read the configuration from.
throws:
  ParameterException - if a parameter is missing or has an invalid value.



service
public void service(ServiceManager serviceManager)(Code)

Inject the Avalon service manager into this component.


Parameters:
  serviceManager - the Avalon service manager.



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