DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2006

    Logging module & URL program

    Hello All,

    I have a couple of programming problems that I need some assistance with. Any help from you guys will be highly appreciated.

    1) Need to create a logging module that is thread safe, that timestamps the log entries in GMT and rotates log files nightly at midnight

    2) Need to write a program that accepts a series or URLs on the command-line, and prints the top 3 fastest URLs, along with their timing (for reading). It should not wait for any additional URLs to complete. For example:

    $ java URLTester http://yahoo.com http://google.com http://microsoft.com http://mindspring.com http://download.com

    http://google.com 30ms
    http://mindspring.com 40ms
    http://yahoo.com 2000ms

    (and the program should end at this point... It should not wait for all URLs to complete)

    Like I said, even if you can point me in the right direction with the above two examples, I will highly appreciate it.

    Kunal Sathe

  2. #2
    Join Date
    Sep 2006

    1) See log4j

    2) Why don't you want to execute a ping.exe program from your application?

Similar Threads

  1. soft drink Vending machine program
    By divagoddess in forum C++
    Replies: 5
    Last Post: 08-14-2009, 03:12 PM
  2. Re: remainder of WebCrawler Program
    By bdjos1 in forum Java
    Replies: 0
    Last Post: 07-05-2006, 10:36 AM
  3. WebCrawler program not working properly
    By bdjos1 in forum Java
    Replies: 0
    Last Post: 07-05-2006, 10:31 AM
  4. Replies: 15
    Last Post: 07-28-2005, 11:14 AM
  5. Please help with running executable vb program.
    By Gordon Reichhardt in forum VB Classic
    Replies: 2
    Last Post: 01-08-2002, 10:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.