Package org.apache.storm.loadgen
Class ScopedTopologySet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<String>
-
- org.apache.storm.loadgen.ScopedTopologySet
-
- All Implemented Interfaces:
Serializable,AutoCloseable,Cloneable,Iterable<String>,Collection<String>,Set<String>
public class ScopedTopologySet extends HashSet<String> implements AutoCloseable
A set of topology names that will be killed when this is closed, or when the program exits.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScopedTopologySet(Nimbus.Iface client)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidclose()booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)-
Methods inherited from class java.util.HashSet
add, clone, contains, isEmpty, iterator, size, spliterator
-
Methods inherited from class java.util.AbstractSet
equals, hashCode
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Constructor Detail
-
ScopedTopologySet
public ScopedTopologySet(Nimbus.Iface client)
Constructor.- Parameters:
client- the client used to kill the topologies when this exist.
-
-
Method Detail
-
remove
public boolean remove(Object o)
-
clear
public void clear()
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAllin interfaceCollection<String>- Specified by:
removeAllin interfaceSet<String>- Overrides:
removeAllin classAbstractSet<String>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAllin interfaceCollection<String>- Specified by:
retainAllin interfaceSet<String>- Overrides:
retainAllin classAbstractCollection<String>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-