|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.samples.camel.service.impl.CamelService
public class CamelService
Camel Wrapper. Main class of the Resource Adapter
| Constructor Summary | |
|---|---|
CamelService(org.osgi.framework.BundleContext context)
Constructor, needed to get the bundle context. |
|
| 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)
|
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> |
getRoutes(java.lang.String camelContextName)
Get the list of existing routes. |
void |
initialize()
Initialize the bundle. |
void |
removeRegistry(java.io.InputStream input,
java.lang.String camelContextName)
Remove entries from the registry component. |
java.lang.String |
startNewContext()
Start a new camel context. |
void |
stop(java.lang.String name)
Stop an instance of Camel. |
void |
stopAll()
Stop the bundle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CamelService(org.osgi.framework.BundleContext context)
context - the bundle context.| Method Detail |
|---|
public void initialize()
public void stopAll()
throws java.lang.Exception
java.lang.Exception - If stopping any CAMEL console fails.
public java.lang.String startNewContext()
throws java.lang.Exception
startNewContext in interface ICamelServicejava.lang.Exception - If starting the context fails.
public void stop(java.lang.String name)
throws java.lang.Exception
stop in interface ICamelServicename - the camel context name to stop.
java.lang.Exception - If stopping any CAMEL console fails.
public void addRoutes(org.apache.camel.builder.RouteBuilder builder,
java.lang.String camelContextName)
throws java.lang.Exception
addRoutes in interface ICamelServicebuilder - the route to add.camelContextName - the camel context name on which the route has to
be set.
java.lang.Exception - If adding route fails.public java.util.List<org.apache.camel.model.RouteDefinition> getRoutes(java.lang.String camelContextName)
getRoutes in interface ICamelServicecamelContextName - the identifier of the camel context to check.
public org.apache.camel.ProducerTemplate getProducerTemplate(java.lang.String camelContextName)
getProducerTemplate in interface ICamelServicecamelContextName - the camel context name on which the producer has
to be taken.
public void addRegistry(java.io.InputStream input,
java.lang.String camelContextName)
throws java.lang.Exception
addRegistry in interface ICamelServiceinput - the stream that contains the entries to add.camelContextName - the camel context name that contains the registry
to update.
java.lang.Exception
public void removeRegistry(java.io.InputStream input,
java.lang.String camelContextName)
removeRegistry in interface ICamelServiceinput - the input stream that contains all the entries to removecamelContextName - the camel context name to remove the entries on.
public void addComponent(java.lang.String componentName,
org.apache.camel.Component component,
java.lang.String camelContextName)
addComponent in interface ICamelServicecomponentName - 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 | |||||||||