public class Topologies extends Object implements Iterable<TopologyDetails>
Constructor and Description |
---|
Topologies(Map<String,TopologyDetails> topologies)
Create a new Topologies from a map of id to topology.
|
Topologies(Topologies src)
Copy constructor.
|
Topologies(TopologyDetails... details)
Create a new Topologies from a list of TopologyDetails.
|
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getAllIds() |
TopologyDetails |
getById(String topologyId)
Get a topology given an ID.
|
TopologyDetails |
getByName(String topologyName)
Get a topology given a topology name.
|
Collection<TopologyDetails> |
getTopologies() |
Collection<TopologyDetails> |
getTopologiesOwnedBy(String user)
Get all topologies submitted/owned by a given user.
|
Iterator<TopologyDetails> |
iterator() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public Topologies(TopologyDetails... details)
Create a new Topologies from a list of TopologyDetails.
details
- the list of details to use.IllegalArgumentException
- if duplicate topology ids are found.public Topologies(Map<String,TopologyDetails> topologies)
Create a new Topologies from a map of id to topology.
topologies
- a map of topology id to topology detailspublic Topologies(Topologies src)
Copy constructor.
public Collection<String> getAllIds()
public TopologyDetails getById(String topologyId)
Get a topology given an ID.
topologyId
- the id of the topology to getpublic TopologyDetails getByName(String topologyName)
Get a topology given a topology name. Nimbus prevents multiple topologies from having the same name, so this assumes it is true.
topologyName
- the name of the topology to look forpublic Collection<TopologyDetails> getTopologies()
public Collection<TopologyDetails> getTopologiesOwnedBy(String user)
Get all topologies submitted/owned by a given user.
user
- the name of the userpublic Iterator<TopologyDetails> iterator()
iterator
in interface Iterable<TopologyDetails>
Copyright © 2022 The Apache Software Foundation. All rights reserved.