Interface ShardAllocatorManager

  • All Known Implementing Classes:
    ShardAllocationManagerImpl

    public interface ShardAllocatorManager
    ShardAllocatorManager is responsible for the mapping between index shards and Infinispan segments for all indexes in a cache.
    Since:
    9.0
    • Method Detail

      • getShardFromSegment

        String getShardFromSegment​(int segment)
        Returns:
        the shard name for a certain segment.
      • getShards

        Set<String> getShards()
        Returns:
        the list of all shards available.
      • getShardsForModification

        Set<String> getShardsForModification​(Address address)
        Returns:
        the list of shards used to do modifications to the index for a given address.
      • getOwner

        Address getOwner​(String shardId)
        Returns:
        Owner of an index shard.
      • initialize

        void initialize​(int numberOfShards,
                        int numSegments)
        Initializes the ShardAllocatorManager with the configured number of segments and shards.