- All Known Implementing Classes:
StandaloneNodeTypeProvider
public interface NodeTypeProvider
This interface provides a set of methods for checking NiFi node type.
-
Method Summary
Modifier and TypeMethodDescriptionbooleandefault booleandefault booleanboolean
-
Method Details
-
isClustered
boolean isClustered()- Returns:
- true if this instance is clustered, false otherwise.MockProcessContext Clustered means that a node is either connected or trying to connect to the cluster.
-
isConfiguredForClustering
default boolean isConfiguredForClustering()- Returns:
- true if the expected state of clustering is true, false otherwise. Contrary to {
isClustered()} this does not dynamically change with the state of this node.
-
isConnected
default boolean isConnected()- Returns:
- true if this instances is clustered and connected to the cluster.
-
isPrimary
boolean isPrimary()- Returns:
- true if this instance is the primary node in the cluster; false otherwise
-
getCurrentNode
- Returns:
- Returns with the hostname of the current node, if clustered. For For a standalone NiFi this returns an empty instead.
-
getClusterMembers
- Returns:
- Names/IP addresses of all expected hosts in the cluster (including the current one). For a standalone NiFi this returns an empty set instead.
-