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 
July 12, 2020, 06:17:52 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: Reset jppf.server.host programatically?  (Read 2914 times)

bd

  • Guest
Reset jppf.server.host programatically?
« on: March 01, 2009, 09:43:40 PM »

Is it possible to programatically reset a node's jppf.server.host value?  (I noticed that this is not supported by JMXNodeConnectionWrapper, but was wondering if I could modify it to support this operation.) Does changing a communication setting require restarting the node?

Why would I want to do this?  I'm interested in using Amazon Ec2 instances as jppf nodes (with the jppf driver on one of my local systems).  To do this in a flexible way, I need to set the node's driver after the Ec2 instance is created.  Using a jppf config file means that the nodes are locked into one driver.  Ec2 does not support multicast, so using jppf's auto-discovery is not an option.

thanks
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2262
    • JPPF Web site
Reset jppf.server.host programatically?
« Reply #1 on: March 04, 2009, 12:20:40 PM »

Hello,

I apologize for the late response.
You can change any configuration value by using the API JPPFConfiguration.getProperties().setProperty("my_prop", "my_value")
The problem, as you mentioned, is how to do that remotely. I believe adding this capability to the management features in JPPF is a good idea.
I have created a feature request for this: 2661175 - Ability to change node or driver configuration remotely
It is also true that changing the connection properties would require a reconnection of the node, but not a restart, otherwise the node would reuse the static properties in the configuration file.

Thanks for your input,
-Laurent
Logged

bd

  • Guest
Reset jppf.server.host programatically?
« Reply #2 on: March 04, 2009, 04:47:02 PM »

How does one reconnect a node? (I found NodeRunner.ShutdownOrRestart..restart but haven't located a reconnect method).

Adding remote control of configuration properties would be nice (I have a few less than ideal ideas for getting around this limitation for now).

thanks for your help

bd
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