public RuntimeStatisticsSummary deepCopy() { return new RuntimeStatisticsSummary(this); }
public static void setRuntimeStatistics(Host host, Map<Domain, RuntimeStatisticsAggregator> runtimeStatisticsAggregators) throws IOException { RuntimeStatisticsSummary summary = new RuntimeStatisticsSummary(); StringBuilder statistics = new StringBuilder(); for (Map.Entry<Domain, RuntimeStatisticsAggregator> entry : runtimeStatisticsAggregators.entrySet()) { Domain domain = entry.getKey(); RuntimeStatisticsAggregator runtimeStatisticsAggregator = entry.getValue(); DomainStatisticsSummary domainSummary = new DomainStatisticsSummary(); runtimeStatisticsAggregator.putToStatistics(domainSummary); summary.put_to_domain_statistics(domain.getName(), domainSummary); statistics.append(domain.getId()); statistics.append('\t'); statistics.append(RuntimeStatisticsAggregator.toString(runtimeStatisticsAggregator)); statistics.append('\n'); } host.setEphemeralStatistic(RUNTIME_STATISTICS_KEY, statistics.toString()); host.setRuntimeStatisticsSummary(summary); }
false, null, null, new RuntimeStatisticsSummary());