This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit a3da5d8d549e7770954ec3a77b865cb2c233b8c6
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Mon May 13 09:55:52 2019 +0200

    CAMEL-13503: Camel main - Allow to configure global and common options ala 
camel-spring-boot have.
---
 .../camel/main/MainConfigurationProperties.java    | 622 +++++++--------------
 1 file changed, 200 insertions(+), 422 deletions(-)

diff --git 
a/core/camel-core/src/main/java/org/apache/camel/main/MainConfigurationProperties.java
 
b/core/camel-core/src/main/java/org/apache/camel/main/MainConfigurationProperties.java
index a3ae86d..9bcaa89 100644
--- 
a/core/camel-core/src/main/java/org/apache/camel/main/MainConfigurationProperties.java
+++ 
b/core/camel-core/src/main/java/org/apache/camel/main/MainConfigurationProperties.java
@@ -23,351 +23,44 @@ import org.apache.camel.ManagementStatisticsLevel;
  */
 public class MainConfigurationProperties {
 
-    // TODO: Move javadoc to setter
-
-    /**
-     * Sets the name of the CamelContext.
-     */
     private String name;
-
-    /**
-     * Timeout in seconds to graceful shutdown Camel.
-     */
     private int shutdownTimeout = 300;
-
-    /**
-     * Whether Camel should try to suppress logging during shutdown and 
timeout was triggered,
-     * meaning forced shutdown is happening. And during forced shutdown we 
want to avoid logging
-     * errors/warnings et all in the logs as a side-effect of the forced 
timeout.
-     * Notice the suppress is a best effort as there may still be some logs 
coming
-     * from 3rd party libraries and whatnot, which Camel cannot control.
-     * This option is default false.
-     */
     private boolean shutdownSuppressLoggingOnTimeout;
-
-    /**
-     * Sets whether to force shutdown of all consumers when a timeout occurred 
and thus
-     * not all consumers was shutdown within that period.
-     *
-     * You should have good reasons to set this option to false as it means 
that the routes
-     * keep running and is halted abruptly when CamelContext has been shutdown.
-     */
     private boolean shutdownNowOnTimeout = true;
-
-    /**
-     * Sets whether routes should be shutdown in reverse or the same order as 
they where started.
-     */
     private boolean shutdownRoutesInReverseOrder = true;
-
-    /**
-     * Sets whether to log information about the inflight Exchanges which are 
still running
-     * during a shutdown which didn't complete without the given timeout.
-     */
     private boolean shutdownLogInflightExchangesOnTimeout = true;
-
-    /**
-     * Enable JMX in your Camel application.
-     */
     private boolean jmxEnabled = true;
-
-    /**
-     * Producer template endpoints cache size.
-     */
     private int producerTemplateCacheSize = 1000;
-
-    /**
-     * Consumer template endpoints cache size.
-     */
     private int consumerTemplateCacheSize = 1000;
-
-    /**
-     * Directory to load additional configuration files that contains
-     * configuration values that takes precedence over any other configuration.
-     * This can be used to refer to files that may have secret configuration 
that
-     * has been mounted on the file system for containers.
-     *
-     * You must use either file: or classpath: as prefix to load
-     * from file system or classpath. Then you can specify a pattern to load
-     * from sub directories and a name pattern such as 
file:/var/app/secret/*.properties
-     */
     private String fileConfigurations;
-
-    /**
-     * To specify for how long time in seconds to keep running the JVM before 
automatic terminating the JVM.
-     * You can use this to run Spring Boot for a short while.
-     */
     private int durationMaxSeconds;
-
-    /**
-     * To specify for how long time in seconds Camel can be idle before 
automatic terminating the JVM.
-     * You can use this to run Spring Boot for a short while.
-     */
     private int durationMaxIdleSeconds;
-
-    /**
-     * To specify how many messages to process by Camel before automatic 
terminating the JVM.
-     * You can use this to run Spring Boot for a short while.
-     */
     private int durationMaxMessages;
-
-    /**
-     * Is used to limit the maximum length of the logging Camel message 
bodies. If the message body
-     * is longer than the limit, the log message is clipped. Use -1 to have 
unlimited length.
-     * Use for example 1000 to log at most 1000 characters.
-     */
     private int logDebugMaxChars;
-
-    /**
-     * Sets whether stream caching is enabled or not.
-     *
-     * Default is false.
-     */
     private boolean streamCachingEnabled;
-
-    /**
-     * Sets the stream caching spool (temporary) directory to use for overflow 
and spooling to disk.
-     *
-     * If no spool directory has been explicit configured, then a temporary 
directory
-     * is created in the java.io.tmpdir directory.
-     */
     private String streamCachingSpoolDirectory;
-
-    /**
-     * Sets a stream caching chiper name to use when spooling to disk to write 
with encryption.
-     * By default the data is not encrypted.
-     */
     private String streamCachingSpoolChiper;
-
-    /**
-     * Stream caching threshold in bytes when overflow to disk is activated.
-     * The default threshold is 128kb.
-     * Use -1 to disable overflow to disk.
-     */
     private long streamCachingSpoolThreshold;
-
-    /**
-     * Sets a percentage (1-99) of used heap memory threshold to activate 
stream caching spooling to disk.
-     */
     private int streamCachingSpoolUsedHeapMemoryThreshold;
-
-    /**
-     * Sets what the upper bounds should be when 
streamCachingSpoolUsedHeapMemoryThreshold is in use.
-     */
     private String streamCachingSpoolUsedHeapMemoryLimit;
-
-    /**
-     * Sets whether if just any of the 
org.apache.camel.spi.StreamCachingStrategy.SpoolRule rules
-     * returns true then shouldSpoolCache(long) returns true, to allow 
spooling to disk.
-     * If this option is false, then all the 
org.apache.camel.spi.StreamCachingStrategy.SpoolRule must
-     * return true.
-     *
-     * The default value is false which means that all the rules must return 
true.
-     */
     private boolean streamCachingAnySpoolRules;
-
-    /**
-     * Sets the stream caching buffer size to use when allocating in-memory 
buffers used for in-memory stream caches.
-     *
-     * The default size is 4096.
-     */
     private int streamCachingBufferSize;
-
-    /**
-     * Whether to remove stream caching temporary directory when stopping.
-     * This option is default true.
-     */
     private boolean streamCachingRemoveSpoolDirectoryWhenStopping = true;
-
-    /**
-     * Sets whether stream caching statistics is enabled.
-     */
     private boolean streamCachingStatisticsEnabled;
-
-    /**
-     * Sets whether tracing is enabled or not.
-     *
-     * Default is false.
-     */
     private boolean tracing;
-
-    /**
-     * Sets whether message history is enabled or not.
-     *
-     * Default is true.
-     */
     private boolean messageHistory = true;
-
-    /**
-     * Sets whether log mask is enabled or not.
-     *
-     * Default is false.
-     */
     private boolean logMask;
-
-    /**
-     * Sets whether to log exhausted message body with message history.
-     *
-     * Default is false.
-     */
     private boolean logExhaustedMessageBody;
-
-    /**
-     * Sets whether fault handling is enabled or not.
-     *
-     * Default is false.
-     */
     private boolean handleFault;
-
-    /**
-     * Sets whether the object should automatically start when Camel starts.
-     * Important: Currently only routes can be disabled, as CamelContext's are 
always started.
-     * Note: When setting auto startup false on CamelContext then that takes 
precedence
-     * and no routes is started. You would need to start CamelContext explicit 
using
-     * the org.apache.camel.CamelContext.start() method, to start the context, 
and then
-     * you would need to start the routes manually using 
CamelContext.getRouteController().startRoute(String).
-     *
-     * Default is true to always start up.
-     */
     private boolean autoStartup = true;
-
-    /**
-     * Sets whether to allow access to the original message from Camel's error 
handler,
-     * or from org.apache.camel.spi.UnitOfWork.getOriginalInMessage().
-     * Turning this off can optimize performance, as defensive copy of the 
original message is not needed.
-     *
-     * Default is false.
-     */
     private boolean allowUseOriginalMessage;
-
-    /**
-     * Sets whether endpoint runtime statistics is enabled (gathers runtime 
usage of each incoming and outgoing endpoints).
-     *
-     * The default value is false.
-     */
     private boolean endpointRuntimeStatisticsEnabled;
-
-    /**
-     * Whether to enable using data type on Camel messages.
-     *
-     * Data type are automatic turned on if one ore more routes has been 
explicit configured with input and output types.
-     * Otherwise data type is default off.
-     */
     private boolean useDataType;
-
-    /**
-     * Set whether breadcrumb is enabled.
-     * The default value is false.
-     */
     private boolean useBreadcrumb;
-
-    /**
-     * Sets the JMX statistics level
-     * The level can be set to Extended to gather additional information
-     *
-     * The default value is Default.
-     */
     private ManagementStatisticsLevel jmxManagementStatisticsLevel = 
ManagementStatisticsLevel.Default;
-
-    /**
-     * The naming pattern for creating the CamelContext JMX management name.
-     *
-     * The default pattern is #name#
-     */
-    private String jmxManagementNamePattern = "#name#";
-
-    /**
-     * Whether JMX connector is created, allowing clients to connect remotely
-     *
-     * The default value is false.
-     */
-    private boolean jmxCreateConnector;
-
-    /**
-     * Tracer should output message body
-     */
-    private boolean traceFormatterShowBody = true;
-
-    /**
-     * Tracer should output message body type
-     */
-    private boolean tracerFormatterShowBodyType = true;
-
-    /**
-     * Tracer should output breadcrumb
-     */
-    private boolean traceFormatterShowBreadCrumb = true;
-
-    /**
-     * Tracer should output exchange id
-     */
-    private boolean traceFormatterShowExchangeId;
-
-    /**
-     * Tracer should output message headers
-     */
-    private boolean traceFormatterShowHeaders = true;
-
-    /**
-     * Tracer should output exchange properties
-     */
-    private boolean traceFormatterShowProperties;
-
-    /**
-     * Tracer should output EIP node
-     */
-    private boolean traceFormatterShowNode = true;
-
-    /**
-     * Tracer should output message exchange pattern (MEP)
-     */
-    private boolean traceFormatterShowExchangePattern = true;
-
-    /**
-     * Tracer should output exception
-     */
-    private boolean traceFormatterShowException = true;
-
-    /**
-     * Tracer should output route id
-     */
-    private boolean traceFormatterShowRouteId = true;
-
-    /**
-     * Tracer maximum length of breadcrumb ids
-     */
-    private Integer tracerFormatterBreadCrumbLength;
-
-    /**
-     * Tracer should output short exchange id
-     */
-    private boolean traceFormatterShowShortExchangeId;
-
-    /**
-     * Tracer maximum length of node
-     */
-    private Integer tracerFormatterNodeLength;
-
-    /**
-     * Tracer maximum characters in total
-     */
-    private Integer tracerFormatterMaxChars = 10000;
-
-    /**
-     * To turn on MDC logging
-     */
-    private boolean useMdcLogging;
-
-    /**
-     * Sets the thread name pattern used for creating the full thread name.
-     *
-     * The default pattern is: Camel (#camelId#) thread ##counter# - #name#
-     *
-     * Where #camelId# is the name of the CamelContext.
-     * and #counter# is a unique incrementing counter.
-     * and #name# is the regular thread name.
-     *
-     * You can also use #longName# which is the long thread name which can 
includes endpoint parameters etc.
-     */
+    private String jmxManagementNamePattern = "#name#";
+    private boolean jmxCreateConnector;
+    private boolean useMdcLogging;
     private String threadNamePattern;
 
     // getter and setters
@@ -376,6 +69,9 @@ public class MainConfigurationProperties {
         return name;
     }
 
+    /**
+     * Sets the name of the CamelContext.
+     */
     public void setName(String name) {
         this.name = name;
     }
@@ -384,6 +80,9 @@ public class MainConfigurationProperties {
         return shutdownTimeout;
     }
 
+    /**
+     * Timeout in seconds to graceful shutdown Camel.
+     */
     public void setShutdownTimeout(int shutdownTimeout) {
         this.shutdownTimeout = shutdownTimeout;
     }
@@ -392,6 +91,14 @@ public class MainConfigurationProperties {
         return shutdownSuppressLoggingOnTimeout;
     }
 
+    /**
+     * Whether Camel should try to suppress logging during shutdown and 
timeout was triggered,
+     * meaning forced shutdown is happening. And during forced shutdown we 
want to avoid logging
+     * errors/warnings et all in the logs as a side-effect of the forced 
timeout.
+     * Notice the suppress is a best effort as there may still be some logs 
coming
+     * from 3rd party libraries and whatnot, which Camel cannot control.
+     * This option is default false.
+     */
     public void setShutdownSuppressLoggingOnTimeout(boolean 
shutdownSuppressLoggingOnTimeout) {
         this.shutdownSuppressLoggingOnTimeout = 
shutdownSuppressLoggingOnTimeout;
     }
@@ -400,6 +107,13 @@ public class MainConfigurationProperties {
         return shutdownNowOnTimeout;
     }
 
+    /**
+     * Sets whether to force shutdown of all consumers when a timeout occurred 
and thus
+     * not all consumers was shutdown within that period.
+     *
+     * You should have good reasons to set this option to false as it means 
that the routes
+     * keep running and is halted abruptly when CamelContext has been shutdown.
+     */
     public void setShutdownNowOnTimeout(boolean shutdownNowOnTimeout) {
         this.shutdownNowOnTimeout = shutdownNowOnTimeout;
     }
@@ -408,6 +122,9 @@ public class MainConfigurationProperties {
         return shutdownRoutesInReverseOrder;
     }
 
+    /**
+     * Sets whether routes should be shutdown in reverse or the same order as 
they where started.
+     */
     public void setShutdownRoutesInReverseOrder(boolean 
shutdownRoutesInReverseOrder) {
         this.shutdownRoutesInReverseOrder = shutdownRoutesInReverseOrder;
     }
@@ -416,6 +133,10 @@ public class MainConfigurationProperties {
         return shutdownLogInflightExchangesOnTimeout;
     }
 
+    /**
+     * Sets whether to log information about the inflight Exchanges which are 
still running
+     * during a shutdown which didn't complete without the given timeout.
+     */
     public void setShutdownLogInflightExchangesOnTimeout(boolean 
shutdownLogInflightExchangesOnTimeout) {
         this.shutdownLogInflightExchangesOnTimeout = 
shutdownLogInflightExchangesOnTimeout;
     }
@@ -424,6 +145,9 @@ public class MainConfigurationProperties {
         return jmxEnabled;
     }
 
+    /**
+     * Enable JMX in your Camel application.
+     */
     public void setJmxEnabled(boolean jmxEnabled) {
         this.jmxEnabled = jmxEnabled;
     }
@@ -432,6 +156,9 @@ public class MainConfigurationProperties {
         return producerTemplateCacheSize;
     }
 
+    /**
+     * Producer template endpoints cache size.
+     */
     public void setProducerTemplateCacheSize(int producerTemplateCacheSize) {
         this.producerTemplateCacheSize = producerTemplateCacheSize;
     }
@@ -440,6 +167,9 @@ public class MainConfigurationProperties {
         return consumerTemplateCacheSize;
     }
 
+    /**
+     * Consumer template endpoints cache size.
+     */
     public void setConsumerTemplateCacheSize(int consumerTemplateCacheSize) {
         this.consumerTemplateCacheSize = consumerTemplateCacheSize;
     }
@@ -448,6 +178,16 @@ public class MainConfigurationProperties {
         return fileConfigurations;
     }
 
+    /**
+     * Directory to load additional configuration files that contains
+     * configuration values that takes precedence over any other configuration.
+     * This can be used to refer to files that may have secret configuration 
that
+     * has been mounted on the file system for containers.
+     *
+     * You must use either file: or classpath: as prefix to load
+     * from file system or classpath. Then you can specify a pattern to load
+     * from sub directories and a name pattern such as 
file:/var/app/secret/*.properties
+     */
     public void setFileConfigurations(String fileConfigurations) {
         this.fileConfigurations = fileConfigurations;
     }
@@ -456,6 +196,10 @@ public class MainConfigurationProperties {
         return durationMaxSeconds;
     }
 
+    /**
+     * To specify for how long time in seconds to keep running the JVM before 
automatic terminating the JVM.
+     * You can use this to run Spring Boot for a short while.
+     */
     public void setDurationMaxSeconds(int durationMaxSeconds) {
         this.durationMaxSeconds = durationMaxSeconds;
     }
@@ -464,6 +208,10 @@ public class MainConfigurationProperties {
         return durationMaxIdleSeconds;
     }
 
+    /**
+     * To specify for how long time in seconds Camel can be idle before 
automatic terminating the JVM.
+     * You can use this to run Spring Boot for a short while.
+     */
     public void setDurationMaxIdleSeconds(int durationMaxIdleSeconds) {
         this.durationMaxIdleSeconds = durationMaxIdleSeconds;
     }
@@ -472,6 +220,10 @@ public class MainConfigurationProperties {
         return durationMaxMessages;
     }
 
+    /**
+     * To specify how many messages to process by Camel before automatic 
terminating the JVM.
+     * You can use this to run Spring Boot for a short while.
+     */
     public void setDurationMaxMessages(int durationMaxMessages) {
         this.durationMaxMessages = durationMaxMessages;
     }
@@ -480,6 +232,11 @@ public class MainConfigurationProperties {
         return logDebugMaxChars;
     }
 
+    /**
+     * Is used to limit the maximum length of the logging Camel message 
bodies. If the message body
+     * is longer than the limit, the log message is clipped. Use -1 to have 
unlimited length.
+     * Use for example 1000 to log at most 1000 characters.
+     */
     public void setLogDebugMaxChars(int logDebugMaxChars) {
         this.logDebugMaxChars = logDebugMaxChars;
     }
@@ -488,6 +245,11 @@ public class MainConfigurationProperties {
         return streamCachingEnabled;
     }
 
+    /**
+     * Sets whether stream caching is enabled or not.
+     *
+     * Default is false.
+     */
     public void setStreamCachingEnabled(boolean streamCachingEnabled) {
         this.streamCachingEnabled = streamCachingEnabled;
     }
@@ -496,6 +258,12 @@ public class MainConfigurationProperties {
         return streamCachingSpoolDirectory;
     }
 
+    /**
+     * Sets the stream caching spool (temporary) directory to use for overflow 
and spooling to disk.
+     *
+     * If no spool directory has been explicit configured, then a temporary 
directory
+     * is created in the java.io.tmpdir directory.
+     */
     public void setStreamCachingSpoolDirectory(String 
streamCachingSpoolDirectory) {
         this.streamCachingSpoolDirectory = streamCachingSpoolDirectory;
     }
@@ -504,6 +272,10 @@ public class MainConfigurationProperties {
         return streamCachingSpoolChiper;
     }
 
+    /**
+     * Sets a stream caching chiper name to use when spooling to disk to write 
with encryption.
+     * By default the data is not encrypted.
+     */
     public void setStreamCachingSpoolChiper(String streamCachingSpoolChiper) {
         this.streamCachingSpoolChiper = streamCachingSpoolChiper;
     }
@@ -512,6 +284,11 @@ public class MainConfigurationProperties {
         return streamCachingSpoolThreshold;
     }
 
+    /**
+     * Stream caching threshold in bytes when overflow to disk is activated.
+     * The default threshold is 128kb.
+     * Use -1 to disable overflow to disk.
+     */
     public void setStreamCachingSpoolThreshold(long 
streamCachingSpoolThreshold) {
         this.streamCachingSpoolThreshold = streamCachingSpoolThreshold;
     }
@@ -520,6 +297,9 @@ public class MainConfigurationProperties {
         return streamCachingSpoolUsedHeapMemoryThreshold;
     }
 
+    /**
+     * Sets a percentage (1-99) of used heap memory threshold to activate 
stream caching spooling to disk.
+     */
     public void setStreamCachingSpoolUsedHeapMemoryThreshold(int 
streamCachingSpoolUsedHeapMemoryThreshold) {
         this.streamCachingSpoolUsedHeapMemoryThreshold = 
streamCachingSpoolUsedHeapMemoryThreshold;
     }
@@ -528,6 +308,9 @@ public class MainConfigurationProperties {
         return streamCachingSpoolUsedHeapMemoryLimit;
     }
 
+    /**
+     * Sets what the upper bounds should be when 
streamCachingSpoolUsedHeapMemoryThreshold is in use.
+     */
     public void setStreamCachingSpoolUsedHeapMemoryLimit(String 
streamCachingSpoolUsedHeapMemoryLimit) {
         this.streamCachingSpoolUsedHeapMemoryLimit = 
streamCachingSpoolUsedHeapMemoryLimit;
     }
@@ -536,6 +319,14 @@ public class MainConfigurationProperties {
         return streamCachingAnySpoolRules;
     }
 
+    /**
+     * Sets whether if just any of the 
org.apache.camel.spi.StreamCachingStrategy.SpoolRule rules
+     * returns true then shouldSpoolCache(long) returns true, to allow 
spooling to disk.
+     * If this option is false, then all the 
org.apache.camel.spi.StreamCachingStrategy.SpoolRule must
+     * return true.
+     *
+     * The default value is false which means that all the rules must return 
true.
+     */
     public void setStreamCachingAnySpoolRules(boolean 
streamCachingAnySpoolRules) {
         this.streamCachingAnySpoolRules = streamCachingAnySpoolRules;
     }
@@ -544,6 +335,11 @@ public class MainConfigurationProperties {
         return streamCachingBufferSize;
     }
 
+    /**
+     * Sets the stream caching buffer size to use when allocating in-memory 
buffers used for in-memory stream caches.
+     *
+     * The default size is 4096.
+     */
     public void setStreamCachingBufferSize(int streamCachingBufferSize) {
         this.streamCachingBufferSize = streamCachingBufferSize;
     }
@@ -552,6 +348,10 @@ public class MainConfigurationProperties {
         return streamCachingRemoveSpoolDirectoryWhenStopping;
     }
 
+    /**
+     * Whether to remove stream caching temporary directory when stopping.
+     * This option is default true.
+     */
     public void setStreamCachingRemoveSpoolDirectoryWhenStopping(boolean 
streamCachingRemoveSpoolDirectoryWhenStopping) {
         this.streamCachingRemoveSpoolDirectoryWhenStopping = 
streamCachingRemoveSpoolDirectoryWhenStopping;
     }
@@ -560,6 +360,9 @@ public class MainConfigurationProperties {
         return streamCachingStatisticsEnabled;
     }
 
+    /**
+     * Sets whether stream caching statistics is enabled.
+     */
     public void setStreamCachingStatisticsEnabled(boolean 
streamCachingStatisticsEnabled) {
         this.streamCachingStatisticsEnabled = streamCachingStatisticsEnabled;
     }
@@ -568,6 +371,11 @@ public class MainConfigurationProperties {
         return tracing;
     }
 
+    /**
+     * Sets whether tracing is enabled or not.
+     *
+     * Default is false.
+     */
     public void setTracing(boolean tracing) {
         this.tracing = tracing;
     }
@@ -576,6 +384,11 @@ public class MainConfigurationProperties {
         return messageHistory;
     }
 
+    /**
+     * Sets whether message history is enabled or not.
+     *
+     * Default is true.
+     */
     public void setMessageHistory(boolean messageHistory) {
         this.messageHistory = messageHistory;
     }
@@ -584,6 +397,11 @@ public class MainConfigurationProperties {
         return logMask;
     }
 
+    /**
+     * Sets whether log mask is enabled or not.
+     *
+     * Default is false.
+     */
     public void setLogMask(boolean logMask) {
         this.logMask = logMask;
     }
@@ -592,6 +410,11 @@ public class MainConfigurationProperties {
         return logExhaustedMessageBody;
     }
 
+    /**
+     * Sets whether to log exhausted message body with message history.
+     *
+     * Default is false.
+     */
     public void setLogExhaustedMessageBody(boolean logExhaustedMessageBody) {
         this.logExhaustedMessageBody = logExhaustedMessageBody;
     }
@@ -600,6 +423,11 @@ public class MainConfigurationProperties {
         return handleFault;
     }
 
+    /**
+     * Sets whether fault handling is enabled or not.
+     *
+     * Default is false.
+     */
     public void setHandleFault(boolean handleFault) {
         this.handleFault = handleFault;
     }
@@ -608,6 +436,16 @@ public class MainConfigurationProperties {
         return autoStartup;
     }
 
+    /**
+     * Sets whether the object should automatically start when Camel starts.
+     * Important: Currently only routes can be disabled, as CamelContext's are 
always started.
+     * Note: When setting auto startup false on CamelContext then that takes 
precedence
+     * and no routes is started. You would need to start CamelContext explicit 
using
+     * the org.apache.camel.CamelContext.start() method, to start the context, 
and then
+     * you would need to start the routes manually using 
CamelContext.getRouteController().startRoute(String).
+     *
+     * Default is true to always start up.
+     */
     public void setAutoStartup(boolean autoStartup) {
         this.autoStartup = autoStartup;
     }
@@ -616,6 +454,13 @@ public class MainConfigurationProperties {
         return allowUseOriginalMessage;
     }
 
+    /**
+     * Sets whether to allow access to the original message from Camel's error 
handler,
+     * or from org.apache.camel.spi.UnitOfWork.getOriginalInMessage().
+     * Turning this off can optimize performance, as defensive copy of the 
original message is not needed.
+     *
+     * Default is false.
+     */
     public void setAllowUseOriginalMessage(boolean allowUseOriginalMessage) {
         this.allowUseOriginalMessage = allowUseOriginalMessage;
     }
@@ -624,6 +469,11 @@ public class MainConfigurationProperties {
         return endpointRuntimeStatisticsEnabled;
     }
 
+    /**
+     * Sets whether endpoint runtime statistics is enabled (gathers runtime 
usage of each incoming and outgoing endpoints).
+     *
+     * The default value is false.
+     */
     public void setEndpointRuntimeStatisticsEnabled(boolean 
endpointRuntimeStatisticsEnabled) {
         this.endpointRuntimeStatisticsEnabled = 
endpointRuntimeStatisticsEnabled;
     }
@@ -632,6 +482,12 @@ public class MainConfigurationProperties {
         return useDataType;
     }
 
+    /**
+     * Whether to enable using data type on Camel messages.
+     *
+     * Data type are automatic turned on if one ore more routes has been 
explicit configured with input and output types.
+     * Otherwise data type is default off.
+     */
     public void setUseDataType(boolean useDataType) {
         this.useDataType = useDataType;
     }
@@ -640,6 +496,10 @@ public class MainConfigurationProperties {
         return useBreadcrumb;
     }
 
+    /**
+     * Set whether breadcrumb is enabled.
+     * The default value is false.
+     */
     public void setUseBreadcrumb(boolean useBreadcrumb) {
         this.useBreadcrumb = useBreadcrumb;
     }
@@ -648,6 +508,12 @@ public class MainConfigurationProperties {
         return jmxManagementStatisticsLevel;
     }
 
+    /**
+     * Sets the JMX statistics level
+     * The level can be set to Extended to gather additional information
+     *
+     * The default value is Default.
+     */
     public void setJmxManagementStatisticsLevel(ManagementStatisticsLevel 
jmxManagementStatisticsLevel) {
         this.jmxManagementStatisticsLevel = jmxManagementStatisticsLevel;
     }
@@ -656,6 +522,11 @@ public class MainConfigurationProperties {
         return jmxManagementNamePattern;
     }
 
+    /**
+     * The naming pattern for creating the CamelContext JMX management name.
+     *
+     * The default pattern is #name#
+     */
     public void setJmxManagementNamePattern(String jmxManagementNamePattern) {
         this.jmxManagementNamePattern = jmxManagementNamePattern;
     }
@@ -664,126 +535,22 @@ public class MainConfigurationProperties {
         return jmxCreateConnector;
     }
 
+    /**
+     * Whether JMX connector is created, allowing clients to connect remotely
+     *
+     * The default value is false.
+     */
     public void setJmxCreateConnector(boolean jmxCreateConnector) {
         this.jmxCreateConnector = jmxCreateConnector;
     }
 
-    public boolean isTraceFormatterShowBody() {
-        return traceFormatterShowBody;
-    }
-
-    public void setTraceFormatterShowBody(boolean traceFormatterShowBody) {
-        this.traceFormatterShowBody = traceFormatterShowBody;
-    }
-
-    public boolean isTracerFormatterShowBodyType() {
-        return tracerFormatterShowBodyType;
-    }
-
-    public void setTracerFormatterShowBodyType(boolean 
tracerFormatterShowBodyType) {
-        this.tracerFormatterShowBodyType = tracerFormatterShowBodyType;
-    }
-
-    public boolean isTraceFormatterShowBreadCrumb() {
-        return traceFormatterShowBreadCrumb;
-    }
-
-    public void setTraceFormatterShowBreadCrumb(boolean 
traceFormatterShowBreadCrumb) {
-        this.traceFormatterShowBreadCrumb = traceFormatterShowBreadCrumb;
-    }
-
-    public boolean isTraceFormatterShowExchangeId() {
-        return traceFormatterShowExchangeId;
-    }
-
-    public void setTraceFormatterShowExchangeId(boolean 
traceFormatterShowExchangeId) {
-        this.traceFormatterShowExchangeId = traceFormatterShowExchangeId;
-    }
-
-    public boolean isTraceFormatterShowHeaders() {
-        return traceFormatterShowHeaders;
-    }
-
-    public void setTraceFormatterShowHeaders(boolean 
traceFormatterShowHeaders) {
-        this.traceFormatterShowHeaders = traceFormatterShowHeaders;
-    }
-
-    public boolean isTraceFormatterShowProperties() {
-        return traceFormatterShowProperties;
-    }
-
-    public void setTraceFormatterShowProperties(boolean 
traceFormatterShowProperties) {
-        this.traceFormatterShowProperties = traceFormatterShowProperties;
-    }
-
-    public boolean isTraceFormatterShowNode() {
-        return traceFormatterShowNode;
-    }
-
-    public void setTraceFormatterShowNode(boolean traceFormatterShowNode) {
-        this.traceFormatterShowNode = traceFormatterShowNode;
-    }
-
-    public boolean isTraceFormatterShowExchangePattern() {
-        return traceFormatterShowExchangePattern;
-    }
-
-    public void setTraceFormatterShowExchangePattern(boolean 
traceFormatterShowExchangePattern) {
-        this.traceFormatterShowExchangePattern = 
traceFormatterShowExchangePattern;
-    }
-
-    public boolean isTraceFormatterShowException() {
-        return traceFormatterShowException;
-    }
-
-    public void setTraceFormatterShowException(boolean 
traceFormatterShowException) {
-        this.traceFormatterShowException = traceFormatterShowException;
-    }
-
-    public boolean isTraceFormatterShowRouteId() {
-        return traceFormatterShowRouteId;
-    }
-
-    public void setTraceFormatterShowRouteId(boolean 
traceFormatterShowRouteId) {
-        this.traceFormatterShowRouteId = traceFormatterShowRouteId;
-    }
-
-    public Integer getTracerFormatterBreadCrumbLength() {
-        return tracerFormatterBreadCrumbLength;
-    }
-
-    public void setTracerFormatterBreadCrumbLength(Integer 
tracerFormatterBreadCrumbLength) {
-        this.tracerFormatterBreadCrumbLength = tracerFormatterBreadCrumbLength;
-    }
-
-    public boolean isTraceFormatterShowShortExchangeId() {
-        return traceFormatterShowShortExchangeId;
-    }
-
-    public void setTraceFormatterShowShortExchangeId(boolean 
traceFormatterShowShortExchangeId) {
-        this.traceFormatterShowShortExchangeId = 
traceFormatterShowShortExchangeId;
-    }
-
-    public Integer getTracerFormatterNodeLength() {
-        return tracerFormatterNodeLength;
-    }
-
-    public void setTracerFormatterNodeLength(Integer 
tracerFormatterNodeLength) {
-        this.tracerFormatterNodeLength = tracerFormatterNodeLength;
-    }
-
-    public Integer getTracerFormatterMaxChars() {
-        return tracerFormatterMaxChars;
-    }
-
-    public void setTracerFormatterMaxChars(Integer tracerFormatterMaxChars) {
-        this.tracerFormatterMaxChars = tracerFormatterMaxChars;
-    }
-
     public boolean isUseMdcLogging() {
         return useMdcLogging;
     }
 
+    /**
+     * To turn on MDC logging
+     */
     public void setUseMdcLogging(boolean useMdcLogging) {
         this.useMdcLogging = useMdcLogging;
     }
@@ -792,6 +559,17 @@ public class MainConfigurationProperties {
         return threadNamePattern;
     }
 
+    /**
+     * Sets the thread name pattern used for creating the full thread name.
+     *
+     * The default pattern is: Camel (#camelId#) thread ##counter# - #name#
+     *
+     * Where #camelId# is the name of the CamelContext.
+     * and #counter# is a unique incrementing counter.
+     * and #name# is the regular thread name.
+     *
+     * You can also use #longName# which is the long thread name which can 
includes endpoint parameters etc.
+     */
     public void setThreadNamePattern(String threadNamePattern) {
         this.threadNamePattern = threadNamePattern;
     }

Reply via email to