public abstract class AbstractRouteCommand extends AbstractCamelCommand
Modifier | Constructor and Description |
---|---|
protected |
AbstractRouteCommand(String route,
String context) |
Modifier and Type | Method and Description |
---|---|
Object |
execute(CamelController camelController,
PrintStream out,
PrintStream err)
Executes the given command.
|
abstract void |
executeOnRoute(CamelController camelController,
String contextName,
String routeId,
PrintStream out,
PrintStream err) |
safeNull, safeNull
public Object execute(CamelController camelController, PrintStream out, PrintStream err) throws Exception
CamelCommand
camelController
- the Camel controller to access Camel informationout
- the output printer streamerr
- the error print streamException
- is thrown if error executing commandpublic abstract void executeOnRoute(CamelController camelController, String contextName, String routeId, PrintStream out, PrintStream err) throws Exception
Exception
Apache Camel