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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
close()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) Methods inherited from class java.util.HashSet
add, clone, contains, isEmpty, iterator, size, spliterator, toArray, toArray
Methods inherited from class java.util.AbstractSet
equals, hashCode
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, 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
Methods 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:
removeAll
in interfaceCollection<String>
- Specified by:
removeAll
in interfaceSet<String>
- Overrides:
removeAll
in classAbstractSet<String>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<String>
- Specified by:
retainAll
in interfaceSet<String>
- Overrides:
retainAll
in classAbstractCollection<String>
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-