Package org.apache.nifi.cluster.manager
Class ControllerServiceEntityMerger
java.lang.Object
org.apache.nifi.cluster.manager.ControllerServiceEntityMerger
- All Implemented Interfaces:
ComponentEntityMerger<ControllerServiceEntity>
public class ControllerServiceEntityMerger
extends Object
implements ComponentEntityMerger<ControllerServiceEntity>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
merge
(ControllerServiceEntity clientEntity, Map<NodeIdentifier, ControllerServiceEntity> entityMap) Merges the ComponentEntity responses according to theirPermissionsDTO
s.void
mergeComponents
(ControllerServiceEntity clientEntity, Map<NodeIdentifier, ControllerServiceEntity> entityMap) Merges the ControllerServiceEntity responses.static void
mergeControllerServiceReferences
(Set<ControllerServiceReferencingComponentEntity> referencingComponents, Map<NodeIdentifier, Set<ControllerServiceReferencingComponentEntity>> referencingComponentMap) private static void
mergeControllerServiceReferencingComponent
(ControllerServiceReferencingComponentEntity clientEntity, Map<NodeIdentifier, ControllerServiceReferencingComponentEntity> nodeEntities) private static void
mergeDtos
(ControllerServiceDTO clientDto, Map<NodeIdentifier, ControllerServiceDTO> dtoMap) private static void
mergePermissions
(Map<String, PermissionsDTO> permissionsHolder, ControllerServiceReferencingComponentEntity nodeReferencingComponentEntity, PermissionsDTO permissions)
-
Constructor Details
-
ControllerServiceEntityMerger
public ControllerServiceEntityMerger()
-
-
Method Details
-
merge
public void merge(ControllerServiceEntity clientEntity, Map<NodeIdentifier, ControllerServiceEntity> entityMap) Description copied from interface:ComponentEntityMerger
Merges the ComponentEntity responses according to theirPermissionsDTO
s. Responsible for invokinginvalid reference
ComponentEntityMerger#mergeComponents(EntityType, Map)
- Specified by:
merge
in interfaceComponentEntityMerger<ControllerServiceEntity>
- Parameters:
clientEntity
- the entity being returned to the cliententityMap
- all node responses
-
mergeComponents
public void mergeComponents(ControllerServiceEntity clientEntity, Map<NodeIdentifier, ControllerServiceEntity> entityMap) Merges the ControllerServiceEntity responses.- Specified by:
mergeComponents
in interfaceComponentEntityMerger<ControllerServiceEntity>
- Parameters:
clientEntity
- the entity being returned to the cliententityMap
- all node responses
-
mergeDtos
private static void mergeDtos(ControllerServiceDTO clientDto, Map<NodeIdentifier, ControllerServiceDTO> dtoMap) -
mergeControllerServiceReferences
public static void mergeControllerServiceReferences(Set<ControllerServiceReferencingComponentEntity> referencingComponents, Map<NodeIdentifier, Set<ControllerServiceReferencingComponentEntity>> referencingComponentMap) -
mergePermissions
private static void mergePermissions(Map<String, PermissionsDTO> permissionsHolder, ControllerServiceReferencingComponentEntity nodeReferencingComponentEntity, PermissionsDTO permissions) -
mergeControllerServiceReferencingComponent
private static void mergeControllerServiceReferencingComponent(ControllerServiceReferencingComponentEntity clientEntity, Map<NodeIdentifier, ControllerServiceReferencingComponentEntity> nodeEntities)
-