Package org.apache.camel.spi
Interface DumpRoutesStrategy
- All Superinterfaces:
AutoCloseable
,Service
,StaticService
Strategy for dumping routes during startup dump all loaded routes (incl rests and route templates).
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
dumpRoutes
(String format) Dump routesboolean
boolean
isLog()
boolean
boolean
void
setGeneratedIds
(boolean generatedIds) Whether to include auto generated IDs in the dumped output.void
setInclude
(String include) Controls what to include in output.void
setLog
(boolean log) Whether to log route dumps to Loggervoid
Whether to save route dumps to an output file.void
setResolvePlaceholders
(boolean resolvePlaceholders) Whether to resolve property placeholders in the dumped output.void
setUriAsParameters
(boolean uriAsParameters) When dumping to YAML format, then this option controls whether endpoint URIs should be expanded into a key/value parameters.
-
Field Details
-
FACTORY
Service factory key.- See Also:
-
-
Method Details
-
dumpRoutes
Dump routes- Parameters:
format
- xml or yaml
-
getInclude
String getInclude() -
setInclude
Controls what to include in output. Possible values: all, routes, rests, routeConfigurations, routeTemplates, beans. Multiple values can be separated by comma. Default is routes. -
isResolvePlaceholders
boolean isResolvePlaceholders() -
setResolvePlaceholders
void setResolvePlaceholders(boolean resolvePlaceholders) Whether to resolve property placeholders in the dumped output. Default is true. -
isUriAsParameters
boolean isUriAsParameters() -
setUriAsParameters
void setUriAsParameters(boolean uriAsParameters) When dumping to YAML format, then this option controls whether endpoint URIs should be expanded into a key/value parameters. -
isGeneratedIds
boolean isGeneratedIds() -
setGeneratedIds
void setGeneratedIds(boolean generatedIds) Whether to include auto generated IDs in the dumped output. Default is false. -
isLog
boolean isLog() -
setLog
void setLog(boolean log) Whether to log route dumps to Logger -
getOutput
String getOutput() -
setOutput
Whether to save route dumps to an output file. If the output is a filename, then all content is saved to this file. If the output is a directory name, then one or more files are saved to the directory, where the names are based on the original source file names, or auto generated names.
-