Generic test of different protocols e.g. Http, Imap, Ldap, pop,... with only one class
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Thorsten_Scherler
Posted On:   Friday, December 12, 2003 01:18 AM

Hello everybody, I have to write a webapp that is able to monitor different server and different protocols. My boss wants something generic, where he can store the command in a db and java app looks up the commond, execute it, get the response. Guess you have a table called commands. There you store the command, the response and the status of the response. e.g. command=ping localhost, response=Respuesta desde 127.0.0.1: bytes=32 tiempo<10ms TTL=128, and the value would be OK. If the response would be an error (e.g. Host unknown) the value would be ERROR. BUT like I stated it should be able to test different protocols. I started to make tests with http, I used Apache common-httpclient. Then I wanted   More>>

Hello everybody,


I have to write a webapp that is able to monitor different server and different protocols.

My boss wants something generic, where he can store the command in a db and java app looks up the commond, execute it, get the response.

Guess you have a table called commands. There you store the command, the response and the status of the response. e.g. command=ping localhost, response=Respuesta desde 127.0.0.1: bytes=32 tiempo<10ms TTL=128, and the value would be OK. If the response would be an error (e.g. Host unknown) the value would be ERROR.

BUT like I stated it should be able to test different protocols.

I started to make tests with http, I used Apache common-httpclient.
Then I wanted to integrate more classes to my app, like testing LDAP, IMAP, POP,...

BUT that is not really what my boss want :(

I really hope anyone has an idea because I look now for some time for the solution

King regards and cheers for your help


   <<Less

Re: Generic test of different protocols e.g. Http, Imap, Ldap, pop,... with only one class

Posted By:   Thorsten_Scherler  
Posted On:   Friday, December 12, 2003 02:01 AM

Ok, I just talked to a guy who wrote a similar application in perl.


I came to the conclusion that I need at least 3 differnt classes:

  • 1) http-client

  • 2) socket-tester (smtp, pop, impap, ftp)

  • 3) LDAP tester


  • BUT still the question is valid: Is it possible to do it even more generic?


    King regards

    About | Sitemap | Contact