• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

writing java program to check site availiblity - discuss design

 
Ranch Hand
Posts: 782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.



 
Vikrama Sanjeeva
Ranch Hand
Posts: 782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nobody is interested for this or am suppose to send these types of question in OOAD-Design forum ? not sure.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic