org.apache.camel.component.jmx
Class JMXUriBuilder

java.lang.Object
  extended by 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


Constructor Summary
JMXUriBuilder()
           
JMXUriBuilder(String aServerName)
           
 
Method Summary
protected  void addProperty(String aName, String aValue)
           
 String getServerName()
           
 void setServerName(String aServerName)
           
 String toString()
           
 JMXUriBuilder withDifferenceMode(boolean aDifferenceMode)
           
 JMXUriBuilder withFormat(String aFormat)
           
 JMXUriBuilder withGranularityPeriod(long aPeriod)
           
 JMXUriBuilder withHandback(String aHandback)
           
 JMXUriBuilder withInitThreshold(int aInitThreshold)
           
 JMXUriBuilder withModulus(int aModulus)
           
 JMXUriBuilder withMonitorType(String aMonitorType)
           
 JMXUriBuilder withNotificationFilter(String aFilter)
           
 JMXUriBuilder withNotifyDiffer(boolean aNotifyDiffer)
           
 JMXUriBuilder withNotifyHigh(boolean aNotifyHigh)
           
 JMXUriBuilder withNotifyLow(boolean aNotifyLow)
           
 JMXUriBuilder withNotifyMatch(boolean aNotifyMatch)
           
 JMXUriBuilder withObjectDomain(String aFormat)
           
 JMXUriBuilder withObjectName(String aFormat)
           
 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.
 JMXUriBuilder withObjectPropertiesReference(String aReferenceToHashtable)
          Your value should start with a hash mark since it's a reference to a value.
 JMXUriBuilder withObservedAttribute(String aObservedAttribute)
           
 JMXUriBuilder withOffset(int aOffset)
           
 JMXUriBuilder withPassword(String aFormat)
           
 JMXUriBuilder withReconnectDelay(int aReconnectDelay)
           
 JMXUriBuilder withReconnectOnConnectionFailure(boolean aReconnectOnConnectionFailure)
           
 JMXUriBuilder withServerName(String aServerName)
           
 JMXUriBuilder withStringToCompare(String aStringToCompare)
           
 JMXUriBuilder withTestConnectionOnStartup(boolean aTestConnectionOnStartup)
           
 JMXUriBuilder withThresholdHigh(Number aThresholdHigh)
           
 JMXUriBuilder withThresholdLow(Number aThresholdLow)
           
 JMXUriBuilder withUser(String aFormat)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JMXUriBuilder

public JMXUriBuilder()

JMXUriBuilder

public JMXUriBuilder(String aServerName)
Method Detail

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