Package org.apache.nifi.cluster.manager
Class ProcessorDiagnosticsEntityMerger
java.lang.Object
org.apache.nifi.cluster.manager.ProcessorDiagnosticsEntityMerger
- All Implemented Interfaces:
ComponentEntityMerger<ProcessorDiagnosticsEntity>
public class ProcessorDiagnosticsEntityMerger
extends Object
implements ComponentEntityMerger<ProcessorDiagnosticsEntity>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
mergeComponents
(ProcessorDiagnosticsEntity clientEntity, Map<NodeIdentifier, ProcessorDiagnosticsEntity> entityMap) Performs the merging of the entities.private void
mergeConnectionDiagnostics
(ProcessorDiagnosticsEntity clientEntity, Map<NodeIdentifier, ProcessorDiagnosticsEntity> entityMap, Function<ProcessorDiagnosticsEntity, Set<ConnectionDiagnosticsDTO>> extractConnections) private ConnectionDiagnosticsSnapshotDTO
private RemoteQueuePartitionDTO
mergeRemoteQueuePartitions
(List<RemoteQueuePartitionDTO> partitions) 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
merge
-
Field Details
-
componentStatusSnapshotMillis
private final long componentStatusSnapshotMillis
-
-
Constructor Details
-
ProcessorDiagnosticsEntityMerger
public ProcessorDiagnosticsEntityMerger(long componentStatusSnapshotMillis)
-
-
Method Details
-
mergeComponents
public void mergeComponents(ProcessorDiagnosticsEntity clientEntity, Map<NodeIdentifier, ProcessorDiagnosticsEntity> entityMap) Description copied from interface:ComponentEntityMerger
Performs the merging of the entities. This method should not be called directly, it will be called byComponentEntityMerger.merge(EntityType, java.util.Map<org.apache.nifi.cluster.protocol.NodeIdentifier, EntityType>)
.- Specified by:
mergeComponents
in interfaceComponentEntityMerger<ProcessorDiagnosticsEntity>
- Parameters:
clientEntity
- the entity being returned to the cliententityMap
- all node responses
-
mergeConnectionDiagnostics
private void mergeConnectionDiagnostics(ProcessorDiagnosticsEntity clientEntity, Map<NodeIdentifier, ProcessorDiagnosticsEntity> entityMap, Function<ProcessorDiagnosticsEntity, Set<ConnectionDiagnosticsDTO>> extractConnections) -
mergeConnectionSnapshots
private ConnectionDiagnosticsSnapshotDTO mergeConnectionSnapshots(List<ConnectionDiagnosticsSnapshotDTO> snapshots) -
mergeRemoteQueuePartitions
private RemoteQueuePartitionDTO mergeRemoteQueuePartitions(List<RemoteQueuePartitionDTO> partitions)
-