Class ConnectionEntityMerger

java.lang.Object
org.apache.nifi.cluster.manager.ConnectionEntityMerger
All Implemented Interfaces:
ComponentEntityMerger<ConnectionEntity>, ComponentEntityStatusMerger<ConnectionStatusDTO>

public class ConnectionEntityMerger extends Object implements ComponentEntityMerger<ConnectionEntity>, ComponentEntityStatusMerger<ConnectionStatusDTO>
  • Constructor Details

    • ConnectionEntityMerger

      public ConnectionEntityMerger()
  • Method Details

    • merge

      public void merge(ConnectionEntity clientEntity, Map<NodeIdentifier,ConnectionEntity> entityMap)
      Description copied from interface: ComponentEntityMerger
      Merges the ComponentEntity responses according to their PermissionsDTOs. Responsible for invoking
      invalid reference
      ComponentEntityMerger#mergeComponents(EntityType, Map)
      .
      Specified by:
      merge in interface ComponentEntityMerger<ConnectionEntity>
      Parameters:
      clientEntity - the entity being returned to the client
      entityMap - all node responses
    • mergeStatus

      public void mergeStatus(ConnectionStatusDTO clientStatus, boolean clientStatusReadablePermission, ConnectionStatusDTO status, boolean statusReadablePermission, NodeIdentifier statusNodeIdentifier)
      Description copied from interface: ComponentEntityStatusMerger
      Merges status into clientStatus based on the given permissions.
      Specified by:
      mergeStatus in interface ComponentEntityStatusMerger<ConnectionStatusDTO>
      Parameters:
      clientStatus - The status that will be returned to the client after merging
      clientStatusReadablePermission - The read permission of the status that will be returned to the client after merging
      status - The status to be merged into the client status
      statusReadablePermission - The read permission of the status to be merged into the client status
      statusNodeIdentifier - The NodeIdentifier of the node from which status was received