Class MulticastDiscoveryAgent

    • Constructor Detail

      • MulticastDiscoveryAgent

        public MulticastDiscoveryAgent()
    • Method Detail

      • isLoopBackMode

        public boolean isLoopBackMode()
        Returns:
        Returns the loopBackMode.
      • setLoopBackMode

        public void setLoopBackMode​(boolean loopBackMode)
        Parameters:
        loopBackMode - The loopBackMode to set.
      • getTimeToLive

        public int getTimeToLive()
        Returns:
        Returns the timeToLive.
      • setTimeToLive

        public void setTimeToLive​(int timeToLive)
        Parameters:
        timeToLive - The timeToLive to set.
      • getDiscoveryURI

        public URI getDiscoveryURI()
        Returns:
        the discoveryURI
      • setDiscoveryURI

        public void setDiscoveryURI​(URI discoveryURI)
        Set the discoveryURI
        Parameters:
        discoveryURI -
      • getKeepAliveInterval

        public long getKeepAliveInterval()
      • setKeepAliveInterval

        public void setKeepAliveInterval​(long keepAliveInterval)
      • setInterface

        public void setInterface​(String mcInterface)
      • setNetworkInterface

        public void setNetworkInterface​(String mcNetworkInterface)
      • setJoinNetworkInterface

        public void setJoinNetworkInterface​(String mcJoinNetwrokInterface)
      • getType

        public String getType()
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • serviceFailed

        public void serviceFailed​(DiscoveryEvent event)
                           throws IOException
        Description copied from interface: DiscoveryAgent
        A process actively using a service may see it go down before the DiscoveryAgent notices the service's failure. That process can use this method to notify the DiscoveryAgent of the failure so that other listeners of this DiscoveryAgent can also be made aware of the failure.
        Specified by:
        serviceFailed in interface DiscoveryAgent
        Throws:
        IOException
      • getBackOffMultiplier

        public long getBackOffMultiplier()
      • setBackOffMultiplier

        public void setBackOffMultiplier​(long backOffMultiplier)
      • getInitialReconnectDelay

        public long getInitialReconnectDelay()
      • setInitialReconnectDelay

        public void setInitialReconnectDelay​(long initialReconnectDelay)
      • getMaxReconnectAttempts

        public int getMaxReconnectAttempts()
      • setMaxReconnectAttempts

        public void setMaxReconnectAttempts​(int maxReconnectAttempts)
      • getMaxReconnectDelay

        public long getMaxReconnectDelay()
      • setMaxReconnectDelay

        public void setMaxReconnectDelay​(long maxReconnectDelay)
      • isUseExponentialBackOff

        public boolean isUseExponentialBackOff()
      • setUseExponentialBackOff

        public void setUseExponentialBackOff​(boolean useExponentialBackOff)
      • setGroup

        public void setGroup​(String group)