org.apache.camel.component.jmx
Class JMXUriBuilder
java.lang.Object
org.apache.camel.component.jmx.JMXUriBuilder
public class JMXUriBuilder
- extends Object
Builder for JMX endpoint URI's. Saves you from having to do the string concat'ing
and messing up the param names
JMXUriBuilder
public JMXUriBuilder()
JMXUriBuilder
public JMXUriBuilder(String aServerName)
withFormat
public JMXUriBuilder withFormat(String aFormat)
withUser
public JMXUriBuilder withUser(String aFormat)
withPassword
public JMXUriBuilder withPassword(String aFormat)
withObjectDomain
public JMXUriBuilder withObjectDomain(String aFormat)
withObjectName
public JMXUriBuilder withObjectName(String aFormat)
withNotificationFilter
public JMXUriBuilder withNotificationFilter(String aFilter)
withHandback
public JMXUriBuilder withHandback(String aHandback)
withMonitorType
public JMXUriBuilder withMonitorType(String aMonitorType)
withInitThreshold
public JMXUriBuilder withInitThreshold(int aInitThreshold)
withOffset
public JMXUriBuilder withOffset(int aOffset)
withModulus
public JMXUriBuilder withModulus(int aModulus)
withDifferenceMode
public JMXUriBuilder withDifferenceMode(boolean aDifferenceMode)
withGranularityPeriod
public JMXUriBuilder withGranularityPeriod(long aPeriod)
withObservedAttribute
public JMXUriBuilder withObservedAttribute(String aObservedAttribute)
withNotifyHigh
public JMXUriBuilder withNotifyHigh(boolean aNotifyHigh)
withNotifyLow
public JMXUriBuilder withNotifyLow(boolean aNotifyLow)
withThresholdHigh
public JMXUriBuilder withThresholdHigh(Number aThresholdHigh)
withThresholdLow
public JMXUriBuilder withThresholdLow(Number aThresholdLow)
withNotifyDiffer
public JMXUriBuilder withNotifyDiffer(boolean aNotifyDiffer)
withNotifyMatch
public JMXUriBuilder withNotifyMatch(boolean aNotifyMatch)
withStringToCompare
public JMXUriBuilder withStringToCompare(String aStringToCompare)
withTestConnectionOnStartup
public JMXUriBuilder withTestConnectionOnStartup(boolean aTestConnectionOnStartup)
withReconnectOnConnectionFailure
public JMXUriBuilder withReconnectOnConnectionFailure(boolean aReconnectOnConnectionFailure)
withReconnectDelay
public JMXUriBuilder withReconnectDelay(int aReconnectDelay)
withObjectProperties
public JMXUriBuilder withObjectProperties(Map<String,String> aPropertiesSansKeyPrefix)
- Converts all of the values to params with the "key." prefix so the
component will pick up on them and set them on the endpoint. Alternatively,
you can pass in a reference to a Hashtable using the version of this
method that takes a single string.
withObjectPropertiesReference
public JMXUriBuilder withObjectPropertiesReference(String aReferenceToHashtable)
- Your value should start with a hash mark since it's a reference to a value.
This method will add the hash mark if it's not present.
addProperty
protected void addProperty(String aName,
String aValue)
getServerName
public String getServerName()
setServerName
public void setServerName(String aServerName)
withServerName
public JMXUriBuilder withServerName(String aServerName)
toString
public String toString()
- Overrides:
toString
in class Object
Apache Camel