Java Code Examples for org.apache.nifi.controller.status.ProcessGroupStatus#getProcessGroupStatus()

The following examples show how to use org.apache.nifi.controller.status.ProcessGroupStatus#getProcessGroupStatus() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StandardGangliaReporter.java    From localization_nifi with Apache License 2.0 5 votes vote down vote up
private long calculateProcessingNanos(final ProcessGroupStatus status) {
    long nanos = 0L;

    for (final ProcessorStatus procStats : status.getProcessorStatus()) {
        nanos += procStats.getProcessingNanos();
    }

    for (final ProcessGroupStatus childGroupStatus : status.getProcessGroupStatus()) {
        nanos += calculateProcessingNanos(childGroupStatus);
    }

    return nanos;
}
 
Example 2
Source File: FlowMetricSet.java    From nifi with Apache License 2.0 5 votes vote down vote up
/**
 * Calculate the total processing time of a process group.
 *
 * @param status the current process group status.
 * @return the total amount of nanoseconds spent in each processor in the process group.
 */
private long calculateProcessingNanos(final ProcessGroupStatus status) {
    long nanos = 0L;

    for (final ProcessorStatus procStats : status.getProcessorStatus()) {
        nanos += procStats.getProcessingNanos();
    }

    for (final ProcessGroupStatus childGroupStatus : status.getProcessGroupStatus()) {
        nanos += calculateProcessingNanos(childGroupStatus);
    }

    return nanos;
}
 
Example 3
Source File: StandardGangliaReporter.java    From nifi with Apache License 2.0 5 votes vote down vote up
private long calculateProcessingNanos(final ProcessGroupStatus status) {
    long nanos = 0L;

    for (final ProcessorStatus procStats : status.getProcessorStatus()) {
        nanos += procStats.getProcessingNanos();
    }

    for (final ProcessGroupStatus childGroupStatus : status.getProcessGroupStatus()) {
        nanos += calculateProcessingNanos(childGroupStatus);
    }

    return nanos;
}
 
Example 4
Source File: MetricsService.java    From nifi with Apache License 2.0 5 votes vote down vote up
protected long calculateProcessingNanos(final ProcessGroupStatus status) {
    long nanos = 0L;

    for (final ProcessorStatus procStats : status.getProcessorStatus()) {
        nanos += procStats.getProcessingNanos();
    }

    for (final ProcessGroupStatus childGroupStatus : status.getProcessGroupStatus()) {
        nanos += calculateProcessingNanos(childGroupStatus);
    }

    return nanos;
}
 
Example 5
Source File: MetricsService.java    From localization_nifi with Apache License 2.0 5 votes vote down vote up
protected long calculateProcessingNanos(final ProcessGroupStatus status) {
    long nanos = 0L;

    for (final ProcessorStatus procStats : status.getProcessorStatus()) {
        nanos += procStats.getProcessingNanos();
    }

    for (final ProcessGroupStatus childGroupStatus : status.getProcessGroupStatus()) {
        nanos += calculateProcessingNanos(childGroupStatus);
    }

    return nanos;
}
 
Example 6
Source File: MetricsService.java    From nifi-prometheus-reporter with Apache License 2.0 5 votes vote down vote up
protected long calculateProcessingNanos(final ProcessGroupStatus status) {
    long nanos = 0L;

    for (final ProcessorStatus procStats : status.getProcessorStatus()) {
        nanos += procStats.getProcessingNanos();
    }

    for (final ProcessGroupStatus childGroupStatus : status.getProcessGroupStatus()) {
        nanos += calculateProcessingNanos(childGroupStatus);
    }

    return nanos;
}
 
Example 7
Source File: AzureLogAnalyticsMetricsFactory.java    From nifi with Apache License 2.0 5 votes vote down vote up
static long calculateProcessingNanos(final ProcessGroupStatus status) {
    long nanos = 0L;

    for (final ProcessorStatus procStats : status.getProcessorStatus()) {
        nanos += procStats.getProcessingNanos();
    }

    for (final ProcessGroupStatus childGroupStatus : status.getProcessGroupStatus()) {
        nanos += calculateProcessingNanos(childGroupStatus);
    }

    return nanos;
}
 
Example 8
Source File: AzureLogAnalyticsReportingTask.java    From nifi with Apache License 2.0 5 votes vote down vote up
private void populateConnectionStatuses(final ProcessGroupStatus groupStatus,
        final List<ConnectionStatus> statuses) {
    statuses.addAll(groupStatus.getConnectionStatus());
    for (final ProcessGroupStatus childGroupStatus : groupStatus.getProcessGroupStatus()) {
        populateConnectionStatuses(childGroupStatus, statuses);
    }
}
 
Example 9
Source File: DataDogReportingTask.java    From nifi with Apache License 2.0 4 votes vote down vote up
private void populateProcessorStatuses(final ProcessGroupStatus groupStatus, final List<ProcessorStatus> statuses) {
    statuses.addAll(groupStatus.getProcessorStatus());
    for (final ProcessGroupStatus childGroupStatus : groupStatus.getProcessGroupStatus()) {
        populateProcessorStatuses(childGroupStatus, statuses);
    }
}
 
Example 10
Source File: ControllerStatusReportingTask.java    From nifi with Apache License 2.0 4 votes vote down vote up
private void populateProcessorStatuses(final ProcessGroupStatus groupStatus, final List<ProcessorStatus> statuses) {
    statuses.addAll(groupStatus.getProcessorStatus());
    for (final ProcessGroupStatus childGroupStatus : groupStatus.getProcessGroupStatus()) {
        populateProcessorStatuses(childGroupStatus, statuses);
    }
}
 
Example 11
Source File: ControllerStatusReportingTask.java    From nifi with Apache License 2.0 4 votes vote down vote up
private void populateConnectionStatuses(final ProcessGroupStatus groupStatus, final List<ConnectionStatus> statuses) {
    statuses.addAll(groupStatus.getConnectionStatus());
    for (final ProcessGroupStatus childGroupStatus : groupStatus.getProcessGroupStatus()) {
        populateConnectionStatuses(childGroupStatus, statuses);
    }
}
 
Example 12
Source File: DataDogReportingTask.java    From nifi with Apache License 2.0 4 votes vote down vote up
private void populateInputPortStatuses(final ProcessGroupStatus groupStatus, final List<PortStatus> statuses) {
    statuses.addAll(groupStatus.getInputPortStatus());
    for (final ProcessGroupStatus childGroupStatus : groupStatus.getProcessGroupStatus()) {
        populateInputPortStatuses(childGroupStatus, statuses);
    }
}
 
Example 13
Source File: AzureLogAnalyticsReportingTask.java    From nifi with Apache License 2.0 4 votes vote down vote up
private void populateProcessorStatuses(final ProcessGroupStatus groupStatus, final List<ProcessorStatus> statuses) {
    statuses.addAll(groupStatus.getProcessorStatus());
    for (final ProcessGroupStatus childGroupStatus : groupStatus.getProcessGroupStatus()) {
        populateProcessorStatuses(childGroupStatus, statuses);
    }
}
 
Example 14
Source File: DataDogReportingTask.java    From localization_nifi with Apache License 2.0 4 votes vote down vote up
private void populateOutputPortStatuses(final ProcessGroupStatus groupStatus, final List<PortStatus> statuses) {
    statuses.addAll(groupStatus.getOutputPortStatus());
    for (final ProcessGroupStatus childGroupStatus : groupStatus.getProcessGroupStatus()) {
        populateOutputPortStatuses(childGroupStatus, statuses);
    }
}
 
Example 15
Source File: DataDogReportingTask.java    From nifi with Apache License 2.0 4 votes vote down vote up
private void populateConnectionStatuses(final ProcessGroupStatus groupStatus, final List<ConnectionStatus> statuses) {
    statuses.addAll(groupStatus.getConnectionStatus());
    for (final ProcessGroupStatus childGroupStatus : groupStatus.getProcessGroupStatus()) {
        populateConnectionStatuses(childGroupStatus, statuses);
    }
}
 
Example 16
Source File: DataDogReportingTask.java    From localization_nifi with Apache License 2.0 4 votes vote down vote up
private void populateConnectionStatuses(final ProcessGroupStatus groupStatus, final List<ConnectionStatus> statuses) {
    statuses.addAll(groupStatus.getConnectionStatus());
    for (final ProcessGroupStatus childGroupStatus : groupStatus.getProcessGroupStatus()) {
        populateConnectionStatuses(childGroupStatus, statuses);
    }
}
 
Example 17
Source File: DataDogReportingTask.java    From localization_nifi with Apache License 2.0 4 votes vote down vote up
private void populateProcessorStatuses(final ProcessGroupStatus groupStatus, final List<ProcessorStatus> statuses) {
    statuses.addAll(groupStatus.getProcessorStatus());
    for (final ProcessGroupStatus childGroupStatus : groupStatus.getProcessGroupStatus()) {
        populateProcessorStatuses(childGroupStatus, statuses);
    }
}
 
Example 18
Source File: DataDogReportingTask.java    From nifi with Apache License 2.0 4 votes vote down vote up
private void populateOutputPortStatuses(final ProcessGroupStatus groupStatus, final List<PortStatus> statuses) {
    statuses.addAll(groupStatus.getOutputPortStatus());
    for (final ProcessGroupStatus childGroupStatus : groupStatus.getProcessGroupStatus()) {
        populateOutputPortStatuses(childGroupStatus, statuses);
    }
}
 
Example 19
Source File: ControllerStatusReportingTask.java    From localization_nifi with Apache License 2.0 4 votes vote down vote up
private void populateProcessorStatuses(final ProcessGroupStatus groupStatus, final List<ProcessorStatus> statuses) {
    statuses.addAll(groupStatus.getProcessorStatus());
    for (final ProcessGroupStatus childGroupStatus : groupStatus.getProcessGroupStatus()) {
        populateProcessorStatuses(childGroupStatus, statuses);
    }
}
 
Example 20
Source File: ControllerStatusReportingTask.java    From localization_nifi with Apache License 2.0 4 votes vote down vote up
private void populateConnectionStatuses(final ProcessGroupStatus groupStatus, final List<ConnectionStatus> statuses) {
    statuses.addAll(groupStatus.getConnectionStatus());
    for (final ProcessGroupStatus childGroupStatus : groupStatus.getProcessGroupStatus()) {
        populateConnectionStatuses(childGroupStatus, statuses);
    }
}