Interface TcpFailureDetectorMBean

  • All Known Implementing Classes:
    TcpFailureDetector

    public interface TcpFailureDetectorMBean
    MBean interface for managing the TcpFailureDetector interceptor.
    • Method Detail

      • getOptionFlag

        int getOptionFlag()
        Returns the socket option flag used for member checks.
        Returns:
        the option flag
      • getConnectTimeout

        long getConnectTimeout()
        Returns the connection timeout in milliseconds.
        Returns:
        the connection timeout
      • getPerformSendTest

        boolean getPerformSendTest()
        Returns whether send tests are performed.
        Returns:
        true if send tests are enabled
      • getPerformReadTest

        boolean getPerformReadTest()
        Returns whether read tests are performed.
        Returns:
        true if read tests are enabled
      • getReadTestTimeout

        long getReadTestTimeout()
        Returns the read test timeout in milliseconds.
        Returns:
        the read test timeout
      • getRemoveSuspectsTimeout

        int getRemoveSuspectsTimeout()
        Returns the timeout for removing suspects.
        Returns:
        the remove suspects timeout
      • setPerformReadTest

        void setPerformReadTest​(boolean performReadTest)
        Sets whether read tests should be performed.
        Parameters:
        performReadTest - true to enable read tests
      • setPerformSendTest

        void setPerformSendTest​(boolean performSendTest)
        Sets whether send tests should be performed.
        Parameters:
        performSendTest - true to enable send tests
      • setReadTestTimeout

        void setReadTestTimeout​(long readTestTimeout)
        Sets the read test timeout in milliseconds.
        Parameters:
        readTestTimeout - the timeout value
      • setConnectTimeout

        void setConnectTimeout​(long connectTimeout)
        Sets the connection timeout in milliseconds.
        Parameters:
        connectTimeout - the timeout value
      • setRemoveSuspectsTimeout

        void setRemoveSuspectsTimeout​(int removeSuspectsTimeout)
        Sets the timeout for removing suspects.
        Parameters:
        removeSuspectsTimeout - the timeout value
      • checkMembers

        void checkMembers​(boolean checkAll)
        Checks the status of cluster members.
        Parameters:
        checkAll - true to check all members, false to check only suspects