You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/01/06 11:36:56 UTC

[06/11] camel git commit: Camel component docs

Camel component docs


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/5ab21b22
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5ab21b22
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5ab21b22

Branch: refs/heads/master
Commit: 5ab21b22b9c47aaeac3681a3e5b7c1e22ccd4da7
Parents: 62e5462
Author: Claus Ibsen <da...@apache.org>
Authored: Wed Jan 6 10:04:23 2016 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Jan 6 11:36:28 2016 +0100

----------------------------------------------------------------------
 .../optaplanner/OptaPlannerConfiguration.java   | 46 +++++++++-----------
 .../optaplanner/OptaPlannerEndpoint.java        |  2 +-
 2 files changed, 22 insertions(+), 26 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/5ab21b22/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerConfiguration.java b/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerConfiguration.java
index 0e70c77..82cec1b 100644
--- a/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerConfiguration.java
+++ b/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerConfiguration.java
@@ -24,51 +24,44 @@ import org.apache.camel.spi.UriPath;
 @UriParams
 public class OptaPlannerConfiguration {
 
-    /**
-     * Specifies the solverId to user for the solver instance key
-     */
+    @UriPath @Metadata(required = "true")
+    private String configFile;
     @UriParam(label = "common", defaultValue = "DEFAULT_SOLVER")
     private String solverId = OptaPlannerConstants.DEFAULT_SOLVER_ID;
-
-    /**
-     * Specifies the location to the solver file
-     */
-    @UriPath
-    @Metadata(required = "true")
-    private String configFile;
-
-    /**
-     * Specifies the thread pool size to use when async is true
-     */
     @UriParam(label = "producer", defaultValue = "10")
     private int threadPoolSize = 10;
+    @UriParam(label = "producer")
+    private boolean async;
+
+    public String getConfigFile() {
+        return configFile;
+    }
 
     /**
-     * Specifies to perform operations in async mode
+     * Specifies the location to the solver file
      */
-    @UriParam(label = "producer", defaultValue = "false")
-    private boolean async;
+    public void setConfigFile(String configFile) {
+        this.configFile = configFile;
+    }
 
     public String getSolverId() {
         return solverId;
     }
 
+    /**
+     * Specifies the solverId to user for the solver instance key
+     */
     public void setSolverId(String solverId) {
         this.solverId = solverId;
     }
 
-    public void setConfigFile(String configFile) {
-        this.configFile = configFile;
-    }
-
-    public String getConfigFile() {
-        return configFile;
-    }
-
     public int getThreadPoolSize() {
         return threadPoolSize;
     }
 
+    /**
+     * Specifies the thread pool size to use when async is true
+     */
     public void setThreadPoolSize(int threadPoolSize) {
         this.threadPoolSize = threadPoolSize;
     }
@@ -77,6 +70,9 @@ public class OptaPlannerConfiguration {
         return async;
     }
 
+    /**
+     * Specifies to perform operations in async mode
+     */
     public void setAsync(boolean async) {
         this.async = async;
     }

http://git-wip-us.apache.org/repos/asf/camel/blob/5ab21b22/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerEndpoint.java b/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerEndpoint.java
index 292afb8..6ba85f8 100644
--- a/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerEndpoint.java
+++ b/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerEndpoint.java
@@ -32,7 +32,7 @@ import org.optaplanner.core.api.solver.SolverFactory;
 /**
  * Solves the planning problem contained in a message with OptaPlanner.
  */
-@UriEndpoint(scheme = "optaplanner", title = "OptaPlanner", syntax = "optaplanner:resourceUri", label = "engine,planning")
+@UriEndpoint(scheme = "optaplanner", title = "OptaPlanner", syntax = "optaplanner:configFile", label = "engine,planning")
 public class OptaPlannerEndpoint extends DefaultEndpoint {
     private static final Map<String, Solver> SOLVERS = new HashMap<String, Solver>();