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);
}
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;
}
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;
}
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;
}
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;
}
Aggregations