Interface StaticServiceDiscoveryMechanismCfg

    • Method Detail

      • addStaticChangeListener

        void addStaticChangeListener​(ConfigurationChangeListener<StaticServiceDiscoveryMechanismCfg> listener)
        Register to be notified when this Static Service Discovery Mechanism is changed.
        Parameters:
        listener - The Static Service Discovery Mechanism configuration change listener.
      • removeStaticChangeListener

        void removeStaticChangeListener​(ConfigurationChangeListener<StaticServiceDiscoveryMechanismCfg> listener)
        Deregister an existing Static Service Discovery Mechanism configuration change listener.
        Parameters:
        listener - The Static Service Discovery Mechanism configuration change listener.
      • getDiscoveryInterval

        long getDiscoveryInterval()
        Gets the "discovery-interval" property.

        Interval between two server configuration discovery executions.

        Specifies how frequently to read the configuration of the servers in order to discover their new information.

        Returns:
        Returns the value of the "discovery-interval" property.
      • getJavaClass

        String getJavaClass()
        Gets the "java-class" property.

        Specifies the fully-qualified name of the Java class that provides the Static Service Discovery Mechanism implementation.

        Specified by:
        getJavaClass in interface ServiceDiscoveryMechanismCfg
        Returns:
        Returns the value of the "java-class" property.
      • getPrimaryServer

        SortedSet<String> getPrimaryServer()
        Gets the "primary-server" property.

        Specifies a list of servers that will be used in preference to secondary servers when available.

        Returns:
        Returns an unmodifiable set containing the values of the "primary-server" property.
      • getSecondaryServer

        SortedSet<String> getSecondaryServer()
        Gets the "secondary-server" property.

        Specifies a list of servers that will be used in place of primary servers when all primary servers are unavailable.

        Returns:
        Returns an unmodifiable set containing the values of the "secondary-server" property.