|
||||||||||
| 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(java.lang.String componentName,
org.apache.camel.Component component,
java.lang.String camelContextName)
Add a component on the given camel context. |
void |
addRegistry(java.io.InputStream input,
java.lang.String camelContextName)
Add values to the registry component. |
void |
addRoutes(org.apache.camel.builder.RouteBuilder builder,
java.lang.String camelContextName)
Add a Route to the given context, by providing a
RouteBuilder |
org.apache.camel.CamelContext |
getCamelContext(java.lang.String name)
Get an instance of Camel. |
java.util.List<java.lang.String> |
getContextNames()
Get the names of Camel contexts managed by the service. |
org.apache.camel.ProducerTemplate |
getProducerTemplate(java.lang.String camelContextName)
Get a producer template for the given camel context. |
java.util.List<org.apache.camel.model.RouteDefinition> |
getRouteDefinitions(java.lang.String camelContextName)
Get the list of existing routes. |
void |
removeRegistry(java.io.InputStream input,
java.lang.String camelContextName)
Remove entries from the registry component. |
org.apache.camel.CamelContext |
startAndGetNewContext()
Start a new camel context and return context. |
java.lang.String |
startNewContext()
Start a new camel context and return context name. |
void |
stop(java.lang.String name)
Stop an instance of Camel. |
| Method Detail |
|---|
java.util.List<java.lang.String> getContextNames()
java.lang.String startNewContext()
throws java.lang.Exception
java.lang.Exception - If starting the context fails.
org.apache.camel.CamelContext startAndGetNewContext()
throws java.lang.Exception
java.lang.Exception - If starting the context fails.
void stop(java.lang.String name)
throws java.lang.Exception
name - the camel context name to stop.
java.lang.Exception - If stopping any CAMEL console fails.org.apache.camel.CamelContext getCamelContext(java.lang.String name)
name - the camel context name
void addRoutes(org.apache.camel.builder.RouteBuilder builder,
java.lang.String camelContextName)
throws java.lang.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.
java.lang.Exception - If adding route fails.java.util.List<org.apache.camel.model.RouteDefinition> getRouteDefinitions(java.lang.String camelContextName)
camelContextName - the identifier of the camel context to check.
org.apache.camel.ProducerTemplate getProducerTemplate(java.lang.String camelContextName)
camelContextName - the camel context name on which the producer has
to be taken.
void addRegistry(java.io.InputStream input,
java.lang.String camelContextName)
throws java.lang.Exception
input - the stream that contains the entries to add.camelContextName - the camel context name that contains the registry
to update.
java.lang.Exception
void removeRegistry(java.io.InputStream input,
java.lang.String camelContextName)
input - the input stream that contains all the entries to removecamelContextName - the camel context name to remove the entries on.
void addComponent(java.lang.String componentName,
org.apache.camel.Component component,
java.lang.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 | |||||||||