Class JMXEndpoint

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultEndpoint
org.apache.camel.component.jmx.JMXEndpoint
All Implemented Interfaces:
AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

@UriEndpoint(firstVersion="2.6.0", scheme="jmx", title="JMX", syntax="jmx:serverURL", consumerOnly=true, category=MONITORING, headersClass=JMXConstants.class) public class JMXEndpoint extends org.apache.camel.support.DefaultEndpoint
Receive JMX notifications. Endpoint that describes a connection to an mbean.

The component can connect to the local platform mbean server with the following URI:

jmx://platform?options

A remote mbean server url can be provided following the initial JMX scheme like so:

jmx:service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi?options

You can append query options to the URI in the following format, ?options=value&option2=value&...

  • Field Details

  • Constructor Details

  • Method Details

    • createConsumer

      public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor aProcessor) throws Exception
      Throws:
      Exception
    • createProducer

      public org.apache.camel.Producer createProducer() throws Exception
      Throws:
      Exception
    • getFormat

      public String getFormat()
    • setFormat

      public void setFormat(String aFormat)
    • isXML

      public boolean isXML()
    • isPlatformServer

      public boolean isPlatformServer()
    • getUser

      public String getUser()
    • setUser

      public void setUser(String aUser)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String aPassword)
    • getObjectDomain

      public String getObjectDomain()
    • setObjectDomain

      public void setObjectDomain(String aObjectDomain)
    • getObjectName

      public String getObjectName()
    • setObjectName

      public void setObjectName(String aObjectName)
    • getServerURL

      protected String getServerURL()
    • setServerURL

      protected void setServerURL(String aServerURL)
    • getNotificationFilter

      public NotificationFilter getNotificationFilter()
    • setNotificationFilter

      public void setNotificationFilter(NotificationFilter aFilterRef)
    • getHandback

      public Object getHandback()
    • setHandback

      public void setHandback(Object aHandback)
    • getObjectProperties

      public Map<String,String> getObjectProperties()
    • setObjectProperties

      public void setObjectProperties(Map<String,String> objectProperties)
      Setter for the ObjectProperties is either called by reflection when processing the URI or manually by the component.

      If the URI contained a value with a reference like "objectProperties=#myHashtable" then the Hashtable will be set in place.

      If there are extra properties that begin with "key." then the component will create a Hashtable with these values after removing the "key." prefix.

    • getJMXObjectName

      protected ObjectName getJMXObjectName() throws MalformedObjectNameException
      Throws:
      MalformedObjectNameException
    • setJMXObjectName

      protected void setJMXObjectName(ObjectName aCachedObjectName)
    • getObservedAttribute

      public String getObservedAttribute()
    • setObservedAttribute

      public void setObservedAttribute(String aObservedAttribute)
    • getGranularityPeriod

      public long getGranularityPeriod()
    • setGranularityPeriod

      public void setGranularityPeriod(long aGranularityPeriod)
    • getMonitorType

      public String getMonitorType()
    • setMonitorType

      public void setMonitorType(String aMonitorType)
    • getInitThreshold

      public int getInitThreshold()
    • setInitThreshold

      public void setInitThreshold(int aInitThreshold)
    • getOffset

      public int getOffset()
    • setOffset

      public void setOffset(int aOffset)
    • getModulus

      public int getModulus()
    • setModulus

      public void setModulus(int aModulus)
    • isDifferenceMode

      public boolean isDifferenceMode()
    • setDifferenceMode

      public void setDifferenceMode(boolean aDifferenceMode)
    • isNotifyHigh

      public boolean isNotifyHigh()
    • setNotifyHigh

      public void setNotifyHigh(boolean aNotifyHigh)
    • isNotifyLow

      public boolean isNotifyLow()
    • setNotifyLow

      public void setNotifyLow(boolean aNotifyLow)
    • getThresholdHigh

      public Double getThresholdHigh()
    • setThresholdHigh

      public void setThresholdHigh(Double aThresholdHigh)
    • getThresholdLow

      public Double getThresholdLow()
    • setThresholdLow

      public void setThresholdLow(Double aThresholdLow)
    • isNotifyDiffer

      public boolean isNotifyDiffer()
    • setNotifyDiffer

      public void setNotifyDiffer(boolean aNotifyDiffer)
    • isNotifyMatch

      public boolean isNotifyMatch()
    • setNotifyMatch

      public void setNotifyMatch(boolean aNotifyMatch)
    • getStringToCompare

      public String getStringToCompare()
    • setStringToCompare

      public void setStringToCompare(String aStringToCompare)
    • isTestConnectionOnStartup

      public boolean isTestConnectionOnStartup()
    • setTestConnectionOnStartup

      public void setTestConnectionOnStartup(boolean testConnectionOnStartup)
    • isReconnectOnConnectionFailure

      public boolean isReconnectOnConnectionFailure()
    • setReconnectOnConnectionFailure

      public void setReconnectOnConnectionFailure(boolean reconnectOnConnectionFailure)
    • getReconnectDelay

      public int getReconnectDelay()
    • setReconnectDelay

      public void setReconnectDelay(int reconnectDelay)
    • getExecutorService

      public ExecutorService getExecutorService()
    • setExecutorService

      public void setExecutorService(ExecutorService executorService)