org.apache.camel.management
Class InstrumentationProcessor
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.processor.DelegateProcessor
org.apache.camel.management.InstrumentationProcessor
- All Implemented Interfaces:
- Navigate<Processor>, Processor, Service
public class InstrumentationProcessor
- extends DelegateProcessor
JMX enabled processor that uses the ManagedCounter for instrumenting
processing of exchanges.
- Version:
- $Revision: 836213 $
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop |
InstrumentationProcessor
public InstrumentationProcessor()
InstrumentationProcessor
public InstrumentationProcessor(PerformanceCounter counter)
toString
public String toString()
- Overrides:
toString in class DelegateProcessor
setCounter
public void setCounter(ManagedPerformanceCounter counter)
process
public void process(Exchange exchange)
throws Exception
- Description copied from interface:
Processor
- Processes the message exchange
- Specified by:
process in interface Processor- Overrides:
process in class DelegateProcessor
- Parameters:
exchange - the message exchange
- Throws:
Exception - if an internal processing error has occurred.
recordTime
protected void recordTime(Exchange exchange,
long duration)
getType
public String getType()
setType
public void setType(String type)
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.