Search in sources :

Example 1 with EnvironmentalPerformanceInformationType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.EnvironmentalPerformanceInformationType in project midpoint by Evolveum.

the class ProvisioningStatisticsLineDto method extractFromOperationalInformation.

public static List<ProvisioningStatisticsLineDto> extractFromOperationalInformation(EnvironmentalPerformanceInformation environmentalPerformanceInformation) {
    EnvironmentalPerformanceInformationType environmentalPerformanceInformationType = environmentalPerformanceInformation.getAggregatedValue();
    ProvisioningStatisticsType provisioningStatisticsType = environmentalPerformanceInformationType.getProvisioningStatistics();
    return extractFromOperationalInformation(provisioningStatisticsType);
}
Also used : ProvisioningStatisticsType(com.evolveum.midpoint.xml.ns._public.common.common_3.ProvisioningStatisticsType) EnvironmentalPerformanceInformationType(com.evolveum.midpoint.xml.ns._public.common.common_3.EnvironmentalPerformanceInformationType)

Example 2 with EnvironmentalPerformanceInformationType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.EnvironmentalPerformanceInformationType in project midpoint by Evolveum.

the class StatisticsDtoModel method getStatisticsFromTaskType.

protected StatisticsDto getStatisticsFromTaskType(TaskType task) {
    OperationStatsType operationStats = task.getOperationStats();
    if (operationStats == null) {
        LOGGER.warn("No operational information in task");
        return null;
    }
    EnvironmentalPerformanceInformationType envInfo = operationStats.getEnvironmentalPerformanceInformation();
    if (envInfo == null) {
        LOGGER.warn("No environmental performance information in task");
        return null;
    }
    StatisticsDto dto = new StatisticsDto(envInfo);
    return dto;
}
Also used : EnvironmentalPerformanceInformationType(com.evolveum.midpoint.xml.ns._public.common.common_3.EnvironmentalPerformanceInformationType) OperationStatsType(com.evolveum.midpoint.xml.ns._public.common.common_3.OperationStatsType)

Example 3 with EnvironmentalPerformanceInformationType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.EnvironmentalPerformanceInformationType in project midpoint by Evolveum.

the class StatisticsDtoModel method getStatisticsFromTask.

protected StatisticsDto getStatisticsFromTask(Task task) {
    OperationStatsType operationStats = task.getAggregatedLiveOperationStats();
    if (operationStats == null) {
        LOGGER.warn("No operational information in task");
        return null;
    }
    EnvironmentalPerformanceInformationType envInfo = operationStats.getEnvironmentalPerformanceInformation();
    if (envInfo == null) {
        LOGGER.warn("No environmental performance information in task");
        return null;
    }
    StatisticsDto dto = new StatisticsDto(envInfo);
    return dto;
}
Also used : EnvironmentalPerformanceInformationType(com.evolveum.midpoint.xml.ns._public.common.common_3.EnvironmentalPerformanceInformationType) OperationStatsType(com.evolveum.midpoint.xml.ns._public.common.common_3.OperationStatsType)

Example 4 with EnvironmentalPerformanceInformationType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.EnvironmentalPerformanceInformationType in project midpoint by Evolveum.

the class EnvironmentalPerformanceInformation method getAggregatedValue.

public synchronized EnvironmentalPerformanceInformationType getAggregatedValue() {
    EnvironmentalPerformanceInformationType delta = toEnvironmentalPerformanceInformationType();
    EnvironmentalPerformanceInformationType rv = aggregate(startValue, delta);
    return rv;
}
Also used : EnvironmentalPerformanceInformationType(com.evolveum.midpoint.xml.ns._public.common.common_3.EnvironmentalPerformanceInformationType)

Example 5 with EnvironmentalPerformanceInformationType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.EnvironmentalPerformanceInformationType in project midpoint by Evolveum.

the class EnvironmentalPerformanceInformation method aggregate.

private EnvironmentalPerformanceInformationType aggregate(EnvironmentalPerformanceInformationType startValue, EnvironmentalPerformanceInformationType delta) {
    if (startValue == null) {
        return delta;
    }
    EnvironmentalPerformanceInformationType rv = new EnvironmentalPerformanceInformationType();
    addTo(rv, startValue);
    addTo(rv, delta);
    return rv;
}
Also used : EnvironmentalPerformanceInformationType(com.evolveum.midpoint.xml.ns._public.common.common_3.EnvironmentalPerformanceInformationType)

Aggregations

EnvironmentalPerformanceInformationType (com.evolveum.midpoint.xml.ns._public.common.common_3.EnvironmentalPerformanceInformationType)8 MappingsStatisticsType (com.evolveum.midpoint.xml.ns._public.common.common_3.MappingsStatisticsType)2 NotificationsStatisticsType (com.evolveum.midpoint.xml.ns._public.common.common_3.NotificationsStatisticsType)2 OperationStatsType (com.evolveum.midpoint.xml.ns._public.common.common_3.OperationStatsType)2 ProvisioningStatisticsType (com.evolveum.midpoint.xml.ns._public.common.common_3.ProvisioningStatisticsType)2 MappingsStatisticsEntryType (com.evolveum.midpoint.xml.ns._public.common.common_3.MappingsStatisticsEntryType)1 NotificationsStatisticsEntryType (com.evolveum.midpoint.xml.ns._public.common.common_3.NotificationsStatisticsEntryType)1 ProvisioningStatisticsEntryType (com.evolveum.midpoint.xml.ns._public.common.common_3.ProvisioningStatisticsEntryType)1 QName (javax.xml.namespace.QName)1