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

The open source
grid computing

 Home   About   Features   Download   Documentation   On Github   Forums 
June 04, 2023, 10:09:35 AM *
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: Is it possible to have a scheduler explicitly schedule tasks to certain nodes  (Read 1270 times)


  • JPPF Padawan
  • *
  • Posts: 2

Dear all,

I'm new to JPPF.
I'm wondering is it possible to have a scheduler (implemented with my own algorithm) being able to explicitly decide which node does a task goes to?
For example, I'd like to do something like "I want only node A and B for Job1, others should not compute Job1".
Is it possible?
« Last Edit: February 14, 2014, 12:04:29 PM by lmr3796 »


  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site


This is exactly what you can do with an execution policy specified in the job's SLA.

You will also find in our documentation a detailed description of how to create use an execution policy, as well as a complete reference of what can be done with an execution policy.

For example regarding your current concern, let's say we have node A at IP address and node B at, then you can limit a job to these 2 nodes as follows (we could use the host names in exactly the same way):

Code: [Select]
JPPFJob job = new JPPFJob();
// false means do not ignore case
ExecutionPolicy policy = new Contains("ipv4.addresses", false, "").or(new Contains("ipv4.addresses", false, ""));
// ... add tasks and submit the job ...

I hope this clarifies.

« Last Edit: February 14, 2014, 03:05:11 PM by lolo »
Pages: [1]   Go Up
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at Fast, secure and Free Open Source software downloads