Code example for SetMultimap

Methods: putAll

0
        addNode(datasourceName, ImmutableList.copyOf(nodes));
    } 
 
    public void addNode(String datasourceName, Iterable<Node> nodes)
    { 
        remoteNodes.putAll(datasourceName, nodes);
    } 
 
    @Override 
    public Set<Node> getActiveNodes()
    { 
        return getAllNodes().getActiveNodes();
    } 
 
    @Override 
    public Set<Node> getActiveDatasourceNodes(String datasourceName)
    { 
        return ImmutableSet.copyOf(remoteNodes.get(datasourceName));
    } 
 
    @Override