| 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.
|
 |
 |
|
|
subject: writing java program to check site availiblity - discuss design
|
|
|