Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "SMILA/Documentation/Bundle org.eclipse.smila.clusterconfig.simple"
(New page: = Bundle org.eclipse.smila.clusterconfig.simple = <b>Available since SMILA 0.9.0</b> This page gives only a rough overview of the components. Please refer to the [http://build.eclipse.or...) |
(→Description) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Bundle org.eclipse.smila.clusterconfig.simple = | = Bundle org.eclipse.smila.clusterconfig.simple = | ||
− | |||
This page gives only a rough overview of the components. Please refer to the [http://build.eclipse.org/rt/smila/javadoc/current/index.html?org/eclipse/smila/clusterconfig/simple/package-summary.html JavaDoc] for specific information. | This page gives only a rough overview of the components. Please refer to the [http://build.eclipse.org/rt/smila/javadoc/current/index.html?org/eclipse/smila/clusterconfig/simple/package-summary.html JavaDoc] for specific information. | ||
Line 14: | Line 13: | ||
The interface ClusterConfigService is defined in [[SMILA/Documentation/Bundle_org.eclipse.smila.clusterconfig|org.eclipse.smila.clusterconfig]]. | The interface ClusterConfigService is defined in [[SMILA/Documentation/Bundle_org.eclipse.smila.clusterconfig|org.eclipse.smila.clusterconfig]]. | ||
− | The SimpleClusterConfigService reads a json file named <tt>clusterconfig.json</tt> from the configuration directory <tt>configuration/org.eclipse.smila.clusterconfig.simple</tt>. If no such file exists or not all configuration | + | The SimpleClusterConfigService reads a json file named <tt>clusterconfig.json</tt> from the configuration directory <tt>configuration/org.eclipse.smila.clusterconfig.simple</tt>. If no such file exists or not all configuration options are found, it will provide defaults as defined in the <tt>ClusterConfigService</tt> interface. |
Example configuration file: | Example configuration file: | ||
<pre> | <pre> | ||
{ | { | ||
− | " | + | "taskmanager": { |
− | + | "maxScaleUp" : 5, | |
− | + | "maxRetries": 10, | |
− | + | "timeToLive": 120 | |
− | + | }, | |
"workers" : { | "workers" : { | ||
"worker1" : { | "worker1" : { |
Latest revision as of 11:39, 23 January 2012
Contents
Bundle org.eclipse.smila.clusterconfig.simple
This page gives only a rough overview of the components. Please refer to the JavaDoc for specific information.
org.eclipse.smila.clusterconfig.simple.SimpleClusterConfigService
JavaDoc
The JavaDoc for the SimpleClusterConfigService API can be found at org.eclipse.smila.clusterconfig.simple.SimpleClusterConfigService.
Description
The SimpleClusterConfigService implements the ClusterConfigService interface.
The interface ClusterConfigService is defined in org.eclipse.smila.clusterconfig.
The SimpleClusterConfigService reads a json file named clusterconfig.json from the configuration directory configuration/org.eclipse.smila.clusterconfig.simple. If no such file exists or not all configuration options are found, it will provide defaults as defined in the ClusterConfigService interface.
Example configuration file:
{ "taskmanager": { "maxScaleUp" : 5, "maxRetries": 10, "timeToLive": 120 }, "workers" : { "worker1" : { "maxScaleUp" : 1 } , "worker2" : { "maxScaleUp" : 2 }, "worker3" : { } }, "services" : { "smila" : { "httpPort" : 8080 } } }