com.hazelcast.spi.discovery

## Interface NodeFilter

-     public interface NodeFilter

  The NodeFilter, if supplied, will retrieve all discovered nodes and might apply additional filtering based on vendor provided metadata. These metadata are expected to be provided using the `DiscoveryNode.getProperties()` method and may contain additional information initially setup by the user.

  This is useful for additional security settings, to apply a certain type of policy or to work around insufficient query languages of cloud providers.

  Denied `DiscoveryNode`s will not be handed over to the Hazelcast connection framework and therefore are not known to the discovered.
  Since:
    3.6

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `test(DiscoveryNode candidate)` Accepts or denies a `DiscoveryNode` based on the implemented rules.

- - ### Method Detail

    - #### test

          boolean test(DiscoveryNode candidate)

      Accepts or denies a `DiscoveryNode` based on the implemented rules.
      Parameters:
        `candidate` - the candidate to be tested
      Returns:
        true if the DiscoveryNode is selected to be discovered, otherwise false.

Copyright © 2019. All rights reserved.