org.apache.camel.component.jmx
Class JMXEndpoint

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

public class JMXEndpoint
extends DefaultEndpoint<JMXExchange>

JMXEndpoint for monitoring JMX attributs using CounterMonitor.

Version:
$Revision: 41910 $

Constructor Summary
  JMXEndpoint(String endpointUri)
           
protected JMXEndpoint(String endpointUri, JMXComponent component)
           
 
Method Summary
 Consumer<JMXExchange> createConsumer(Processor proc)
          Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor
 JMXExchange createExchange()
          Create a new exchange for communicating with this endpoint
 JMXExchange createExchange(ExchangePattern pattern)
          Create a new exchange for communicating with this endpoint with the specified ExchangePattern such as whether its going to be an ExchangePattern.InOnly or ExchangePattern.InOut exchange
 JMXExchange createExchange(Notification notification)
           
 Producer<JMXExchange> 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()
          Returns if the endpoint should be a CamelContext singleton.
 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, createExecutorService, createPollingConsumer, equals, getCamelContext, getComponent, getContext, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, hashCode, isLenientProperties, setCamelContext, setContext, setEndpointUri, setExchangePattern, setExecutorService, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JMXEndpoint

protected JMXEndpoint(String endpointUri,
                      JMXComponent component)

JMXEndpoint

public JMXEndpoint(String endpointUri)
Method Detail

createProducer

public Producer<JMXExchange> 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

createConsumer

public Consumer<JMXExchange> 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

Returns:
a newly created consumer
Throws:
Exception

isSingleton

public boolean isSingleton()
Description copied from interface: Endpoint
Returns if the endpoint should be a CamelContext singleton. If the endpoint is a Singleton, then a single Endpoint instance will be shared by all routes with the same URI. Because the endpoint is shared, it should be treated as an immutable.


createExchange

public JMXExchange createExchange(Notification notification)

createExchange

public JMXExchange createExchange()
Description copied from interface: Endpoint
Create a new exchange for communicating with this endpoint

Specified by:
createExchange in interface Endpoint<JMXExchange>
Overrides:
createExchange in class DefaultEndpoint<JMXExchange>

createExchange

public JMXExchange createExchange(ExchangePattern pattern)
Description copied from interface: Endpoint
Create a new exchange for communicating with this endpoint with the specified ExchangePattern such as whether its going to be an ExchangePattern.InOnly or ExchangePattern.InOut exchange

Specified by:
createExchange in interface Endpoint<JMXExchange>
Overrides:
createExchange in class DefaultEndpoint<JMXExchange>
Parameters:
pattern - the message exchange pattern for the exchange

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 © 2008 IONA Open Source Community. All Rights Reserved.