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:
Endpoint<JMXExchange>

public class JMXEndpoint
extends DefaultEndpoint<JMXExchange>

Creates a CounterMonitor for jmx attributes

Version:
$Revision: 523016 $

Constructor Summary
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(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
convertTo, createExchange, createExecutorService, createPollingConsumer, equals, getComponent, getContext, getEndpointUri, getExchangeType, getExecutorService, hashCode, setExecutorService, toExchangeType, 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)
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 Producer
Throws:
Exception
See Also:
Endpoint.createProducer()

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

Parameters:
proc -
Returns:
a Consumer
Throws:
Exception
See Also:
Endpoint.createConsumer(org.apache.camel.Processor)

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


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 © 2007 Apache Software Foundation. All Rights Reserved.