org.apache.camel.management.mbean
Class ManagedSuspendableRoute

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
              extended by org.apache.camel.management.mbean.ManagedSuspendableRoute
All Implemented Interfaces:
PerformanceCounter

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


Field Summary
 
Fields inherited from class org.apache.camel.management.mbean.ManagedRoute
context, description, route, VALUE_UNKNOWN
 
Fields inherited from class org.apache.camel.management.mbean.ManagedCounter
exchangesTotal
 
Constructor Summary
ManagedSuspendableRoute(CamelContext context, Route route)
           
 
Method Summary
 void resume()
           
 void suspend()
           
 void suspend(long timeout)
           
 
Methods inherited from class org.apache.camel.management.mbean.ManagedRoute
getCamelId, getContext, getDescription, getEndpointUri, getInflightExchanges, getRoute, getRouteId, getRoutePolicyList, getState, getTracing, remove, setTracing, shutdown, shutdown, start, stop, stop, 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
 

Constructor Detail

ManagedSuspendableRoute

public ManagedSuspendableRoute(CamelContext context,
                               Route route)
Method Detail

suspend

@ManagedOperation(description="Suspend route")
public void suspend()
             throws Exception
Throws:
Exception

suspend

@ManagedOperation(description="Suspend route (using timeout in seconds)")
public void suspend(long timeout)
             throws Exception
Throws:
Exception

resume

@ManagedOperation(description="Resume Route")
public void resume()
            throws Exception
Throws:
Exception


Apache CAMEL