org.apache.camel.management.mbean
Class ManagedRoute
java.lang.Object
org.apache.camel.management.mbean.ManagedCounter
org.apache.camel.management.mbean.ManagedPerformanceCounter
org.apache.camel.management.mbean.ManagedRoute
- All Implemented Interfaces:
- PerformanceCounter
- Direct Known Subclasses:
- ManagedSuspendableRoute
@ManagedResource(description="Managed Route")
public class ManagedRoute
- extends ManagedPerformanceCounter
Methods inherited from class org.apache.camel.management.mbean.ManagedPerformanceCounter |
completedExchange, failedExchange, getExchangesCompleted, getExchangesFailed, getFirstExchangeCompletedTimestamp, getFirstExchangeFailureTimestamp, getLastExchangeCompletedTimestamp, getLastExchangeFailureTimestamp, getLastProcessingTime, getMaxProcessingTime, getMeanProcessingTime, getMinProcessingTime, getTotalProcessingTime, init, isStatisticsEnabled, reset, setStatisticsEnabled |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VALUE_UNKNOWN
public static final String VALUE_UNKNOWN
- See Also:
- Constant Field Values
route
protected final Route route
description
protected final String description
context
protected final CamelContext context
ManagedRoute
public ManagedRoute(CamelContext context,
Route route)
getRoute
public Route getRoute()
getContext
public CamelContext getContext()
getRouteId
@ManagedAttribute(description="Route id")
public String getRouteId()
getDescription
@ManagedAttribute(description="Route Description")
public String getDescription()
getEndpointUri
@ManagedAttribute(description="Route Endpoint Uri")
public String getEndpointUri()
getState
@ManagedAttribute(description="Route State")
public String getState()
getInflightExchanges
@ManagedAttribute(description="Current number of inflight Exchanges")
public Integer getInflightExchanges()
getCamelId
@ManagedAttribute(description="Camel id")
public String getCamelId()
getTracing
@ManagedAttribute(description="Tracing")
public Boolean getTracing()
setTracing
@ManagedAttribute(description="Tracing")
public void setTracing(Boolean tracing)
getRoutePolicyList
@ManagedAttribute(description="Route Policy List")
public String getRoutePolicyList()
start
@ManagedOperation(description="Start route")
public void start()
throws Exception
- Throws:
Exception
stop
@ManagedOperation(description="Stop route")
public void stop()
throws Exception
- Throws:
Exception
stop
@ManagedOperation(description="Stop route (using timeout in seconds)")
public void stop(long timeout)
throws Exception
- Throws:
Exception
stop
@ManagedOperation(description="Stop route, abort stop after timeout (in seconds)")
public boolean stop(Long timeout,
Boolean abortAfterTimeout)
throws Exception
- Throws:
Exception
shutdown
@ManagedOperation(description="Shutdown and remove route")
@Deprecated
public void shutdown()
throws Exception
- Deprecated.
- Throws:
Exception
shutdown
@ManagedOperation(description="Shutdown and remove route (using timeout in seconds)")
@Deprecated
public void shutdown(long timeout)
throws Exception
- Deprecated.
- Throws:
Exception
remove
@ManagedOperation(description="Remove route (must be stopped)")
public boolean remove()
throws Exception
- Throws:
Exception
Apache CAMEL