org.apache.camel.management.mbean
Class ManagedRoute

java.lang.Object
  extended by org.apache.camel.management.mbean.ManagedCounter
      extended by org.apache.camel.management.mbean.ManagedPerformanceCounter
          extended by org.apache.camel.management.mbean.ManagedRoute
All Implemented Interfaces:
PerformanceCounter
Direct Known Subclasses:
ManagedSuspendableRoute

@ManagedResource(description="Managed Route")
public class ManagedRoute
extends ManagedPerformanceCounter


Field Summary
protected  CamelContext context
           
protected  String description
           
protected  Route route
           
static String VALUE_UNKNOWN
           
 
Fields inherited from class org.apache.camel.management.mbean.ManagedCounter
exchangesTotal
 
Constructor Summary
ManagedRoute(CamelContext context, Route route)
           
 
Method Summary
 String getCamelId()
           
 CamelContext getContext()
           
 String getDescription()
           
 String getEndpointUri()
           
 Integer getInflightExchanges()
           
 Route getRoute()
           
 String getRouteId()
           
 String getRoutePolicyList()
           
 String getState()
           
 Boolean getTracing()
           
 boolean remove()
           
 void setTracing(Boolean tracing)
           
 void shutdown()
          Deprecated. 
 void shutdown(long timeout)
          Deprecated. 
 void start()
           
 void stop()
           
 void stop(long timeout)
           
 boolean stop(Long timeout, Boolean abortAfterTimeout)
           
 
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 org.apache.camel.management.mbean.ManagedCounter
getExchangesTotal, increment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ManagedRoute

public ManagedRoute(CamelContext context,
                    Route route)
Method Detail

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