org.apache.camel.component.jmx
Class JMXEndpoint
java.lang.Object
org.apache.camel.impl.DefaultEndpoint
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 $
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 |
JMXEndpoint
public JMXEndpoint()
JMXEndpoint
public JMXEndpoint(String endpointUri,
JMXComponent component)
JMXEndpoint
public JMXEndpoint(String endpointUri)
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.