This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes writing java program to check site availiblity - discuss design Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "writing java program to check site availiblity - discuss design" Watch "writing java program to check site availiblity - discuss design" New topic
Author

writing java program to check site availiblity - discuss design

Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
Hi all,

I want to discuss design of a java program before I start writing it. My main motive is to keep program generalize as much as possible, means less hardcoded and more flexible for reuse in other projects.

Our site is deployed on clustered environment having multiple nodes with clustered db. I am planning to write a java program which will:



Here nodes will be a list of node objects. Each node object will have nodeName, NodeIP, NodeStatus, CellNumebersCollectionOfNodeAdmins, EmailAddressCollectionOfNodeAdmins, MessageForSMS, MessageForEmail.

In above code:

sendSmsToAdmins(nodeName): I believe one has to change its implementation because this require SMS Gateway. If there is any way to generalize it for max reuse then please share.
sendMailToAdmins(nodeName): Info/Configs required for sending mail can be kept property/resource file. So no need for re-implementation
logInFile(nodeName,File): This is optional. In case sendSmsToAdmins() and sendMailToAdmins() is disabled for whatever reason, then logInFile() can be used.
Node Information: Below node info can be kept in XML file, so in future if we have some new node or modify existing node info, then no need to recompile.
Node Info: nodeName, NodeIP, NodeStatus, CellNumebersCollectionOfNodeAdmins, EmailAddressCollectionOfNodeAdmins, MessageForSMS, MessageForEmail.

Please share your experience on above design.

Thanks in advance


Bye,
Viki.




Count the flowers of your garden, NOT the leafs which falls away!
Prepare IBM Exam 340 by joining http://groups.yahoo.com/group/IBM340Exam/
Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
Nobody is interested for this or am suppose to send these types of question in OOAD-Design forum ? not sure.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: writing java program to check site availiblity - discuss design
 
Similar Threads
Clustered JBoss Application Server nodes synchronization ?
Test 252: Mock exam
IBM Websphere 340
Test 252 Primer Q&A
Another mock exam for Test 340 and Ansers