org.apache.camel.management
Class InstrumentationProcessor

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.processor.DelegateProcessor
          extended by org.apache.camel.management.InstrumentationProcessor
All Implemented Interfaces:
Navigate, Processor, Service

public class InstrumentationProcessor
extends DelegateProcessor

JMX enabled processor that uses the Counter for instrumenting processing of exchanges.

Version:
$Revision: 772172 $

Field Summary
 
Fields inherited from class org.apache.camel.processor.DelegateProcessor
processor
 
Constructor Summary
InstrumentationProcessor()
           
InstrumentationProcessor(PerformanceCounter counter)
           
 
Method Summary
 String getType()
           
 void process(Exchange exchange)
          Processes the message exchange
protected  void recordTime(Exchange exchange, double duration)
           
 void setCounter(PerformanceCounter counter)
           
 void setType(String type)
           
 String toString()
           
 
Methods inherited from class org.apache.camel.processor.DelegateProcessor
doStart, doStop, getProcessor, hasNext, next, proceed, processNext, setProcessor
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstrumentationProcessor

public InstrumentationProcessor()

InstrumentationProcessor

public InstrumentationProcessor(PerformanceCounter counter)
Method Detail

toString

public String toString()
Overrides:
toString in class DelegateProcessor

setCounter

public void setCounter(PerformanceCounter 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,
                          double duration)

getType

public String getType()

setType

public void setType(String type)


Copyright © 2009 Apache Software Foundation. All Rights Reserved.