Class GridNodePredicate

    • Constructor Detail

      • GridNodePredicate

        public GridNodePredicate​(Set<UUID> ids)
        Creates node predicate that evaluates to true for all provided node IDs. Implementation will not make a defensive copy.
        Parameters:
        ids - Optional node IDs. If none provided - predicate will always return false.
      • GridNodePredicate

        public GridNodePredicate​(@Nullable
                                 @Nullable Collection<UUID> ids)
        Creates node predicate that evaluates to true for all provided node IDs. Implementation will make a defensive copy.
        Parameters:
        ids - Optional node IDs. If none provided - predicate will always return false.
      • GridNodePredicate

        public GridNodePredicate​(@Nullable
                                 @Nullable UUID... ids)
        Creates node predicate that evaluates to true for all provided node IDs. Implementation will make a defensive copy.
        Parameters:
        ids - Optional node IDs. If none provided - predicate will always return false.
      • GridNodePredicate

        public GridNodePredicate​(@Nullable
                                 @Nullable ClusterNode... nodes)
        Creates node predicate that evaluates to true for all provided nodes. Implementation will make a defensive copy.
        Parameters:
        nodes - Optional grid nodes. If none provided - predicate will always return false.
    • Method Detail

      • nodeIds

        public Set<UUID> nodeIds()
        Gets set of node IDs this predicate is based on. Note that for performance reasons this methods return the internal set that should not be modified by the caller.
        Returns:
        Set of node IDs this predicate is based on.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object