/*******************************************************************************
- * Copyright (c) 2011 Ericsson
+ * Copyright (c) 2011, 2013 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
* root node is created for each tree. Using the tree node ID the statistics
* tree can be retrieved.
*
+ * @author Mathieu Denis
* @version 2.0
* @since 2.0
- * @author Mathieu Denis
*/
public class TmfStatisticsTreeManager {
/**
* Contains the experiment name as the key and the traces data
*/
- private static final Map<String, TmfStatisticsTree> fTreeInstances = new HashMap<String, TmfStatisticsTree>();
+ private static final Map<String, TmfStatisticsTree> fTreeInstances = new HashMap<>();
/**
* Provide a statisticsTree instance per trace
if (tree == null) {
return null;
}
- return tree.getOrCreate(TmfStatisticsTree.ROOT);
+ return tree.getRootNode();
}
/**
return null;
}
fTreeInstances.put(traceUniqueId, statsData);
- // if called for the first time, create the root node
- return statsData.getOrCreate(TmfStatisticsTree.ROOT);
+ return statsData.getRootNode();
}
/**