org.apache.camel.karaf.commands.internal
Class CamelControllerImpl

java.lang.Object
  extended by org.apache.camel.karaf.commands.internal.CamelControllerImpl
All Implemented Interfaces:
CamelController

public class CamelControllerImpl
extends Object
implements CamelController

Implementation of CamelConrtoller.


Constructor Summary
CamelControllerImpl()
           
 
Method Summary
 CamelContext getCamelContext(String name)
          Get a Camel context identified by the given name.
 List<CamelContext> getCamelContexts()
          Get the list of Camel context.
 Route getRoute(String routeId, String camelContextName)
          Return the route with the given route ID.
 RouteDefinition getRouteDefinition(String routeId, String camelContextName)
          Return the definition of a route identified by a ID and a Camel context.
 List<Route> getRoutes(String camelContextName)
          Get all routes.
 void setBundleContext(org.osgi.framework.BundleContext bundleContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamelControllerImpl

public CamelControllerImpl()
Method Detail

setBundleContext

public void setBundleContext(org.osgi.framework.BundleContext bundleContext)

getCamelContexts

public List<CamelContext> getCamelContexts()
Description copied from interface: CamelController
Get the list of Camel context.

Specified by:
getCamelContexts in interface CamelController
Returns:
the list of Camel contexts.

getCamelContext

public CamelContext getCamelContext(String name)
Description copied from interface: CamelController
Get a Camel context identified by the given name.

Specified by:
getCamelContext in interface CamelController
Parameters:
name - the Camel context name.
Returns:
the Camel context or null if not found.

getRoutes

public List<Route> getRoutes(String camelContextName)
Description copied from interface: CamelController
Get all routes. If Camel context name is null, all routes from all contexts are listed.

Specified by:
getRoutes in interface CamelController
Parameters:
camelContextName - the Camel context name. If null, all contexts are considered.
Returns:
the list of the Camel routes.

getRoute

public Route getRoute(String routeId,
                      String camelContextName)
Description copied from interface: CamelController
Return the route with the given route ID.

Specified by:
getRoute in interface CamelController
Parameters:
routeId - the route ID.
camelContextName - the Camel context name.
Returns:
the route.

getRouteDefinition

public RouteDefinition getRouteDefinition(String routeId,
                                          String camelContextName)
Description copied from interface: CamelController
Return the definition of a route identified by a ID and a Camel context.

Specified by:
getRouteDefinition in interface CamelController
Parameters:
routeId - the route ID.
camelContextName - the Camel context.
Returns:
the RouteDefinition.


Apache CAMEL