|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICamelService
Interface of the Camel Service.
| Method Summary | |
|---|---|
void |
addComponent(String componentName,
org.apache.camel.Component component,
String camelContextName)
Add a component on the given camel context. |
void |
addRegistry(InputStream input,
String camelContextName)
Add values to the registry component. |
void |
addRoutes(org.apache.camel.builder.RouteBuilder builder,
String camelContextName)
Add a Route to the given context, by providing a
RouteBuilder |
org.apache.camel.CamelContext |
getCamelContext(String name)
Get an instance of Camel. |
List<String> |
getContextNames()
Get the names of Camel contexts managed by the service. |
org.apache.camel.ProducerTemplate |
getProducerTemplate(String camelContextName)
Get a producer template for the given camel context. |
List<org.apache.camel.model.RouteDefinition> |
getRouteDefinitions(String camelContextName)
Get the list of existing routes. |
void |
removeRegistry(InputStream input,
String camelContextName)
Remove entries from the registry component. |
org.apache.camel.CamelContext |
startAndGetNewContext(org.osgi.framework.BundleContext bundleContext)
Start a new camel context using a given OSGi BundleContext and return context. |
String |
startNewContext(org.osgi.framework.BundleContext bundleContext)
Start a new camel context using a given OSGi BundleContext and return camel context name. |
void |
stop(String name)
Stop an instance of Camel. |
| Method Detail |
|---|
List<String> getContextNames()
String startNewContext(org.osgi.framework.BundleContext bundleContext)
throws Exception
bundleContext - OSGi bundle context to use.
Exception - If starting the context fails.
org.apache.camel.CamelContext startAndGetNewContext(org.osgi.framework.BundleContext bundleContext)
throws Exception
bundleContext - OSGi bundle context to use.
Exception - If starting the context fails.
void stop(String name)
throws Exception
name - the camel context name to stop.
Exception - If stopping any CAMEL console fails.org.apache.camel.CamelContext getCamelContext(String name)
name - the camel context name
void addRoutes(org.apache.camel.builder.RouteBuilder builder,
String camelContextName)
throws Exception
Route to the given context, by providing a
RouteBuilder
builder - the route builder.camelContextName - the camel context name on which the route has to
be set.
Exception - If adding route fails.List<org.apache.camel.model.RouteDefinition> getRouteDefinitions(String camelContextName)
camelContextName - the identifier of the camel context to check.
org.apache.camel.ProducerTemplate getProducerTemplate(String camelContextName)
camelContextName - the camel context name on which the producer has
to be taken.
void addRegistry(InputStream input,
String camelContextName)
throws Exception
input - the stream that contains the entries to add.camelContextName - the camel context name that contains the registry
to update.
Exception
void removeRegistry(InputStream input,
String camelContextName)
input - the input stream that contains all the entries to removecamelContextName - the camel context name to remove the entries on.
void addComponent(String componentName,
org.apache.camel.Component component,
String camelContextName)
componentName - the component name.component - the component.camelContextName - the camel name context.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||