Class 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 Detail

      • JMXUriBuilder

        public JMXUriBuilder()
      • JMXUriBuilder

        public JMXUriBuilder​(String aServerName)
    • Method Detail

      • withInitThreshold

        public JMXUriBuilder withInitThreshold​(int aInitThreshold)
      • 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)
      • withNotifyDiffer

        public JMXUriBuilder withNotifyDiffer​(boolean aNotifyDiffer)
      • withNotifyMatch

        public JMXUriBuilder withNotifyMatch​(boolean aNotifyMatch)
      • 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)