public class ContextInfoCommand extends AbstractCamelCommand
CamelContext.| Modifier and Type | Field and Description |
|---|---|
static String |
OUTPUT_TIMESTAMP_FORMAT |
static String |
XML_TIMESTAMP_FORMAT |
| Constructor and Description |
|---|
ContextInfoCommand(String context,
boolean verbose) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(CamelController camelController,
PrintStream out,
PrintStream err)
Executes the given command.
|
protected void |
printStatistics(CamelController camelController,
PrintStream out) |
void |
setStringEscape(StringEscape stringEscape)
Sets the
StringEscape to use. |
safeNull, safeNullpublic static final String XML_TIMESTAMP_FORMAT
public static final String OUTPUT_TIMESTAMP_FORMAT
public ContextInfoCommand(String context, boolean verbose)
context - The name of the Camel contextverbose - Whether to output verbosepublic void setStringEscape(StringEscape stringEscape)
StringEscape to use.public Object execute(CamelController camelController, PrintStream out, PrintStream err) throws Exception
CamelCommandcamelController - the Camel controller to access Camel informationout - the output printer streamerr - the error print streamException - is thrown if error executing commandprotected void printStatistics(CamelController camelController, PrintStream out) throws Exception
ExceptionApache Camel