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

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


Field Summary
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 getRoutePolicy()
           
 String getState()
           
 Boolean getTracing()
           
 void setTracing(Boolean tracing)
           
 void start()
           
 void stop()
           
 
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
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)

getRoutePolicy

@ManagedAttribute(description="Route Policy")
public String getRoutePolicy()

start

@ManagedOperation(description="Start Route")
public void start()
           throws Exception
Throws:
Exception

stop

@ManagedOperation(description="Stop Route")
public void stop()
          throws Exception
Throws:
Exception


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.