triggers = new ConcurrentHashMap<Integer, Node>();
}
- @SuppressWarnings("deprecation")
private void allocateCaches() {
if (clusterContainerService == null) {
nonClusterObjectCreate();
log.debug("Skipping statistics cache creation - already present");
}
}
- @SuppressWarnings({ "unchecked", "deprecation" })
+ @SuppressWarnings({ "unchecked" })
private void retrieveCaches() {
ConcurrentMap<?, ?> map;
@Override
public List<NodeConnectorStatistics> getNodeConnectorStatistics(Node node) {
if (node == null){
- return null;
+ return Collections.emptyList();
}
List<NodeConnectorStatistics> statList = new ArrayList<NodeConnectorStatistics>();
@Override
public List<NodeTableStatistics> getNodeTableStatistics(Node node){
if (node == null){
- return null;
+ return Collections.emptyList();
}
List<NodeTableStatistics> statList = new ArrayList<NodeTableStatistics>();
List<NodeTableStatistics> cachedList = tableStatistics.get(node);