Package org.apache.nifi.cluster.manager
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
merge
(ConnectionEntity clientEntity, Map<NodeIdentifier, ConnectionEntity> entityMap) Merges the ComponentEntity responses according to theirPermissionsDTO
s.void
mergeStatus
(ConnectionStatusDTO clientStatus, boolean clientStatusReadablePermission, ConnectionStatusDTO status, boolean statusReadablePermission, NodeIdentifier statusNodeIdentifier) Merges status into clientStatus based on the given permissions.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.nifi.cluster.manager.ComponentEntityMerger
mergeComponents
-
Constructor Details
-
ConnectionEntityMerger
public ConnectionEntityMerger()
-
-
Method Details
-
merge
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<ConnectionEntity>
- Parameters:
clientEntity
- the entity being returned to the cliententityMap
- 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 interfaceComponentEntityStatusMerger<ConnectionStatusDTO>
- Parameters:
clientStatus
- The status that will be returned to the client after mergingclientStatusReadablePermission
- The read permission of the status that will be returned to the client after mergingstatus
- The status to be merged into the client statusstatusReadablePermission
- The read permission of the status to be merged into the client statusstatusNodeIdentifier
- TheNodeIdentifier
of the node from which status was received
-