Interface ISmartDataDistributionMastership


  • public interface ISmartDataDistributionMastership
    Interface to manage undrlying mastersip manager
    • Method Detail

      • SetParameter

        void SetParameter​(java.lang.String paramName,
                          java.lang.String paramValue)
        Set mastership parameter
        Parameters:
        paramName - Parameter to set
        paramValue - Value to set
      • GetParameter

        java.lang.String GetParameter​(java.lang.String paramName)
        Get mastership parameter
        Parameters:
        paramName - Parameter to get
        Returns:
        Parameter value
      • ChangeState

        void ChangeState​(long instanceId,
                         DDM_INSTANCE_STATE newState)
        Change the state of the instance with instanceId
        Parameters:
        instanceId - Instance to change state
        newState - Expected DDM_INSTANCE_STATE state
      • RequestIAmNextPrimary

        boolean RequestIAmNextPrimary()
        Request to be the next primary server
        Returns:
        True in case of success
      • getIamNextPrimary

        boolean getIamNextPrimary()
        Verify if this server will be elected as next primary
        Returns:
        True if this server is the next primary
      • getLocalServerId

        long getLocalServerId()
        Get my server identifier
        Returns:
        local identifier
      • getPrimaryServerId

        long getPrimaryServerId()
        Gets identifier of the primary server
        Returns:
        primary identifier
      • getMessageDelay

        long getMessageDelay()
        Gets actual message delay in the cluster
        Returns:
        message delay in the cluster
      • getUpTime

        long getUpTime()
        Gets this instance uptime
        Returns:
        the uptime