public abstract class AbstractContextCommand extends AbstractCamelCommand
CamelContext| Modifier | Constructor and Description |
|---|---|
protected |
AbstractContextCommand(String context) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(CamelController camelController,
PrintStream out,
PrintStream err)
Executes the given command.
|
protected Object |
executeLocal(LocalCamelController camelController,
PrintStream out,
PrintStream err) |
protected abstract Object |
performContextCommand(CamelController camelController,
String contextName,
PrintStream out,
PrintStream err)
Perform Context-specific command
|
safeNull, safeNullprotected AbstractContextCommand(String context)
context - The name of the Camel context.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 Object executeLocal(LocalCamelController camelController, PrintStream out, PrintStream err) throws Exception
Exceptionprotected abstract Object performContextCommand(CamelController camelController, String contextName, PrintStream out, PrintStream err) throws Exception
camelController - the Camel controllercontextName - the Camel context nameout - the output printer streamerr - the error print streamException - is thrown if error executing commandApache Camel