Class DomainBaseThrottleConfiguration

    • Constructor Detail

      • DomainBaseThrottleConfiguration

        public DomainBaseThrottleConfiguration()
    • Method Detail

      • getCallerConfiguration

        public CallerConfiguration getCallerConfiguration​(String ID)
        To get a DomainBaseCallerConfiguration - if a configuration for given key found ,it returns , other wise , the default configuration will return.
        Specified by:
        getCallerConfiguration in interface ThrottleConfiguration
        Parameters:
        ID - - The Remote caller id (domain name)
        Returns:
        Returns the corresponding configuration for the caller with given ID
      • getConfigurationKeyOfCaller

        public String getConfigurationKeyOfCaller​(String callerID)
        To get key for caller configuration if there is a configuration with callerID , it returns otherwise , on the first the ID contains one or more "." ,then recursively try to find the nearest root callerID. else if the ID doesn't contains ".", try to find a key with *.{ID} . Note : For valid ID , it should contain only zero or more "*." as a prefix. example: (if ID is a.a.a), check pattern *.a.a and a.a then *.*.a or *.a or a ) if ID a then check start with *.a
        Specified by:
        getConfigurationKeyOfCaller in interface ThrottleConfiguration
        Parameters:
        callerID - The id of the remote caller (callerID name)
        Returns:
        String value -String representation of corrected epr-key for get configuration
      • main

        public static void main​(String[] args)