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:
ManagedCounterMBean, ManagedPerformanceCounterMBean, ManagedRouteMBean, PerformanceCounter, TimerListener
Direct Known Subclasses:
ManagedSuspendableRoute

@ManagedResource(description="Managed Route")
public class ManagedRoute
extends ManagedPerformanceCounter
implements TimerListener, ManagedRouteMBean


Field Summary
protected  ModelCamelContext context
           
protected  String description
           
protected  Route route
           
static String VALUE_UNKNOWN
           
 
Fields inherited from class org.apache.camel.management.mbean.ManagedPerformanceCounter
TIMESTAMP_FORMAT
 
Fields inherited from class org.apache.camel.management.mbean.ManagedCounter
exchangesTotal
 
Constructor Summary
ManagedRoute(ModelCamelContext context, Route route)
           
 
Method Summary
 String dumpRouteAsXml()
           
 String dumpRouteStatsAsXml(boolean fullStats, boolean includeProcessors)
           
 boolean equals(Object o)
           
 String getCamelId()
           
 CamelContext getContext()
           
 String getDescription()
           
 String getEndpointUri()
           
 Integer getInflightExchanges()
           
 String getLoad01()
           
 String getLoad05()
           
 String getLoad15()
           
 Route getRoute()
           
 String getRouteId()
           
 String getRoutePolicyList()
           
 String getState()
           
 Boolean getTracing()
           
 int hashCode()
           
 void onTimer()
          Notification invoked.
 boolean remove()
           
 void setTracing(Boolean tracing)
           
 void shutdown()
           
 void shutdown(long timeout)
           
 void start()
           
 void stop()
           
 void stop(long timeout)
           
 boolean stop(Long timeout, Boolean abortAfterTimeout)
           
 void updateRouteFromXml(String xml)
           
 
Methods inherited from class org.apache.camel.management.mbean.ManagedPerformanceCounter
completedExchange, dumpStatsAsXml, failedExchange, getExchangesCompleted, getExchangesFailed, getExternalRedeliveries, getFailuresHandled, getFirstExchangeCompletedExchangeId, getFirstExchangeCompletedTimestamp, getFirstExchangeFailureExchangeId, getFirstExchangeFailureTimestamp, getLastExchangeCompletedExchangeId, getLastExchangeCompletedTimestamp, getLastExchangeFailureExchangeId, getLastExchangeFailureTimestamp, getLastProcessingTime, getMaxProcessingTime, getMeanProcessingTime, getMinProcessingTime, getRedeliveries, 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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
dumpStatsAsXml, getExchangesCompleted, getExchangesFailed, getExternalRedeliveries, getFailuresHandled, getFirstExchangeCompletedExchangeId, getFirstExchangeCompletedTimestamp, getFirstExchangeFailureExchangeId, getFirstExchangeFailureTimestamp, getLastExchangeCompletedExchangeId, getLastExchangeCompletedTimestamp, getLastExchangeFailureExchangeId, getLastExchangeFailureTimestamp, getLastProcessingTime, getMaxProcessingTime, getMeanProcessingTime, getMinProcessingTime, getRedeliveries, getTotalProcessingTime, isStatisticsEnabled, setStatisticsEnabled
 
Methods inherited from interface org.apache.camel.api.management.mbean.ManagedCounterMBean
getExchangesTotal, reset
 

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

ManagedRoute

public ManagedRoute(ModelCamelContext context,
                    Route route)
Method Detail

getRoute

public Route getRoute()

getContext

public CamelContext getContext()

getRouteId

public String getRouteId()
Specified by:
getRouteId in interface ManagedRouteMBean

getDescription

public String getDescription()
Specified by:
getDescription in interface ManagedRouteMBean

getEndpointUri

public String getEndpointUri()
Specified by:
getEndpointUri in interface ManagedRouteMBean

getState

public String getState()
Specified by:
getState in interface ManagedRouteMBean

getInflightExchanges

public Integer getInflightExchanges()
Specified by:
getInflightExchanges in interface ManagedRouteMBean

getCamelId

public String getCamelId()
Specified by:
getCamelId in interface ManagedRouteMBean

getTracing

public Boolean getTracing()
Specified by:
getTracing in interface ManagedRouteMBean

setTracing

public void setTracing(Boolean tracing)
Specified by:
setTracing in interface ManagedRouteMBean

getRoutePolicyList

public String getRoutePolicyList()
Specified by:
getRoutePolicyList in interface ManagedRouteMBean

getLoad01

public String getLoad01()
Specified by:
getLoad01 in interface ManagedRouteMBean

getLoad05

public String getLoad05()
Specified by:
getLoad05 in interface ManagedRouteMBean

getLoad15

public String getLoad15()
Specified by:
getLoad15 in interface ManagedRouteMBean

onTimer

public void onTimer()
Description copied from interface: TimerListener
Notification invoked.

Specified by:
onTimer in interface TimerListener

start

public void start()
           throws Exception
Specified by:
start in interface ManagedRouteMBean
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface ManagedRouteMBean
Throws:
Exception

stop

public void stop(long timeout)
          throws Exception
Specified by:
stop in interface ManagedRouteMBean
Throws:
Exception

stop

public boolean stop(Long timeout,
                    Boolean abortAfterTimeout)
             throws Exception
Specified by:
stop in interface ManagedRouteMBean
Throws:
Exception

shutdown

public void shutdown()
              throws Exception
Specified by:
shutdown in interface ManagedRouteMBean
Throws:
Exception

shutdown

public void shutdown(long timeout)
              throws Exception
Specified by:
shutdown in interface ManagedRouteMBean
Throws:
Exception

remove

public boolean remove()
               throws Exception
Specified by:
remove in interface ManagedRouteMBean
Throws:
Exception

dumpRouteAsXml

public String dumpRouteAsXml()
                      throws Exception
Specified by:
dumpRouteAsXml in interface ManagedRouteMBean
Throws:
Exception

updateRouteFromXml

public void updateRouteFromXml(String xml)
                        throws Exception
Specified by:
updateRouteFromXml in interface ManagedRouteMBean
Throws:
Exception

dumpRouteStatsAsXml

public String dumpRouteStatsAsXml(boolean fullStats,
                                  boolean includeProcessors)
                           throws Exception
Specified by:
dumpRouteStatsAsXml in interface ManagedRouteMBean
Throws:
Exception

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Apache CAMEL