|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.spring.Main
public class Main
A command line tool for booting up a CamelContext using an optional Spring ApplicationContext
Nested Class Summary | |
---|---|
class |
Main.Option
|
class |
Main.ParameterOption
|
Constructor Summary | |
---|---|
Main()
|
Method Summary | |
---|---|
void |
addOption(Main.Option option)
|
void |
addRouteBuilder(RouteBuilder routeBuilder)
|
void |
completed()
Marks this process as being completed |
protected org.springframework.context.support.AbstractApplicationContext |
createDefaultApplicationContext()
|
protected void |
doStart()
|
protected void |
doStop()
|
protected void |
generateDot(String name,
SpringCamelContext camelContext,
int size)
|
org.springframework.context.support.AbstractApplicationContext |
getApplicationContext()
|
String |
getApplicationContextUri()
|
List<SpringCamelContext> |
getCamelContexts()
|
String |
getDotOutputDir()
|
long |
getDuration()
|
List<RouteBuilder> |
getRouteBuilders()
|
TimeUnit |
getTimeUnit()
|
protected String |
getVersion()
|
boolean |
isAggregateDot()
|
static void |
main(String... args)
|
void |
parseArguments(String[] arguments)
Parses the commandl ine arguments |
protected void |
postProcesCamelContext(CamelContext camelContext)
|
protected void |
postProcessContext()
|
void |
run()
Runs this process with the given arguments |
void |
run(String[] args)
Parses the command line arguments then runs the program |
void |
setAggregateDot(boolean aggregateDot)
|
void |
setApplicationContext(org.springframework.context.support.AbstractApplicationContext applicationContext)
|
void |
setApplicationContextUri(String applicationContextUri)
|
void |
setDotOutputDir(String dotOutputDir)
Sets the output directory of the generated DOT Files to show the visual representation of the routes. |
void |
setDuration(long duration)
Sets the duration to run the application for in milliseconds until it should be terminated. |
void |
setRouteBuilders(List<RouteBuilder> routeBuilders)
|
void |
setTimeUnit(TimeUnit timeUnit)
Sets the time unit duration |
void |
showOptions()
Displays the command line options |
protected void |
waitUntilCompleted()
|
Methods inherited from class org.apache.camel.impl.ServiceSupport |
---|
addChildService, getThreadName, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Main()
Method Detail |
---|
public static void main(String... args)
public void run(String[] args)
public void run()
public void completed()
public void addRouteBuilder(RouteBuilder routeBuilder)
public void showOptions()
public void parseArguments(String[] arguments)
public void addOption(Main.Option option)
public org.springframework.context.support.AbstractApplicationContext getApplicationContext()
public void setApplicationContext(org.springframework.context.support.AbstractApplicationContext applicationContext)
public String getApplicationContextUri()
public void setApplicationContextUri(String applicationContextUri)
public List<SpringCamelContext> getCamelContexts()
public long getDuration()
public void setDuration(long duration)
duration
- public TimeUnit getTimeUnit()
public void setTimeUnit(TimeUnit timeUnit)
public String getDotOutputDir()
public void setDotOutputDir(String dotOutputDir)
public List<RouteBuilder> getRouteBuilders()
public void setRouteBuilders(List<RouteBuilder> routeBuilders)
public void setAggregateDot(boolean aggregateDot)
public boolean isAggregateDot()
protected void doStart() throws Exception
doStart
in class ServiceSupport
Exception
protected org.springframework.context.support.AbstractApplicationContext createDefaultApplicationContext()
protected void doStop() throws Exception
doStop
in class ServiceSupport
Exception
protected void waitUntilCompleted()
protected void postProcessContext() throws Exception
Exception
protected void generateDot(String name, SpringCamelContext camelContext, int size) throws IOException
IOException
protected void postProcesCamelContext(CamelContext camelContext) throws Exception
Exception
protected String getVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |