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 
June 03, 2023, 05:36:07 PM *
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: Contents of config file used by app.  (Read 3732 times)

bd

  • Guest
Contents of config file used by app.
« on: December 13, 2006, 01:43:33 AM »

A trivial neophyte question: What are the contents of the config file that gets passed into an app.  I.e. what are the contents of jppf-config.properties as used in:

Code: [Select]

java -cp myclasspath -Djppf.config=jppf-config.properties mypackage.MyClass


I noticed that there are separate (and different) config files for the server and for nodes.  Will one of these do for the app?  If not, is there a sample somewhere? (I didn't see one in the distribution.)

thanks
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Contents of config file used by app.
« Reply #1 on: December 13, 2006, 03:24:13 PM »

Hello,

here is an example configuration for a client:
Code: [Select]
#------------------------------------------------------------------------------#
# Host name, or ip address, of the host the JPPF driver is running on          #
#------------------------------------------------------------------------------#

jppf.server.host = localhost

#------------------------------------------------------------------------------#
# port number for the class server that performs remote class loading          #
# default value is 11111; uncomment to specify a different value               #
#------------------------------------------------------------------------------#

#class.server.port = 11111

#------------------------------------------------------------------------------#
# port number the clients / applications connect to                            #
# default value is 11112; uncomment to specify a different value               #
#------------------------------------------------------------------------------#

#app.server.port = 11112

#------------------------------------------------------------------------------#
# Automatic recovery: number of seconds before the first reconnection attempt. #
# default value is 1; uncomment to specify a different value                   #
#------------------------------------------------------------------------------#

#reconnect.initial.delay = 1

#------------------------------------------------------------------------------#
# Automatic recovery: time after which the system stops trying to reconnect,   #
# in seconds.                                                                  #
# default value is 60; uncomment to specify a different value                  #
#------------------------------------------------------------------------------#

#reconnect.max.time = 60

#------------------------------------------------------------------------------#
# Automatic recovery: time between two connection attempts, in seconds.        #
# default value is 1; uncomment to specify a different value                   #
#------------------------------------------------------------------------------#

#reconnect.interval = 1


If you have downloaded the sources zip, you will also find examples of it in  the demo project, in the config folder: jppf-client1.properties and jppf-client2.properties

-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