org.apache.camel.management.mbean
Class ManagedProcessor

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.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:

Field Summary
 
Fields inherited from class org.apache.camel.management.mbean.ManagedCounter
exchangesTotal
 
Constructor Summary
ManagedProcessor(CamelContext context, Processor processor, ProcessorDefinition<?> definition)
           
 
Method Summary
 String getCamelId()
           
 CamelContext getContext()
           
 ProcessorDefinition<?> getDefinition()
           
 Object getInstance()
          Gets the resource which is being managed.
 Processor getProcessor()
           
 String getProcessorId()
           
 Route getRoute()
           
 String getRouteId()
           
 String getState()
           
 void setRoute(Route route)
           
 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
 

Constructor Detail

ManagedProcessor

public ManagedProcessor(CamelContext context,
                        Processor processor,
                        ProcessorDefinition<?> definition)
Method Detail

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