• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Network Design Suggestion

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am trying to design a master-slave system with the following attributes:

1. Linux Master box having all the Java code.
2. At least two Windows XP Professional Slave boxes (no Java code on any of these)

Front end screens on Master would contain a text fields for IP Address and Java program to be executed. On a click of button, the slaves (who's IP Address was entered in the Master screen text field) would get the request to execute the given Java program, a given number of times. Once executed, each slave would turn the results in to the master via a file. After all the slaves have turned in their results, Master would consolidate the results, work another program on the results and re-delegate tasks to the slaves. The steps would stop iterating only when an exit criteria specified by the program has been met.

If we were to restrict all code to only the master box, what could be the lucidly possible ways to achieve this design?

Thanks!
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you're suggesting sounds possible and interesting. You want the slaves to have "no java code" but they will have to have a JVM and some kind of service running to do the work, right? Maybe you mean no source code?

What have you thought of for your design ... communications protocols, what kind of messages you'll send back and forth, how to execute programs on the slaves, capture output, etc?

Give us some kind of starting point and we'll see if we can keep you moving.
 
Ranch Hand
Posts: 1170
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the slaves are more of a server than the master in this case. slaves will need some support. You cant expect to send them a random file and execute it without creating some architecture to support that. your going to need servers on each slave to handle the requests.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
have a look at some OSGI implementation, which can take jars from remote URL, load and start. It is a bit complex stuff then what you need, but you can always get idea by looking at its code
One of such implementation is Knopflerfish, which I saw around 2 years back. Do look at the default bundled services it has, some automation in them might achieve the required task


- Deepak +
 
My previous laptop never exploded like that. Read this tiny ad while I sweep up the shards.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic