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