code: public void addNode(String name, Set<ResourceType> resourceTypes) {
      List<FaultStatsForType> faultStats = new ArrayList<FaultStatsForType>(
          resourceTypes.size());
      for (ResourceType type : resourceTypes) {
        faultStats.add(new FaultStatsForType(type));
      }
      nodeToFaultStats.put(name, faultStats);
    }
docs: Notify the fault manager of a new node.
  
  @param name The node name.
  @param resourceTypes The types of resource on this node.