Interface RedisClusterNode

    • Method Detail

      • clusterInfo

        <,​> clusterInfo()
        Returns cluster information reported by this Redis node
        Returns:
        cluster information
      • clusterId

         clusterId()
        Returns id of this Redis node
        Returns:
        Redis node Id
      • clusterAddSlots

        void clusterAddSlots​(int... slots)
        Adds slots to this Redis node
        Parameters:
        slots - slots to add
      • clusterReplicate

        void clusterReplicate​( nodeId)
        Reconfigures this Redis node as replica of Redis node by defined id.
        Parameters:
        nodeId - Redis node Id
      • clusterForget

        void clusterForget​( nodeId)
        Removes Redis node by defined id from Cluster
        Parameters:
        nodeId -
      • clusterDeleteSlots

        void clusterDeleteSlots​(int... slots)
        Removes slots from this Redis node
        Parameters:
        slots - slots to remove
      • clusterCountKeysInSlot

        long clusterCountKeysInSlot​(int slot)
        Counts keys in defined slot
        Parameters:
        slot - slot
        Returns:
        keys amount
      • clusterGetKeysInSlot

        <> clusterGetKeysInSlot​(int slot,
                                          int count)
        Returns keys in defines slot limited by count
        Parameters:
        slot - slot
        count - limits keys amount
        Returns:
        keys
      • clusterSetSlot

        void clusterSetSlot​(int slot,
                            SetSlotCommand command)
        Sets slot to this Redis node according to defined command
        Parameters:
        slot - slot
        command - slot command
      • clusterSetSlot

        void clusterSetSlot​(int slot,
                            SetSlotCommand command,
                             nodeId)
        Sets slot to this Redis node according to defined command
        Parameters:
        slot - slot
        command - slot command
        nodeId - Redis node id
      • clusterMeet

        void clusterMeet​( address)
        Joins Redis node by the defined address to Cluster

        Address example: redis://127.0.0.1:9233

        Parameters:
        address - Redis node address
      • clusterCountFailureReports

        long clusterCountFailureReports​( nodeId)
        Returns number of failure reports for Redis node by defined id
        Parameters:
        nodeId - Redis node id
        Returns:
        amount of failure reports
      • clusterFlushSlots

        void clusterFlushSlots()
        Removes all slots from this Redis node
      • clusterSlots

        <<>> clusterSlots()
        Return Redis Cluster slots mapped to Redis nodes
        Returns:
        slots mapping