org.apache.camel.component.jmx
Class JMXEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint
      extended by org.apache.camel.component.jmx.JMXEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton

public class JMXEndpoint
extends DefaultEndpoint

JMXEndpoint for monitoring JMX attributs using CounterMonitor.

Version:
$Revision: 736322 $

Constructor Summary
JMXEndpoint()
           
JMXEndpoint(String endpointUri)
           
JMXEndpoint(String endpointUri, JMXComponent component)
           
 
Method Summary
 Consumer createConsumer(Processor proc)
          Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor
 Exchange createExchange(Notification notification)
           
 Producer createProducer()
          Creates a new producer which is used send messages into the endpoint
 String getAttributeName()
           
 long getGranularityPeriod()
           
 MBeanServer getMbeanServer()
           
 String getName()
           
 Number getOffset()
           
 Number getThreshold()
           
 boolean isSingleton()
          Wheter this class supports being singleton or not.
 void setAttributeName(String attributeName)
           
 void setGranularityPeriod(long granularityPeriod)
           
 void setMbeanServer(MBeanServer mbeanServer)
           
 void setName(String name)
           
 void setOffset(Number offset)
           
 void setThreshold(Number threshold)
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, convertTo, createEndpointUri, createExchange, createExchange, createExchange, createExecutorService, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JMXEndpoint

public JMXEndpoint()

JMXEndpoint

public JMXEndpoint(String endpointUri,
                   JMXComponent component)

JMXEndpoint

public JMXEndpoint(String endpointUri)
Method Detail

createProducer

public Producer createProducer()
                        throws Exception
Description copied from interface: Endpoint
Creates a new producer which is used send messages into the endpoint

Returns:
a newly created producer
Throws:
Exception - can be thrown

createConsumer

public Consumer createConsumer(Processor proc)
                        throws Exception
Description copied from interface: Endpoint
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor

Parameters:
proc - the given processor
Returns:
a newly created consumer
Throws:
Exception - can be thrown

isSingleton

public boolean isSingleton()
Description copied from interface: IsSingleton
Wheter this class supports being singleton or not.

Returns:
true to be a single shared instance, false to create new instances.

createExchange

public Exchange createExchange(Notification notification)

getAttributeName

public String getAttributeName()

setAttributeName

public void setAttributeName(String attributeName)

getGranularityPeriod

public long getGranularityPeriod()

setGranularityPeriod

public void setGranularityPeriod(long granularityPeriod)

getName

public String getName()

setName

public void setName(String name)

getOffset

public Number getOffset()

setOffset

public void setOffset(Number offset)

getThreshold

public Number getThreshold()

setThreshold

public void setThreshold(Number threshold)

getMbeanServer

public MBeanServer getMbeanServer()

setMbeanServer

public void setMbeanServer(MBeanServer mbeanServer)


Copyright © 2009 Apache Software Foundation. All Rights Reserved.