Name | Modified | Size | Downloads / Week |
---|---|---|---|
readme.txt | 2011-02-02 | 2.8 kB | |
testSWT.ZIP | 2011-02-02 | 423.8 kB | |
Totals: 2 Items | 426.6 kB | 0 |
The application will allow to check the status of a list of websites. The result of the verification of a site is OK or Down. The audit of each site will be made with a configured interval. Interface: 1. We may add sites using the field "Website". The site is added when you click on the "Add" button or type "Enter". For a site added, the audit interval is set by default at 3 minutes. 2. The sites are displayed in a table with three columns: Web Site, Check Delay Status. The column "Check Delay" is editable and user can change the range of verification of a site. 3. The load button "Load ..." to load a list of available sites with intervals of audit. The file format must be an xml. 4. The button "Save ..." will allow saving as the lists of sites in a file that can be after loaded with "Load ...". 5. The "Close" button closes the application Constraints: 1. The interface will be implemented using SWT 2. The application will be done with Eclipse and Eclipse should be executable. 3. The sites are tested using an HTTP connection. The site is considered OK if the connection has succeeded and the response code is 200. 4. The interface should remain usable even while tests are run 5. The tests are conducted concurrently but using a limited number of threads conserve system resources. Classes ======= WebSite - The WebSite class represents the site to be checked Connection - The Connection class represents the connection to a site to be checked. Used for check the site disponibility in a thread CurrentWebSite - The CurrentWebSite class represents a list with the sites to be checked. Used only for saving/loading into the XML file MainThread - The MainThread class represents the dispatcher for checking the connection to sites with a Thread Pool . Utilities - The Utilities class have various static methods used in the project. CheckSiteMain - The CheckSitesMain class run the UI . Other ressources ================ CheckSites.ico - icon for the project test folder - test case (Junit 4) swt.jar - SWT library xstream-1.3.1.jar - save/load object into XML library How to ======= Executors.newFixedThreadPool CheckSiteMain --------start-----> MainThread ----------WebSite----------------> Connection | ^ | | |display.asyncExec() run | ConcurrentLinkedQueue | | Display GUI <-----------------^----- ******web******** | *checkConnection* |___________________WebSite____________________*****************