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/68374e1e Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/68374e1e Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/68374e1e Branch: refs/heads/camel-2.16.x Commit: 68374e1e49d4ed0f24d013547a0eb87ab7ef1219 Parents: cb64e2d Author: Claus Ibsen <davscl...@apache.org> Authored: Wed Jan 6 10:04:23 2016 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Wed Jan 6 11:31:15 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/68374e1e/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/68374e1e/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 6eee2b8..6c23306 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; /** * OptaPlanner endpoint for Camel */ -@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>();