Class RoutingNode

    • Method Detail

      • nodeId

        public String nodeId()
        Get the id of this node
        Returns:
        id of the node
      • size

        public int size()
      • numberOfShardsWithState

        public int numberOfShardsWithState​(ShardRoutingState... states)
        Determine the number of shards with a specific state
        Parameters:
        states - set of states which should be counted
        Returns:
        number of shards
      • shardsWithState

        public List<ShardRouting> shardsWithState​(ShardRoutingState... states)
        Determine the shards with a specific state
        Parameters:
        states - set of states which should be listed
        Returns:
        List of shards
      • shardsWithState

        public List<ShardRouting> shardsWithState​(String index,
                                                  ShardRoutingState... states)
        Determine the shards of an index with a specific state
        Parameters:
        index - id of the index
        states - set of states which should be listed
        Returns:
        a list of shards
      • numberOfOwningShards

        public int numberOfOwningShards()
        The number of shards on this node that will not be eventually relocated.
      • prettyPrint

        public String prettyPrint()
      • isEmpty

        public boolean isEmpty()