camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bibr...@apache.org
Subject camel git commit: Rename newly introduced headers based on suggestions from optaplanner lead
Date Fri, 21 Aug 2015 08:42:01 GMT
Repository: camel
Updated Branches:
  refs/heads/master 0aaaca584 -> 19f27fd26


Rename newly introduced headers based on suggestions from optaplanner lead


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

Branch: refs/heads/master
Commit: 19f27fd2649160f5099c312b7ade084a289e4c2b
Parents: 0aaaca5
Author: Bilgin Ibryam <bibryam@apache.org>
Authored: Fri Aug 21 09:41:42 2015 +0100
Committer: Bilgin Ibryam <bibryam@apache.org>
Committed: Fri Aug 21 09:41:42 2015 +0100

----------------------------------------------------------------------
 .../apache/camel/component/optaplanner/OptaPlannerConstants.java   | 2 +-
 .../apache/camel/component/optaplanner/OptaPlannerEndpoint.java    | 2 +-
 .../apache/camel/component/optaplanner/OptaPlannerProducer.java    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/19f27fd2/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerConstants.java
----------------------------------------------------------------------
diff --git a/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerConstants.java
b/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerConstants.java
index 986a161..4a0a899 100644
--- a/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerConstants.java
+++ b/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerConstants.java
@@ -24,5 +24,5 @@ public interface OptaPlannerConstants {
     String TIME_SPENT = "CamelOptaPlannerTimeSpent";
     String IS_SOLVING = "CamelOptaPlannerIsSolving";
     String IS_TERMINATE_EARLY = "CamelOptaPlannerIsTerminateEarly";
-    String IS_FACT_PROCESSED = "CamelOptaPlannerIsFactProcessed";
+    String IS_EVERY_PROBLEM_FACT_CHANGE_PROCESSED = "CamelOptaPlannerIsEveryProblemFactChangeProcessed";
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/camel/blob/19f27fd2/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 8424530..6eee2b8 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
@@ -34,7 +34,7 @@ import org.optaplanner.core.api.solver.SolverFactory;
  */
 @UriEndpoint(scheme = "optaplanner", title = "OptaPlanner", syntax = "optaplanner:resourceUri",
label = "engine,planning")
 public class OptaPlannerEndpoint extends DefaultEndpoint {
-    protected static final Map<String, Solver> SOLVERS = new HashMap<String, Solver>();
+    private static final Map<String, Solver> SOLVERS = new HashMap<String, Solver>();
 
     @UriParam
     private OptaPlannerConfiguration configuration;

http://git-wip-us.apache.org/repos/asf/camel/blob/19f27fd2/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerProducer.java
b/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerProducer.java
index c862cd7..d5fd285 100644
--- a/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerProducer.java
+++ b/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerProducer.java
@@ -103,7 +103,7 @@ public class OptaPlannerProducer extends DefaultProducer {
     private void populateResult(Exchange exchange, Solver solver) {
         exchange.getIn().setBody(solver.getBestSolution());
         exchange.getIn().setHeader(OptaPlannerConstants.TIME_SPENT, solver.getTimeMillisSpent());
-        exchange.getIn().setHeader(OptaPlannerConstants.IS_FACT_PROCESSED, solver.isEveryProblemFactChangeProcessed());
+        exchange.getIn().setHeader(OptaPlannerConstants.IS_EVERY_PROBLEM_FACT_CHANGE_PROCESSED,
solver.isEveryProblemFactChangeProcessed());
         exchange.getIn().setHeader(OptaPlannerConstants.IS_TERMINATE_EARLY, solver.isTerminateEarly());
         exchange.getIn().setHeader(OptaPlannerConstants.IS_SOLVING, solver.isSolving());
     }


Mime
View raw message