org.apache.camel.management.mbean
Class ManagedProcessor
java.lang.Object
org.apache.camel.management.mbean.ManagedCounter
org.apache.camel.management.mbean.ManagedPerformanceCounter
org.apache.camel.management.mbean.ManagedProcessor
- All Implemented Interfaces:
- ManagedInstance, PerformanceCounter
- Direct Known Subclasses:
- ManagedBeanProcessor, ManagedDelayer, ManagedSendProcessor, ManagedThrottler
@ManagedResource(description="Managed Processor")
public class ManagedProcessor
- extends ManagedPerformanceCounter
- implements ManagedInstance
- Version:
| 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 |
ManagedProcessor
public ManagedProcessor(CamelContext context,
Processor processor,
ProcessorDefinition<?> definition)
getContext
public CamelContext getContext()
getProcessor
public Processor getProcessor()
getDefinition
public ProcessorDefinition<?> getDefinition()
getRoute
public Route getRoute()
setRoute
public void setRoute(Route route)
getState
@ManagedAttribute(description="Processor State")
public String getState()
getCamelId
@ManagedAttribute(description="Camel id")
public String getCamelId()
getRouteId
@ManagedAttribute(description="Route id")
public String getRouteId()
getProcessorId
@ManagedAttribute(description="Processor id")
public String getProcessorId()
start
@ManagedOperation(description="Start Processor")
public void start()
throws Exception
- Throws:
Exception
stop
@ManagedOperation(description="Stop Processor")
public void stop()
throws Exception
- Throws:
Exception
getInstance
public Object getInstance()
- Description copied from interface:
ManagedInstance
- Gets the resource which is being managed.
- Specified by:
getInstance in interface ManagedInstance
- Returns:
- the resource, such as a
Processor, Consumer etc.
Apache CAMEL