JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net
JPPF

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   On Github   Forums 
August 09, 2020, 10:30:21 AM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: Logic for execution in the jppf example  (Read 101 times)

jotamarios

  • JPPF Padawan
  • *
  • Posts: 5
Logic for execution in the jppf example
« on: June 22, 2020, 09:01:58 PM »

Hi all,

I'm new with JPPF and I'm trying to implement my first code using the example of 'A first taste of JPPF' but althought the execution of the .bat's works fine, I can't unterstand how. I executed the .bat for the driver, node and the .bat for the application template. It runs fine and do what the page said it should do but I don't know  how it do that... that .bat runs 'org.jppf.application.template.TemplateApplicationRunner' (As I see in the .bat file)... what I unknow is when the TemplateJPPFTask.java is called to be waiting for orders to run. As I can't understand that, I couldn't implement my first code yet.

Could some one explain me that? Thanks a lot.

Regards,
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2262
    • JPPF Web site
Re: Logic for execution in the jppf example
« Reply #1 on: June 23, 2020, 06:51:35 AM »

Hello,

If you take a look at the JPPF Overview > Work distribution section of the documentation, this should give you a good idea of the flow of jobs/tasks in a JPPF grid.

TemplateJPPFTask is a task that is part of a job. It is created on the client side (i.e. its constructor is invoked in the template application) and executed on a remote node (i.e. its run() method is invoked by a node). Once executed, a task is sent back, in its executed state, to the client that submitted the job it belongs to.

I hope this clarifiies,
-Laurent
Logged

jotamarios

  • JPPF Padawan
  • *
  • Posts: 5
Re: Logic for execution in the jppf example
« Reply #2 on: June 30, 2020, 03:13:33 PM »

Thank you so much for your help! I'll do it!

Best Regards,
Logged

jotamarios

  • JPPF Padawan
  • *
  • Posts: 5
Re: Logic for execution in the jppf example
« Reply #3 on: July 01, 2020, 05:18:07 AM »

Hi 'Lolo',

I had read the link page you gave me. For me this is clear but what I can't understand is the way that the example program works. In this link https://www.jppf.org/doc/6.2/index.php?title=A_first_taste_of_JPPF I follow the instructions (after the 5 step):

1. Execute the Jppf driver (using the .bat)
2. Execute the jppf client (using the .bat)
3. Execute the jppf template -> But the .bat file saids:

call %JAVA_PATH% -cp config;classes;lib/* -Xmx64m -Dlog4j.configuration=log4j.properties -Djppf.config=jppf.properties -Djava.util.logging.config.file=config/logging.properties org.jppf.application.template.TemplateApplicationRunner

It is calling org.jppf.application.template.TemplateApplicationRunner which is the template for the client genereting a Job. Nobody is calling the TemplateJPPFTask... there is when I can't proccess it!.

Thanks
Logged

jotamarios

  • JPPF Padawan
  • *
  • Posts: 5
Re: Logic for execution in the jppf example
« Reply #4 on: July 01, 2020, 05:26:29 AM »

Hi all,

I was watching the code in the Template and I found that TemplateJPPFTask is called from TemplateApplicationRunner... it means that I just have to install the node in the pc's which will collaborate to proccess the Job and JPPF will distribute the code of the task? Or should I install and run the TemplateJPPFTask in the nodes?

Thanks all.
Logged

jotamarios

  • JPPF Padawan
  • *
  • Posts: 5
Re: Logic for execution in the jppf example
« Reply #5 on: July 09, 2020, 05:23:47 AM »

No one have an idea? Thanks
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2262
    • JPPF Web site
Re: Logic for execution in the jppf example
« Reply #6 on: July 09, 2020, 07:50:45 AM »

Hello,

Sorry for the late reply.
Yes, JPPF distributes the code of the tasks automatically, using its distributed classloader.
It is not the only way to transport the code along with tasks and jobs, but it is by far the simplest and most seamless for ther users.

Sincerely,
-Laurent
Logged
Pages: [1]   Go Up
 
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads